Twitter (X) Trending Topics

https://api.sandbase.ai/v1/api/twitter/web/trending

Get trending topics on Twitter / X by country: trend names with their category context, for the United States, Japan, India, the UK and other markets.

Price
$0.0015USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
0 required · 1 optional
Production route

Try the model

Playground

Open playground
Input
Country, default is UnitedStates, other optional values are as follows: China; India; Japan; Russia; Germany; Indonesia; Brazil; France; UnitedKingdom; Turkey; Italy; Mexico; SouthKorea; Canada; Spain; SaudiArabia; Egypt; Australia; Poland; Iran; Pakistan; Vietnam; Nigeria; Bangladesh; Netherlands; Argentina; Philippines; Malaysia; Colombia; UniteArabEmirates; Romania; Belgium; Switzerland; Singapore; Sweden; Norway; Austria; Kazakhstan; Algeria; Chile; Czechia; Peru
OutputExample
Responseoutputs · 5.9 KB · 258 lines
[
  {
    "data": {
      "trends": [
        {
          "context": "Only on X · Trending",
          "description": null,
          "name": "#bb28"
        },
        {
          "context": "Only on X · Trending",
          "description": null,
          "name": "#RaisingKanan"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "#SnoopDoggMV"
        },
        {
          "context": "NFL · Trending",
          "description": null,
          "name": "Haynes King"
        },
        {
          "context": "K-pop · Trending",
          "description": null,
          "name": "#This_And_That"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Red Sox"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "ravyn"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Brake"
        },
        {
          "context": "Politics · Trending",
          "description": null,
          "name": "Ogles"
        },
        {
          "context": "NBA · Trending",
          "description": null,
          "name": "Kawhi"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Stefano"
        },
        {
          "context": "K-pop · Trending",
          "description": null,
          "name": "Way Out"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "#TherapyAtTheClub"
        },
        {
          "context": "Chelsea Gray · Trending",
          "description": null,
          "name": "Chelsea Gray"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Wall Comp"
        },
        {
          "context": "Music · Trending",
          "description": null,
          "name": "Karol G"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Runaway"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Cry Ugly"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "LaTrice"
        },
        {
          "context": "Basketball · Trending",
          "description": null,
          "name": "A'ja"
        },
        {
          "context": "Rap · Trending",
          "description": null,
          "name": "Pooh Shiesty"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Asmon"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Aigis"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Bello"
        },
        {
          "context": "K-pop · Trending",
          "description": null,
          "name": "MAKE IT RIGHT"
        },
        {
          "context": "Business and finance · Trending",
          "description": null,
          "name": "Andrew Wilson"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Yukiko"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Calli"
        },
        {
          "context": "Sports · Trending",
          "description": null,
          "name": "Collinsworth"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Tokon"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Dee and Angela"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Terafab"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Sparks"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Pose"
        },
        {
          "context": "Only on X · Trending",
          "description": null,
          "name": "Memo"
        },
        {
          "context": "Entertainment · Trending",
          "description": null,
          "name": "Chris Hansen"
        },
        {
          "context": "Sports · Trending",
          "description": null,
          "name": "Jacoby"
        },
        {
          "context": "Sports · Trending",
          "description": null,
          "name": "Best HOF"
        },
        {
          "context": "Only on X · Trending",
          "description": null,
          "name": "Ernesto"
        },
        {
          "context": "Only on X · Trending",
          "description": null,
          "name": "Ximena"
        },
        {
          "context": "K-pop · Trending",
          "description": null,
          "name": "HAN JISUNG"
        },
        {
          "context": "Politics · Trending",
          "description": null,
          "name": "Ted Lieu"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Jonathan Majors"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Carnage"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Call Me"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "WE WON"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Rear"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "Truck"
        },
        {
          "context": "Gaming · Trending",
          "description": null,
          "name": "E-Day"
        },
        {
          "context": "Trending",
          "description": null,
          "name": "#TATC"
        }
      ]
    }
  }
]

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.0015 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

country
string · optional

Access

Provider
Twitter
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/twitter/web/trending
Authentication
Bearer API key

API README

Twitter (X) Trending Topics API

Fetch the current X (Twitter) trending list for a country. Each trend includes its name and context such as the category it trends in.

Use cases

  • Monitor what is trending in a market right now.
  • Trigger alerts when a brand or keyword trends.
  • Plan timely social content.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/trending" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Parameters

NameTypeRequiredDescription
countrystringNoCountry, default is UnitedStates, other optional values are as follows: China; India; Japan; Russia; Germany; Indonesia…

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "trends": [
    {
      "context": "Sports · Trending",
      "name": "Falcons"
    }
  ]
}

Notes

  • country defaults to UnitedStates; other values include Japan, India, UnitedKingdom, Germany and more.

Related APIs

  • Twitter (X) Search: Search Twitter / X posts by keyword and get tweets with text, author, time and engagement counts (likes, retweets, replies, views).
  • Twitter Tweet Detail: Get a single tweet (X post) by ID: full text, author, media, and like, retweet, reply, quote, bookmark and view counts.
  • Twitter (X) User Profile: Get a Twitter / X user profile by screen name or user ID: name, bio, follower and following counts, post and media counts, verification and creation date.

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/twitter/web/trending
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/twitter/web/trending" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "country": "UnitedStates"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Twitter$0.0015 per callJSONJul 31, 2026
Twitter$0.0015 per callJSONJul 31, 2026
Twitter$0.0015 per callJSONJul 31, 2026
Twitter$0.0015 per callJSONJul 31, 2026
Twitter$0.0015 per callJSONJul 31, 2026
Twitter$0.0015 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Twitter (X) Trending Topics API?

Send a POST request to https://api.sandbase.ai/v1/api/twitter/web/trending with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Twitter (X) Trending Topics API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Twitter (X) Trending Topics API accept?

No parameters are required. Optional: country (string). The Parameters table and the Playground on this page list every field.

What does the Twitter (X) Trending Topics API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Twitter developer account or API key?

No. Twitter (X) Trending Topics runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Twitter API access separately.