tweetIdstringआवश्यक
The unique identifier of the X (Twitter) post.
https://api.sandbase.ai/v1/api/twitter/post-detailGet the full detail of an X (Twitter) post identified by its tweet ID. Use it to inspect a known post after finding it through search, a user timeline, or an existing post URL.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns the full detail of one X (Twitter) post: its text, author, engagement counts, attached media and reply context. It needs the post's tweetId.
active and read its author details before citing it.curl -X POST "https://api.sandbase.ai/v1/api/twitter/post-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tweetId": "1585341984679469056"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
tweetId | string | Yes | The unique identifier of the X (Twitter) post. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"author": {
"blue_verified": true,
"image": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"name": "Elon Musk",
"rest_id": "44196397",
"screen_name": "elonmusk",
"sub_count": 241472212,
"verification": null
},
"bookmarks": 14034,
"conversation_control": {
"policy": null
},
"conversation_id": "1585341984679469056",
"created_at": "Wed Oct 26 18:45:58 +0000 2022",
"display_text": "Entering Twitter HQ – let that sink in!",
"entities": {
"hashtags": [],
"media": [
{
"additional_media_info": {
"monetizable": false
},
"display_url": "pic.x.com/D68z4K2wq7",
"expanded_url": "https://x.com/elonmusk/status/1585341984679469056/video/1",
"ext_media_availability": {
"status": "Available"
},
"id_str": "1585341912877146112",
"indices": [
40
],
"media_key": "7_1585341912877146112",
"media_results": {
"result": {
"media_key": "7_1585341912877146112"
}
},
"media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/1585341912877146112/pu/img/DwJ7wlGIe9ir…",
"original_info": {
"focus_rects": [],
"height": 1080,
"width": 1920
},
"sizes": {
"large": {
"h": 1080,
"resize": "fit",
"w": 1920
},
"medium": {
"h": 675,
"resize": "fit",
"w": 1200
},
"small": {
"h": 383,
"resize": "fit",
"w": 680
},
"thumb": {
"h": 150,
"resize": "crop",
"w": 150
}
},
"type": "video"
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"id": "1585341984679469056",
"in_reply_to_screen_name": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id_str": null,
"initial_tweets": null
}
| Field | Meaning |
|---|---|
text / display_text | The post text. text includes the shortened t.co link. display_text shows the text without the trailing media link. |
id / conversation_id | The post's own ID and the ID of the conversation it belongs to. They match when the post starts the conversation. |
created_at | When the post was created, in the format Wed Oct 26 18:45:58 +0000 2022. |
author.name / author.screen_name / author.rest_id | The author's display name, handle and numeric user ID. |
author.blue_verified / author.sub_count | Whether the author has the blue verified flag, and the sub_count value for the author's account. |
likes / retweets / replies / quotes / bookmarks | Engagement counts for the post. |
views | View count of the post. It can be null when no value is returned. |
media.video[].variants[] | Playable video files for the post. Each entry has a content_type and url. MP4 entries also have a bitrate. |
media.video[].duration | Length of the video. The value 9301 matches duration_millis in entities.media[].video_info, which suggests milliseconds. |
in_reply_to_status_id_str / in_reply_to_screen_name / reply_to | Set when the post is a reply. They are null for a standalone post. |
status / lang / sensitive | Post state (active), language code (en) and a flag for sensitive content. |
tweetId from the number at the end of a post URL, such as https://x.com/elonmusk/status/1585341984679469056, or from search and timeline results.tweetId is a string. Send it as text, not as a number.author.screen_name value with Twitter User Profile.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/twitter/post-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tweetId": "1585341984679469056"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
tweetIdstringआवश्यकThe unique identifier of the X (Twitter) post.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Twitter Post Detailयह API Twitter | $0.014286 प्रति कॉल | 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
प्रश्न
https://api.sandbase.ai/v1/api/twitter/post-detail पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.014286 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: tweetId (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Twitter Post Detail SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Twitter API access के लिए आवेदन करने की आवश्यकता नहीं है।