Trends

List the locations X offers trends for

Changed on

Returns the places X offers trends for. Pass a location's woeid to /x/trends. Each returned location costs 1 credit.

get/api/v1/x/trends/locations

Request

  • Base URL: https://xquik.com
  • URL: https://xquik.com/api/v1/x/trends/locations
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer
    • none

Query parameters

countrystring

Country name or 2-letter code, such as Turkey or TR. Case insensitive. Returns the country & its towns.

placeType'country' | 'town' | 'worldwide' | 'unknown'

Kind of place. Case insensitive. X labels a few towns unknown.

qstring

Text the location name contains, such as york. Case insensitive. Alias query.

limitinteger

Maximum locations to return. Omit it for every match. Credits can return fewer. Aliases pageSize, count, max_results, maxItems, max_items & per_page.

Response

Locations X offers trends for

countinteger required

Locations returned & charged.

totalinteger required

Locations that match the filters, before limit.

messagestring

What to send instead. Present only when no location matches.

Example response

{
  "locations": [
    {
      "woeid": 2344116,
      "name": "Istanbul",
      "country": "Turkey",
      "countryCode": "TR",
      "placeType": "Town",
      "placeTypeCode": 7,
      "parentWoeid": 23424969,
      "url": "http://where.yahooapis.com/v1/place/2344116"
    }
  ],
  "count": 1,
  "total": 1,
  "message": "Unknown placeType. Use country, town, worldwide or unknown."
}

Changes

    • ▲

      the response property ///// became optional for the status

    • ○

      added the optional property //// to the response with the status

Of the 51 revisions, 1 has no diff computed.