Twitter (X) Tweet Comments
https://api.sandbase.ai/v1/api/twitter/web/post-commentsReturns comment threads and replies under a specified tweet. Provide a tweet ID and paginate through conversations using cursor values.
- Price
- $0.0015USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 1 optional
Try the model
Playground
[
{
"data": {
"author": {
"blue_verified": true,
"description": null,
"image": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg",
"name": "NASA",
"rest_id": "11348282",
"screen_name": "NASA",
"sub_count": null
},
"bookmarks": 138,
"conversation_id": "2107237881668313108",
"created_at": "Mon Oct 05 22:33:56 +0000 2026",
"cursor": "DAAKCgABHT8rqjV__m0LAAIAAAGoRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUNVZFBuUkRISmN3SmgwK2RjdzNtc0g2SFQ3ZmE3V2FBZWNkUHdtYzFCdkErUjArYlk0cDJwQkpIVDZPMEZ0YlFPWWRQcVUyb1Zvd3loMCtyVS8yVnhCa0hUOG1lOGhhc1RnZFBuVEw5dGF3R1IwK2FtL2JXMEFGSFQ1M1RWV2JzRGdkUG1wVVhwZFJvUjAraUtDRDJqRitIVDV4VmxTWGtDa2RQd0t4Qjl1Z2ZoMC9IenR0MTdDaUhUNXhvZ25iWWJzZFBuWEZCaHJ4a3gwK2RMaWNtekJiSFQ1cnBDS2JJVDBkUHRXZmhKc1IreDArZlkxdlcxRy9IVDUwWEhoYllOQWRQeEFXMHhkQkp4MCs4YUovMjRBd0hUNzJDZkliVUFvZFBucVpNdHJSSUIwK2hwTEZWaEYySFQ3WnZGdVhjWGdkUG01ejVCWXlBQjArYWJCU0ZpQVVIVDZRRS9CYUVmSWRQbkhDQVZjZ2Z4MCtlTTRGR3pITEhUN1IrMzNXQURNZFB5VjFQcFpSUlE9PQgAAwAAAAILAAQAAAAGQm90dG9tAAA",
"display_text": "Time to bring them home 🌎\n\nAfter nearly eight months aboard the @Space_Station, the four members of Crew-12 will soon head back to Earth. We’re targeting no earlier than 8:05am EDT (1205 UTC), on Wednesday, Oct. 7, for the undocking of the @SpaceX Dragon spacecraft. Details:",
"entities": {
"media": [
{
"allow_download_status": {
"allow_download": true
},
"display_url": "pic.x.com/Vu7At4nnQ3",
"expanded_url": "https://x.com/NASA/status/2107237881668313108/photo/1",
"ext_alt_text": "Inside the International Space Station NASA’s SpaceX Crew-12 members gather for a portrait in the pressure suits. From left, Roscosmos cosmonaut Andrey Fedyaev, NASA astronauts Jack Hathaway and Jessica Meir, and ESA (European Space Agency) astronaut Sophie Adenot. ",
"ext_media_availability": {
"status": "Available"
},
"features": {
"large": {
"faces": [
{
"h": 96,
"w": 96,
"x": 44,
"y": 238
},
{
"h": 148,
"w": 148,
"x": 1646,
"y": 218
},
{
"h": 172,
"w": 172,
"x": 1282,
"y": 284
},
{
"h": 220,
"w": 220,
"x": 836,
"y": 144
},
{
"h": 200,
"w": 200,
"x": 370,
"y": 204
}
]
},
"medium": {
"faces": [
{
"h": 56,
"w": 56,
"x": 25,
"y": 139
},
{
"h": 86,
"w": 86,
"x": 964,
"y": 127
},
{
"h": 100,
"w": 100,
"x": 751,
"y": 166
},
{
"h": 128,
"w": 128,
"x": 489,
"y": 84
},
{
"h": 117,
"w": 117,
"x": 216,
"y": 119
}
]
},
"orig": {
"faces": [
{
"h": 96,
"w": 96,
"x": 44,
"y": 238
},
{
"h": 148,
"w": 148,
"x": 1646,
"y": 218
},
{
"h": 172,
"w": 172,
"x": 1282,
"y": 284
},
{
"h": 220,
"w": 220,
"x": 836,
"y": 144
},
{
"h": 200,
"w": 200,
"x": 370,
"y": 204
}
]
},
"small": {
"faces": [
{
"h": 31,
"w": 31,
"x": 14,
"y": 79
},
{
"h": 49,
"w": 49,
"x": 546,
"y": 72
},
{
"h": 57,
"w": 57,
"x": 425,
"y": 94
},
{
"h": 73,
"w": 73,
"x": 277,
"y": 47
},
{
"h": 66,
"w": 66,
"x": 122,
"y": 67
}
]
}
},
"id_str": "2107237609105768448",
"indices": [
276,
299
],
"media_key": "3_2107237609105768448",
"media_results": {
"result": {
"media_key": "3_2107237609105768448"
}
},
"media_url_https": "https://pbs.twimg.com/media/HT5pcNwXwAAKdoM.jpg",
"original_info": {
"focus_rects": [
{
"h": 1147,
"w": 2048,
"x": 0,
"y": 0
},
{
"h": 1365,
"w": 1365,
"x": 290,
"y": 0
},
{
"h": 1365,
"w": 1197,
"x": 374,
"y": 0
},
{
"h": 1365,
"w": 683,
"x": 631,
"y": 0
},
{
"h": 1365,
"w": 2048,
"x": 0,
"y": 0
}
],
"height": 1365,
"width": 2048
},
"sizes": {
"large": {
"h": 1365,
"resize": "fit",
"w": 2048
},
"medium": {
"h": 800,
"resize": "fit",
"w": 1200
},
"small": {
"h": 453,
"resize": "fit",
"w": 680
},
"thumb": {
"h": 150,
"resize": "crop",
"w": 150
}
},
"type": "photo",
"url": "https://t.co/Vu7At4nnQ3"
}
],
"user_mentions": [
{
"id_str": "1451773004",
"indices": [
64,
78
],
"name": "International Space Station",
"screen_name": "Space_Station"
},
{
"id_str": "34743251",
"indices": [
240,
247
],
"name": "SpaceX",
"screen_name": "SpaceX"
}
]
},
"id": "2107237881668313108",
"initial_tweets": null,
"lang": "en",
"likes": 5359,
"media": null,
"quotes": 46,
"replies": 191,
"retweets": 639,
"sensitive": false,
"source": null,
"status": "active",
"text": "Time to bring them home 🌎\n\nAfter nearly eight months aboard the @Space_Station, the four members of Crew-12 will soon head back to Earth. We’re targeting no earlier than 8:05am EDT (1205 UTC), on Wednesday, Oct. 7, for the undocking of the @SpaceX Dragon spacecraft. Details: https://t.co/PPq8gNyI1G",
"thread": [
{
"author": {
"blue_verified": true,
"can_dm": null,
"description": null,
"image": "https://pbs.twimg.com/profile_images/1885717198993330176/aad7Cj18_normal.jpg",
"name": "SavingPrivateBryan",
"rest_id": "1865856717839339520",
"screen_name": "SavingB14426",
"sub_count": null
},
"bookmarks": 0,
"conversation_id": "2107237881668313108",
"created_at": "Tue Oct 06 00:40:08 +0000 2026",
"display_text": ".@grok what’s the most important thing that’s ever been discovered on the ISS?",
"entities": {
"user_mentions": [
{
"id_str": "11348282",
"indices": [
0,
5
],
"name": "NASA",
"screen_name": "NASA"Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.0015 / run
- Daily free calls
- First 100 calls per day free (shared per organization)
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- tweet_id
- string · required
- cursor
- string · optional
Access
- Provider
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/twitter/web/post-comments
- Authentication
- Bearer API key
API README
Twitter (X) Tweet Comments API
Retrieve discussion threads and replies for a specific post by providing tweet_id. Use the optional cursor parameter to browse through multiple pages of replies.
Use cases
- Read public audience replies and conversations under a specific tweet.
- Track engagement metrics such as reply likes and view counts.
- Monitor user interactions and follow-up threads on brand announcements.
Request
curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/post-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tweet_id": "2107237881668313108"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tweet_id | string | Yes | Tweet ID |
cursor | string | No | Cursor, default is None, used for paging, obtained from the last request |
Example response
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"thread": [
{
"conversation_id": "2107237881668313108",
"display_text": ".@grok what’s the most important thing that’s ever been discovered on the ISS?",
"id": "2107269640590070134",
"likes": 1,
"status": "active",
"text": "@NASA @Space_Station @SpaceX .@grok what’s the most important thing that’s ever been disc…",
"views": "795",
"author": {
"blue_verified": true,
"name": "SavingPrivateBryan",
"rest_id": "1865856717839339520",
"screen_name": "<user>"
}
}
]
}
Notes
- Requires
tweet_idto identify the post. - Use
cursorfrom the previous response to paginate through additional comments.
Related APIs
- Twitter (X) Latest Tweet Comments: Returns recent replies and comment timelines for a specific post using its tweet ID, with cursor support for multi-page results.
- Twitter (X) Retweet User List: Returns a list of users who reposted a specific post using its tweet ID, including follower counts, media counts, and user identifiers.
- Twitter (X) Search: Search Twitter / X posts by keyword and get tweets with text, author, time and engagement counts (likes, retweets, replies, views).
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/twitter/web/post-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"tweet_id": "2107237881668313108"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Twitter (X) Tweet CommentsThis API Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the Twitter (X) Tweet Comments API?
Send a POST request to https://api.sandbase.ai/v1/api/twitter/web/post-comments with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the Twitter (X) Tweet Comments API cost?
$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.
What parameters does the Twitter (X) Tweet Comments API accept?
Required: tweet_id (string). Optional: cursor (string). The Parameters table and the Playground on this page list every field.
What does the Twitter (X) Tweet Comments API return?
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
Do I need a Twitter developer account or API key?
No. Twitter (X) Tweet Comments runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Twitter API access separately.
