Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Twitter (X) Trending Topics

API dokümanları
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.

Fiyat
$0.001USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
0 gerekli · 1 isteğe bağlı
Günde 100 ücretsiz çağrıHer gün ilk 100 çağrı ücretsizdir (kurum genelinde paylaşılır) · UTC 00:00'da sıfırlanır. Sonrasında çağrı başına ücretlendirilir.

Oynatma Alanı

Girdi
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
ÇıktıÖrnek
Yanıtoutputs · 476 B · 24 satır
[
  {
    "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"
        },
        "… 47 more items in the full response"
      ]
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

API README

Twitter (X) Trending Topics API

Returns the current list of trending topics on Twitter (X) for one country. The only input is the optional country parameter, which defaults to UnitedStates.

Use cases

  • Check which topics trend in Japan, India or the UK at the moment you call.
  • Flag a brand or keyword when its name appears in the name field of a trend.
  • Group trends by their context label, such as NFL, to see which categories dominate a market.
  • Pick topics to search for or write about while they trend.

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 '{}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
countrystringNoCountry, 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

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "trends": [
    {
      "context": "NFL · Trending",
      "description": null,
      "name": "Bears"
    }
  ]
}

Response fields

FieldMeaning
trends[]List of trending topics for the chosen country.
trends[].nameThe trend text as shown on X, for example a team, person or hashtag.
trends[].contextShort label that shows where the trend sits, for example NFL · Trending. The part before the dot names the category.
trends[].descriptionExtra text about the trend. It is null when none is given.

Notes

  • Pass country as a full name without spaces, such as UnitedStates, UnitedKingdom, SouthKorea or SaudiArabia. An empty request returns UnitedStates.
  • The response has no pagination, tweet counts or rank field. The order of trends is the order returned.
  • To see posts about a trend, pass its name to Twitter (X) Search.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Twitter$0.001 çağrı başınaJSON
Twitter$0.001 çağrı başınaJSON
Twitter$0.001 çağrı başınaJSON
Twitter$0.001 çağrı başınaJSON
Twitter$0.001 çağrı başınaJSON
Twitter$0.001 çağrı başınaJSON

Kılavuzlar:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

Sorular

SSS

Twitter (X) Trending Topics API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/twitter/web/trending adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Twitter (X) Trending Topics API'sinin fiyatı nedir?

çağrı başına $0.001. Her kuruluş, UTC günü başına 100 ücretsiz çağrı alır; bu hak, bu API dahil uygun SandBase API'leri arasında ortaktır. Sonrasında her çağrı, SandBase bakiyenizden bu fiyat üzerinden ücretlendirilir. Abonelik yoktur.

Twitter (X) Trending Topics API'si hangi parametreleri kabul eder?

Gerekli parametre yoktur. İsteğe bağlı: country (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Twitter (X) Trending Topics API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Twitter geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Twitter (X) Trending Topics, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Twitter API erişimi için ayrıca başvuru yapmanız gerekmez.