GET
/
2
/
trends
/
by
/
woeid
/
{woeid}
curl --request GET \
  --url https://api.twitter.com/2/trends/by/woeid/{woeid} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "trend_name": "<string>",
      "tweet_count": 123
    }
  ],
  "errors": [
    {
      "detail": "<string>",
      "status": 123,
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

woeid
integer
required

The WOEID of the place to lookup a trend for.

Query Parameters

The maximum number of results.

Required range: 1 <= x <= 50
trend.fields
enum<string>[]

A comma separated list of Trend fields to display.

Available options:
trend_name,
tweet_count
Example:
["trend_name", "tweet_count"]

Response

200
application/json
The request has succeeded.
data
object[]

A trend.

errors
object[]

An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).