urlstringzorunlu
Canonical x.com or twitter.com status URL with a numeric tweet ID. Any tweet in the self-thread can be supplied; the provider resolves the thread root.
https://api.sandbase.ai/v1/api/twitter/threadResolve the linear self-thread containing an X (Twitter) post, from its root through the author's linked continuations. This excludes replies from other users.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Returns the self-thread that contains an X (Twitter) post, from the root tweet through the author's own continuations. It needs one input, the url of any tweet in the thread. The response includes the author profile and each tweet with its text, media and engagement counts.
curl -X POST "https://api.sandbase.ai/v1/api/twitter/thread" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://x.com/SpaceX/status/1732824684683784516"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Canonical x.com or twitter.com status URL with a numeric tweet ID. Any tweet in the self-thread can be supplied; the provider resolves the thread root. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"author": {
"avatarUrl": "https://pbs.twimg.com/profile_images/1697749409851985920/HbrI04tM_normal.jpg",
"bio": "SpaceX designs, manufactures and launches the world’s most advanced rockets and …",
"blueVerified": true,
"coverUrl": "https://pbs.twimg.com/profile_banners/34743251/1681251194",
"createdUtc": 1240523610,
"followers": 41933559,
"following": 127,
"handle": "SpaceX",
"id": "34743251",
"location": "Earth",
"name": "SpaceX",
"url": "https://x.com/SpaceX"
},
"complete": true,
"conversationId": "1732824684683784516",
"threadLength": 1,
"tweets": [
{
"authorHandle": "SpaceX",
"authorId": "34743251",
"authorName": "SpaceX",
"bookmarkCount": 1877,
"conversationId": "1732824684683784516",
"createdUtc": 1701972573,
"id": "1732824684683784516",
"inReplyToId": null,
"isReply": false,
"lang": "en",
"likeCount": 33783,
"media": [
{
"type": "video",
"url": "https://pbs.twimg.com/ext_tw_video_thumb/1732820284301058052/pu/img/A-6jgWgxmMJ4…",
"videoUrl": "https://video.twimg.com/ext_tw_video/1732820284301058052/pu/vid/avc1/1920x1080/K…"
}
]
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the thread was resolved. A lookup that finds nothing returns false. |
data.complete | Whether the full thread was returned. |
data.threadLength | Number of tweets in the thread. |
data.author.handle / data.author.name / data.author.id | The thread author's @ handle, display name and numeric user ID. |
data.author.followers / data.author.following | Follower count and following count for the author. |
data.tweets[].id | Numeric ID of the tweet. |
data.tweets[].text | Text of the tweet. Links appear as shortened t.co URLs. |
data.tweets[].createdUtc | Tweet creation time as a Unix timestamp in seconds. |
data.tweets[].likeCount / data.tweets[].repostCount / data.tweets[].replyCount / data.tweets[].quoteCount / data.tweets[].bookmarkCount / data.tweets[].viewCount | Engagement counts for each tweet. |
data.tweets[].media[] | Media attached to the tweet. Each item has a type, a preview image url and, for video, a videoUrl. |
url. The root is resolved for you.url must contain a numeric tweet ID, for example https://x.com/SpaceX/status/1732824684683784516.Billed at the actual cost of each call, about $0.00269 for the request above. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/twitter/thread" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://x.com/SpaceX/status/1732824684683784516"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
urlstringzorunluCanonical x.com or twitter.com status URL with a numeric tweet ID. Any tweet in the self-thread can be supplied; the provider resolves the thread root.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
X / Twitter Tweet ThreadBu API X (Twitter) | Kullanım başına $0.00269'den itibaren | JSON |
X (Twitter) | Kullanım başına $0.00054'den itibaren | JSON |
Twitter | Kullanım başına $0.0006'den itibaren | Asenkron JSON |
X (Twitter) | Kullanım başına $0.0001'den itibaren | JSON |
X (Twitter) | Kullanım başına $0.0036'den itibaren | JSON |
X (Twitter) | Kullanım başına $0.00045'den itibaren | JSON |
Kılavuzlar:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/twitter/thread adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.00269'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: url (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. X / Twitter Tweet Thread, 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. X (Twitter) API erişimi için ayrıca başvuru yapmanız gerekmez.