Developer Network Home - Help

ZoneTag : Suggested Tags API

ZoneTag : Suggested Tags Web Service

The suggested tags web service will allow you to get a list of suggested tags for a given location.

1-2-3 getting started guide

  1. Get an app token. Go here.
  2. Ah, that's pretty much it. Oh yeah, read the following for the Request and Response parameters.
  3. Optional: Personalize suggested tags results for your users. This is only for adventurous developers who want to test out the not-yet-released V2 of the APIs. Email us.

Developer Support and Community

If you're building something cool with the suggested tags web service, please let us know or just swing on by the mailing list and shoot the breeze with other developers/users. Do it all in the zonetag-dev discussion group.

Request URL

http://zonetag.research.yahooapis.com/services/rest/V1/suggestedTags.php?

Request parameters

See information on constructing REST queries

Parameter Value Description
apptoken string (required) The application token. You can get your app token here.
cellid Integer - up to 7 digits The cellid of the cellular tower
lac Integer - up to 7 digits The Location Area Code (LAC) of the cellular tower
mnc Integer - up to 3 digits The Mobile Network Code (MNC) of the cellular tower
mcc Integer - up to 3 digits The Mobile Country Code (MCC) of the cellular tower
cellhistory mnc:lac:cellid@timeoffset Collection of individual terms that gives the user's location history.
timeoffset Integer Time offset in seconds from the moment the last reading was recorded (only used as part of the cellhistory parameter)
latitude float: -90 to 90 The latitude of the starting location.
longitude float: -180 to 180 The longitude of the starting location. If both latitude and longitude are specified, they will take priority over all other location data. If only one of latitude or longitude is specified, both will be ignored.
zip Integer The zip code of the starting location.
output xml Desired output format for tag suggestions.
ctxttime integer Local time of desired tag suggestions (UNIX time). Default is set to current time(PST).

Sample Request URL

http://zonetag.research.yahooapis.com/services/rest/V1/suggestedTags.php?apptoken=ZoneTagDemoToken&cellid=4995&lac=6045&mnc=380&mcc=310&output=xml

Response fields

Field Description
suggestion Envelope element that contains the suggestion information
id Id of the suggestion list.
location Contains estimated location of the requested suggestions.
city City name of the current location
state State name of the given suggestion (if applicable)
country Country of the given suggestion.
zipcode Postal code of the given suggestions
categories Envelope node containing the list of the various tag categories
catid Id number of the given category
name Name of the category.
tags Envelope node containing the various tags
text Text of the suggested tag.
tagid Unique id of the suggested tag (if applicable).
catid Category of the suggested tag (if applicable).

Sample response

The following is a sample response for the cellid 4995-6045-380-310:

Errors

List error codes here

Error code Description
1 Invalid apptoken.
2 Invalid usertoken.
3 Application rate-limit exceeded.
4 User rate-limit exceeded.
10 Invalid location values.
11 Invalid cellid.
12 Invalid lac.
13 Invalid mnc.
14 Invalid mcc.
15 Invalid latitude.
16 Invalid longitude.

Sample Error Message

The following is a sample error message:

Rate Limit

We are only a prototype, small and tiny. So be nice and observe polite etiquette in your requests rates.

Terms of Use

ZoneTag web services are offered to you for non-commercial use, and are governed by the Yahoo! APIs Terms of Use and the ZoneTag web services Terms of Use.

Copyright © 2008 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings