---
title: "GET /api/v1/x/trends"
method: GET
path: "/api/v1/x/trends"
tags: ["Trends"]
---

# GET /api/v1/x/trends

`GET /api/v1/x/trends`

## Request

- Base URL: `https://xquik.com`
- URL: `https://xquik.com/api/v1/x/trends`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
  - none

Returns X's current trends for a place you choose. Pick it by woeid, country or location name. Without one, trends are worldwide. Add at to read what was trending on Twitter at a past time, such as yesterday. Xquik keeps a Twitter trends archive from 2026-10-13 02:20 UTC on, with 1 list per place every 5 minutes. Each request costs 1 credit, however many trends it returns.

## Query parameters

- `woeid` integer
- `country` string
- `location` string
- `count` integer
- `at` string
- `fields` string
- `omit` string

## Response `200`

List of trending topics

- object
  - `trends` object[], required
    - `name` string, required
    - `description` string
    - `query` string
    - `promotedContent` string, nullable: Promotion identifier from X. Null for organic trends.
    - `rank` integer
    - `tweetVolume` integer, nullable: Approximate public post volume when X supplies it.
    - `url` string, uri: X search URL for the trend.
  - `count` integer, required
  - `woeid` integer, required
  - `location` TrendLocation: A place X offers trends for.
    - `woeid` integer, required: Location ID. Pass it as woeid to /x/trends.
    - `name` string, required
    - `country` string, nullable, required: Country name. Null for Worldwide.
    - `countryCode` string, nullable, required: 2-letter country code. Null for Worldwide.
    - `placeType` string, nullable, required: X's kind of place. Town, Country, Supername for Worldwide, or Unknown.
    - `placeTypeCode` integer, nullable, required: X's numeric code for the kind of place.
    - `parentWoeid` integer, nullable, required: WOEID of the country or region above it. Null for Worldwide.
    - `url` string, nullable, required: X's legacy Yahoo GeoPlanet reference. It may not resolve.
  - `capturedAt` string, date-time: When Xquik read this list from X. It comes from the stored list and is never estimated.
  - `requestedAt` string, date-time: The time the at parameter asked for, as Xquik read it. A span such as 24h shows here as the time it counted back to. Present only with at.

## Other responses

- `400`: Unknown country or location, a time that does not read, or no stored list within 24 hours of at
- `401`: Unauthenticated
- `402`: Payment required. MPP reads include `WWW-Authenticate`. Authenticated reads include balances, plus checkout when the key can open it. A key that reads only gets the account page instead. A failed request never creates checkout. A caller on a plan gets top-up only, plus `credits_renew_at` when the plan renews. Guest keys offer top-up.
- `424`: Dependency unavailable, unauthorized, or limited. Default v1 uses 502. Best-practice responses use 424 for transparent dependency failures. Search answers 424 `search_unavailable` when X fails the query itself, or when its filters matched none of the last 3,000 posts read. The message says how far back the search read.
- `429`: Too many requests right now. Each user gets 500 reads a second. Each minute allows 120 writes & 60 deletes. `x_api_rate_limited` means X limits this read for now. Neither answer costs anything. Wait for the seconds in `Retry-After`, then retry.
- `500`: Unexpected error.
- `502`: Dependency unavailable, unauthorized, or limited. Default v1 uses 502. Best-practice responses use 424 for transparent dependency failures. Search answers 424 `search_unavailable` when X fails the query itself, or when its filters matched none of the last 3,000 posts read. The message says how far back the search read.
- `503`: Retry x_api_unavailable after Retry-After. With X-Xquik-Busy, retry until your deadline.
- `default`: Unexpected error.

## Changes

- **2026-10-20** `45942c75fdc2`: 18 warning
  - added the new `topup_in_progress` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `topup_in_progress` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `topup_in_progress` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `topup_in_progress` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …14 more

[Operation history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/api/v1/x/trends/get.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xquik-dev/apis/xquik-api/revisions/45942c75fdc2?raw)
