Skip to main content
GET https://xquik.com/api/v1/x/trends/locations
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

Choose fields

Headers

Response

200 OK

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. You can also send 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 a location’s trends by its woeid or its name.

Response examples

  • 400 { "error": "unknown_field", "message": "Unknown field asetUrl. Did you mean assetUrl?" }
  • 401 { "error": "unauthenticated", "message": "Authentication required." }
  • 402 { "error": "insufficient_credits", "message": "Insufficient credits. Top up or subscribe to continue." }
  • 403 { "error": "api_key_paused", "message": "This API key is paused. Resume it at dashboard.xquik.com/api-keys to use it again." }
  • 424 { "error": "x_api_unavailable", "message": "X data source temporarily unavailable. Try again later." }
  • 429 { "error": "rate_limit_exceeded", "message": "Too many requests. Try again later.", "retryAfter": 60 }
  • 502 { "error": "x_api_unavailable", "message": "X data source temporarily unavailable. Try again later." }
  • 503 { "error": "x_api_unavailable", "message": "Xquik is busy right now. Retry shortly." }