tweet_idsstringआवश्यक
Comma-separated list of tweet IDs.
https://api.sandbase.ai/v1/api/twitter/tweets-by-idsLook up several tweets at once by a comma-separated list of tweet IDs, with text, author and engagement counts.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns details for several tweets in one call. You pass a comma-separated list of tweet IDs in tweet_ids, and the response has one entry per ID in tweets with the text, author, engagement counts and links.
curl -X POST "https://api.sandbase.ai/v1/api/twitter/tweets-by-ids" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tweet_ids": "1585341984679469056,1846987139428634858"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
tweet_ids | string | Yes | Comma-separated list of tweet IDs. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"msg": "success",
"status": "success",
"tweets": [
{
"author": {
"affiliatesHighlightedLabel": {
"label": {
"badge": {
"url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"
},
"description": "X",
"url": {
"url": "https://twitter.com/X",
"url_type": "DeepLink"
},
"user_label_display_type": "Badge",
"user_label_type": "BusinessLabel"
}
},
"automatedBy": null,
"canDm": false,
"canMediaTag": false,
"coverPicture": "https://pbs.twimg.com/profile_banners/44196397/1774145451",
"createdAt": "Tue Jun 02 20:12:29 +0000 2009",
"description": "https://t.co/ZdBx5WABYx",
"entities": {
"description": {
"urls": [
{
"display_url": "Terafab.AI",
"expanded_url": "http://Terafab.AI",
"indices": [
0
],
"url": "https://t.co/ZdBx5WABYx"
}
]
}
}
},
"bookmarkCount": 14034,
"card": null,
"communityInfo": null,
"conversationId": "1585341984679469056",
"createdAt": "Wed Oct 26 18:45:58 +0000 2022",
"displayTextRange": [
0
],
"entities": {},
"extendedEntities": {
"media": [
{
"additional_media_info": {
"monetizable": false
},
"display_url": "pic.x.com/D68z4K2wq7",
"expanded_url": "https://x.com/elonmusk/status/1585341984679469056/video/1",
"ext_master_playlist_only": [],
"ext_media_availability": {
"status": "Available"
},
"ext_playlists": [],
"id_str": "1585341912877146112",
"indices": [
40
]
}
]
},
"id": "1585341984679469056",
"inReplyToId": "",
"inReplyToUserId": ""
}
]
}
| Field | Meaning |
|---|---|
tweets[] | One entry per requested tweet ID. An entry with an empty id and empty text has no data. |
tweets[].id / tweets[].url / tweets[].twitterUrl | The tweet ID and its links on x.com and twitter.com. |
tweets[].text | The tweet text. Media links appear as short t.co URLs. |
tweets[].createdAt | Posting time as a string such as Wed Oct 26 18:45:58 +0000 2022. |
tweets[].likeCount / tweets[].retweetCount / tweets[].replyCount / tweets[].quoteCount / tweets[].bookmarkCount | Engagement counts for the tweet. |
tweets[].viewCount | View count. The sample tweet shows 0, so treat that value with care. |
tweets[].isReply / tweets[].isQuote / tweets[].isRetweet | Flags that show what kind of tweet it is. |
tweets[].conversationId | ID of the conversation the tweet belongs to. |
tweets[].author.createdAt / tweets[].author.description / tweets[].author.coverPicture | When the author account was created, its bio text and its banner image URL. |
tweets[].extendedEntities.media[] | Attached media items, with expanded_url, display_url and id_str. |
1585341984679469056,1846987139428634858.Billed at the actual cost of each call, about $0.0075 for the request above. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/twitter/tweets-by-ids" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tweet_ids": "1585341984679469056,1846987139428634858"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
tweet_idsstringआवश्यकComma-separated list of tweet IDs.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
X (Twitter) | $0.0075 प्रति कॉल से | 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/tweets-by-ids पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.0075 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: tweet_ids (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। X (Twitter) Tweets by IDs SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से X (Twitter) API access के लिए आवेदन करने की आवश्यकता नहीं है।