X (Twitter) Trending API reference

Trending public topics on X. Takes no input, returns a cursor page, 1 credit a call.

This named API keeps X fields in X's own vocabulary. For a higher-level product page, see X (Twitter) Trending API.

Endpoint

GET /v1/x/trending
Authorization: Bearer sv_live_...

`POST` is also accepted with the same parameters in the request body. Send the key in the `Authorization` header, never in the query string.

Parameters

NameTypeRequiredNotes
cursor string no Cursor returned by the previous page.
limit integer no Maximum items to return, up to 50.

Sample Request

This is a copyable request shape. Replace the sample values with the public X target or parameters your workflow uses.

curl -G 'https://api.sourcevine.io/v1/x/trending' \
  -H 'Authorization: Bearer sv_live_...' \
  --data-urlencode 'limit=20'

Sample Response

A response this API returned, against the target above. Your values depend on the resource you ask about and when you ask.

{
  "data": {
    "items": [
      {
        "url": "http://twitter.com/search?q=%23GalaxyS25For57999",
        "name": "#GalaxyS25For57999",
        "rank": 1,
        "views": null,
        "cached": false,
        "trendId": "#GalaxyS25For57999",
        "fetchedAt": "2026-10-07T08:17:06Z",
        "postCount": null,
        "cacheAgeSeconds": null
      },
      {
        "url": "http://twitter.com/search?q=%2325YearsOfSeva",
        "name": "#25YearsOfSeva",
        "rank": 2,
        "views": null,
        "cached": false,
        "trendId": "#25YearsOfSeva",
        "fetchedAt": "2026-10-07T08:17:06Z",
        "postCount": null,
        "cacheAgeSeconds": null
      },
      {
        "url": "http://twitter.com/search?q=%23Nse_Multi_Bagger_pick",
        "name": "#Nse_Multi_Bagger_pick",
        "rank": 3,
        "views": null,
        "cached": false,
        "trendId": "#Nse_Multi_Bagger_pick",
        "fetchedAt": "2026-10-07T08:17:06Z",
        "postCount": null,
        "cacheAgeSeconds": null
      }
    ],
    "cached": false,
    "fetchedAt": null,
    "nextCursor": null,
    "cacheAgeSeconds": null
  },
  "success": true,
  "available": true
}

Fields

FieldTypeNotes
items array Trending public X topics or search words.
items[].trendId string Sourcevine id for the trend row.
items[].name string Trend label as the platform publishes it.
items[].rank integer | null Trend position when reported.
items[].postCount integer | null Public volume when reported.
nextCursor string | null Pass as cursor to request the next page.
fetchedAt ISO datetime When Sourcevine read the public page.
sourceTimestamp ISO datetime | null The platform timestamp when it is available.
cached boolean True when this answer repeats an identical request made moments earlier.
cacheAgeSeconds integer Seconds since the reading was taken.

Availability States

StatusChargedClient behavior
availableyes for live readsUse data.
not_foundyesStore the state and stop polling.
privateyesStore the state and stop polling.
unsupportednoFix the URL or call the matching API.
upstream_unavailablenoRetry later with backoff.

Unavailable resources return `success: true`, `available: false`, `availability`, and `data: null`. API or authentication failures return `success: false` with an `error` object.

Billing

A call costs 1 credit. A deleted, private or empty resource is charged like any lookup and says so. An unsupported URL or a read we could not complete is not charged. The `X-Credits-Charged` response header is the source of truth for what happened on that request.

Successful responses include `fetchedAt`, the time we read the platform.

What This API Does Not Return

  • No contact or bio fields: Bios, email addresses, phone numbers, postal addresses and messenger handles are outside the response contract.
  • No private data: Private accounts, restricted content and unavailable resources return typed availability instead of guessed data.
  • No prediction: Trend APIs return what the platform publishes now. They do not forecast future rank, reach or revenue.

Related

Last updated 1 September 2026