urlstringerforderlich
Canonical x.com or twitter.com URL of the public wrapper post for an X Article.
https://api.sandbase.ai/v1/api/twitter/articleGet a public X long-form article from its wrapper post URL, including its author, engagement, cover image, and structured content blocks.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
views, likes, replies and quotes on an article over repeated lookups.contentBlocks of an article into your own page or summary format.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.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Canonical x.com or twitter.com URL of the public wrapper post for an X Article. |
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
}
| Field | Meaning |
|---|---|
data.title | Title of the article. |
data.previewText | Short plain-text preview of the start of the article. The text is cut off with an ellipsis. |
data.contentBlocks[].text | Text of one block of the article body. Blocks appear in reading order. |
data.contentBlocks[].type | Block 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.quotes | Engagement counts for the article. |
data.createdUtc | Creation time of the article as a Unix timestamp in seconds. |
data.coverImage | URL of the article cover image. |
data.author.handle / data.author.name / data.author.followers | Handle, display name and follower count of the author. Other author fields include bio, blueVerified, location and posts. |
createdUtc format (Unix seconds) is used for both the article and data.author.found: false.Billed at the actual cost of each call, about $0.00054 for the request above. Failed calls are not charged.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
urlstringerforderlichCanonical x.com or twitter.com URL of the public wrapper post for an X Article.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
X / Twitter ArticleDiese API X (Twitter) | Ab $0.00054 pro Aufruf | JSON |
Twitter | Ab $0.0006 pro Aufruf | Asynchrones JSON |
X (Twitter) | Ab $0.0001 pro Aufruf | JSON |
X (Twitter) | Ab $0.0036 pro Aufruf | JSON |
X (Twitter) | Ab $0.00045 pro Aufruf | JSON |
X (Twitter) | Ab $0.00045 pro Aufruf | JSON |
Anleitungen:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/twitter/article mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.00054 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: url (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. X / Twitter Article läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für X (Twitter) API beantragen.