Timeline & DMs
Twitter trend locations API with WOEID list
List the places X offers trends for. Get each WOEID, name, country, country code, and place type, then send a WOEID to the trends API. 1 credit per location.
- 200
- 401
- 402
- 424
- 429
- 502
- 503
GET
Twitter trend locations API with WOEID list
1 credit per location returned · All plans from $0.00012/credit
GET /x/trends/locations to list the places X offers trends for.
Each location carries the woeid that Get X trends takes.
Each returned location costs 1 credit. Filters and limit lower the cost.
An empty result costs nothing.
Find a WOEID before you read trends
Call this endpoint once and store the list. X changes it rarely. Filter bycountry to get a country and its towns in 1 call.
Filter by placeType to get only countries or only towns.
Use q when you know part of a place name.
Pass the woeid of a location to GET /x/trends as woeid.
You can also pass its name as location, or a country as country.
Worldwide has woeid 1, with no country and no parent.
Query parameters
string
Country name or 2-letter code, such as
Turkey or TR. Case insensitive. Returns the country and its towns.string
Kind of place:
country, town, worldwide, or unknown. Case insensitive. X labels a few towns unknown.string
Text the location name contains, such as
york. Case insensitive. Alias: query.integer
Maximum locations to return, starting at
1. Omit it for every match. Your credit balance can return fewer. Aliases: pageSize, count, max_results, maxItems, max_items & per_page.Headers
string
Send a full Xquik account API key.
string
Bearer xq_your_guest_key_here for paid_reads.Response
200 OK
object[]
Locations that match your filters, in X’s order.
Location object fields.
number
Location ID. Pass it as
woeid to GET /x/trends.string
Place name.
string | null
Country name. Null for Worldwide.
string | null
2-letter country code. Null for Worldwide.
string | null
X’s kind of place:
Town, Country, Supername for Worldwide, or Unknown.number | null
X’s numeric code for the kind of place.
number | null
WOEID of the country or region above it. Null for Worldwide.
string | null
X’s legacy Yahoo GeoPlanet reference. It may not resolve.
number
Locations returned and charged.
number
Locations that match the filters, before
limit.string
What to send instead. Present only when no location matches.
message:
401 Unauthenticated
Anonymous requests getWWW-Authenticate: Bearer and a guest wallet checkout action. This is not a Payment challenge.
402 Payment required
Account keys get account options. Guest keys get guest top-up only. No checkout starts automatically. Confirm any payment action.502 X API unavailable
503 Service busy
Retry-After, then retry.
429 Rate limit exceeded
Retry-After when present. Otherwise, use the JSON retryAfter field.
424 Dependency failed
xquik-api-contract: 2026-04-29 to opt in. Default v1 returns 502.
Twitter trend locations API questions
How do I get a list of Twitter trend locations?
CallGET /x/trends/locations without filters.
The response lists every place X offers trends for, with its WOEID.
How do I find the WOEID of a city or country?
Sendq with part of the name, or country with a name or 2-letter code.
Read woeid from the matching location.
How much does a trend locations request cost?
Each returned location costs 1 credit. An empty result costs nothing. Addlimit or a filter to return fewer locations.
What does an unknown filter value return?
It returns an emptylocations list and a message that says what to send.
The request costs nothing.
Does this replace X’s official API?
No. This page documents Xquik, an independent third-party service. It does not document X’s official API.Next steps. Get X trends reads the trends of a location by its
woeid or its name.