Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

X / Twitter Tweet Thread

API 文件
https://api.sandbase.ai/v1/api/twitter/thread

Resolve the linear self-thread containing an X (Twitter) post, from its root through the author's linked continuations. This excludes replies from other users.

價格
自 $0.00269 起美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 0 個選填

Playground

輸入
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.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

X / Twitter Tweet Thread API

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.

Use cases

  • Archive a full multi-tweet announcement from a single tweet link.
  • Read a long thread as one ordered list of tweets for summarizing or translating.
  • Track likes, reposts and views across every tweet in an author's thread.
  • Collect video and image URLs from all tweets in a thread.

Request

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.

Parameters

NameTypeRequiredDescription
urlstringYesCanonical 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.

Example response

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
}

Response fields

FieldMeaning
foundtrue when the thread was resolved. A lookup that finds nothing returns false.
data.completeWhether the full thread was returned.
data.threadLengthNumber of tweets in the thread.
data.author.handle / data.author.name / data.author.idThe thread author's @ handle, display name and numeric user ID.
data.author.followers / data.author.followingFollower count and following count for the author.
data.tweets[].idNumeric ID of the tweet.
data.tweets[].textText of the tweet. Links appear as shortened t.co URLs.
data.tweets[].createdUtcTweet 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[].viewCountEngagement 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.

Notes

  • Pass any tweet URL from the thread in url. The root is resolved for you.
  • The url must contain a numeric tweet ID, for example https://x.com/SpaceX/status/1732824684683784516.
  • Replies from other users are not included. To read them, call Twitter Post Comments.
  • For a single tweet without thread logic, use Twitter Tweet Detail.

Pricing

Billed at the actual cost of each call, about $0.00269 for the request above. Failed calls are not charged.

探索更多

相關 APIs

所有 APIs
API價格回應
X (Twitter)每次呼叫 $0.00269 起JSON
X (Twitter)每次呼叫 $0.00054 起JSON
Twitter每次呼叫 $0.0006 起非同步 JSON
X (Twitter)每次呼叫 $0.0001 起JSON
X (Twitter)每次呼叫 $0.0036 起JSON
X (Twitter)每次呼叫 $0.00045 起JSON

指南:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

問題

常見問題

我要如何使用 X / Twitter Tweet Thread API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/twitter/thread。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

X / Twitter Tweet Thread API 的費用是多少?

每次起 $0.00269,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

X / Twitter Tweet Thread API 接受哪些參數?

必要:url (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

X / Twitter Tweet Thread API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 X (Twitter) 開發者帳號或 API 金鑰嗎?

不需要。X / Twitter Tweet Thread 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 X (Twitter) API 存取權。