Retrieves trending topics for a specific location identified by its WOEID.
curl --request GET \
--url https://api.x.com/2/trends/by/woeid/{woeid} \
--header 'Authorization: Bearer <token>'{
"data": [
{
"trend_name": "<string>",
"tweet_count": 123
}
],
"errors": [
{
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"status": 123
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The WOEID of the place to lookup a trend for.
The maximum number of results.
1 <= x <= 50A comma separated list of Trend fields to display. The fields available for a Trend object.
1trend_name, tweet_count ["trend_name", "tweet_count"]The request has succeeded.
1Show child attributes
1An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).
Show child attributes
curl --request GET \
--url https://api.x.com/2/trends/by/woeid/{woeid} \
--header 'Authorization: Bearer <token>'{
"data": [
{
"trend_name": "<string>",
"tweet_count": 123
}
],
"errors": [
{
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"status": 123
}
]
}