Skip to main content
GET
Twitter trend locations API with WOEID list
1 credit per location returned · All plans from $0.00012/credit
Use 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. Call this endpoint once and store the list. X changes it rarely. Filter by country 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.
A filter value that matches no location returns an empty list and a message:

401 Unauthenticated

Anonymous requests get WWW-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

The read service returned an error. Retry after a short delay.

503 Service busy

Xquik is busy. Wait for Retry-After, then retry.

429 Rate limit exceeded

The Xquik tier limit blocked the request. Use Retry-After when present. Otherwise, use the JSON retryAfter field.

424 Dependency failed

The opt-in normalized contract returns 424 when the read service fails. Send 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?

Call GET /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?

Send q 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. Add limit or a filter to return fewer locations.

What does an unknown filter value return?

It returns an empty locations 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.