Trends

Trends by location

Current trending topics for a place, by WOEID.

Reference: https://www.twittrapi.com/docs/reference/trends-locationid

get/trends/{locationId}

Request

  • Base URL: https://api.twittrapi.com
  • URL: https://api.twittrapi.com/trends/{locationId}
  • Auth: API key in header X-API-KEY

Path parameters

locationIdstring required

Yahoo WOEID, digits only (1 to 12). 1 is worldwide, 23424977 the United States. /misc/locations lists them all.

Query parameters

format'raw' | 'simple'

raw (default): X's JSON passed through. simple: flat camelCase JSON with a fixed schema and a {data, nextCursor, previousCursor, hasNextPage} envelope. Same price. The header X-Response-Format: simple does the same.

Response

Raw JSON of X's v1.1 trends/place endpoint: an array with one object holding trends (name, url, query, tweet_volume), as_of and locations.

With format=simple: Collection of Trend objects {name, query, url, tweetVolume} (no cursor). query is URL-decoded.

OR
RawPassthrough required

X's own JSON (raw format, the default), passed through unchanged. The shape is X's and can change; see https://www.twittrapi.com/docs/response-format.

Changes

No recorded changes to this operation across all 1 revision of this API.