Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

X / Twitter Article

APIドキュメント
https://api.sandbase.ai/v1/api/twitter/article

Get a public X long-form article from its wrapper post URL, including its author, engagement, cover image, and structured content blocks.

料金
$0.00054 からUSD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
Canonical x.com or twitter.com URL of the public wrapper post for an X Article.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

X / Twitter Article API

Returns a public X long-form article, including its title, author profile, engagement counts, cover image and content blocks. It needs one input: the url of the public wrapper post that carries the article.

Use cases

  • Archive the text and title of a crypto research article that a writer published on X.
  • Track views, likes, replies and quotes on an article over repeated lookups.
  • Check an author's follower count and verification status before citing their article.
  • Convert the contentBlocks of an article into your own page or summary format.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/article" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://x.com/Decentralisedco/status/1905545699552375179"}'

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

Parameters

NameTypeRequiredDescription
urlstringYesCanonical x.com or twitter.com URL of the public wrapper post for an X Article.

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/1766132688316973056/LB-8W7_d_normal.jpg",
      "bio": "Crypto Research and Investing",
      "blueVerified": true,
      "coverUrl": "https://pbs.twimg.com/profile_banners/1764631141926002689/1773416426",
      "createdUtc": 1709555838,
      "followers": 14176,
      "following": 465,
      "handle": "Decentralisedco",
      "id": "1764631141926002689",
      "location": "Writing →",
      "mediaCount": 520,
      "name": "DCo"
    },
    "contentBlocks": [
      {
        "entities": [],
        "inlineStyles": [
          {
            "length": 65,
            "offset": 0,
            "style": "Italic"
          }
        ],
        "text": "Breaking down how crypto protocols approach revenue and cash flow",
        "type": "unstyled"
      }
    ],
    "coverImage": "https://pbs.twimg.com/media/GnHXrznXUAEs-v5.jpg",
    "createdUtc": 1743152472,
    "id": "QXJ0aWNsZUVudGl0eToxOTA1NTQxMTM5MTQ0Mjk4NDk4",
    "likes": 156,
    "previewText": "Breaking down how crypto protocols approach revenue and cash flow\nThis is a summ…",
    "quotes": 8,
    "replies": 16,
    "title": "When Tokens Burn",
    "views": 44386
  },
  "found": true
}

Response fields

FieldMeaning
data.titleTitle of the article.
data.previewTextShort plain-text preview of the start of the article. The text is cut off with an ellipsis.
data.contentBlocks[].textText of one block of the article body. Blocks appear in reading order.
data.contentBlocks[].typeBlock type, for example unstyled for a plain paragraph.
data.contentBlocks[].inlineStyles[]Style ranges inside the block text. Each row has a style such as Italic, an offset and a length.
data.contentBlocks[].entities[]Entity ranges inside the block text, with a key, an offset and a length. They mark spans of text such as links.
data.views / data.likes / data.replies / data.quotesEngagement counts for the article.
data.createdUtcCreation time of the article as a Unix timestamp in seconds.
data.coverImageURL of the article cover image.
data.author.handle / data.author.name / data.author.followersHandle, display name and follower count of the author. Other author fields include bio, blueVerified, location and posts.

Notes

  • Pass the canonical x.com or twitter.com status URL of the wrapper post, not a link to the article body.
  • The same createdUtc format (Unix seconds) is used for both the article and data.author.
  • If the lookup finds nothing, the call still succeeds and returns found: false.
  • To read the wrapper post itself, call Twitter Post Detail. To list the author's other posts, call Twitter User Published Posts.

Pricing

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

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
X (Twitter)1回あたり $0.00054 からJSON
Twitter1回あたり $0.0006 から非同期 JSON
X (Twitter)1回あたり $0.0001 からJSON
X (Twitter)1回あたり $0.0036 からJSON
X (Twitter)1回あたり $0.00045 からJSON
X (Twitter)1回あたり $0.00045 からJSON

ガイド:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

質問

FAQ

X / Twitter Article API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/twitter/article に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

X / Twitter Article API の料金はいくらですか?

1回あたり $0.00054 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

X / Twitter Article API はどのパラメータを受け付けますか?

必須: url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

X / Twitter Article API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

X (Twitter) の開発者アカウントまたは API key は必要ですか?

いいえ。X / Twitter Article は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。X (Twitter) の API アクセスを別途申請する必要はありません。