Trends by location
Current trending topics for a place, by WOEID.
Reference: https://www.twittrapi.com/docs/reference/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
Yahoo WOEID, digits only (1 to 12). 1 is worldwide, 23424977 the United States. /misc/locations lists them all.
Query parameters
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.
Changes
No recorded changes to this operation across all 1 revision of this API.