Twitter (X) Latest Tweet Comments
https://api.sandbase.ai/v1/api/twitter/web/latest-post-commentsReturns recent replies and comment timelines for a specific post using its tweet ID, with cursor support for multi-page results.
- 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": {
"next_cursor": "DAADDAABCgABHT8q824a0AIKAAIdPuDmWVeAgAAIAAIAAAACCAADAAAAAAgABAAAAAAKAAUdPyuoyAAnEAoABh0_K6jH_9jwCwAHAAAA8EVtUEM2d0FBQWZRL2dHSk4wdkdwL0FBQUFCUWRQeVh2UUJvUS94MC9KWFUrbGxGRkhUOEpuTlFid1BrZFB3NTZ5eG9BdEIwL0ZGeWhWb0dkSFQ3aHZGYmJvWjBkUHZHaWY5dUFNQjAvSGRvZWxuR25IVDhtZThoYXNUZ2RQdllKOGh0UUNoMC9JazFhR25GakhUN2c3eGJXOEFJZFB4aXZZaHBoZkIwL0htc3AybEdaSFQ4cTgyNGEwQUlkUHdLeEI5dWdmaDArNE9aWlY0Q0FIVDhpbjRUYWNYSWRQeDg3YmRld29oMC9HdFIrV3JFWgAA",
"prev_cursor": "DAADDAABCgABHT8q824a0AIKAAIdPuDmWVeAgAAIAAIAAAABCAADAAAAAAgABAAAAAAKAAUdPyuoyAAnEAoABh0_K6jH_9jwCwAHAAAA8EVtUEM2d0FBQWZRL2dHSk4wdkdwL0FBQUFCUWRQeVh2UUJvUS94MC9KWFUrbGxGRkhUOEpuTlFid1BrZFB3NTZ5eG9BdEIwL0ZGeWhWb0dkSFQ3aHZGYmJvWjBkUHZHaWY5dUFNQjAvSGRvZWxuR25IVDhtZThoYXNUZ2RQdllKOGh0UUNoMC9JazFhR25GakhUN2c3eGJXOEFJZFB4aXZZaHBoZkIwL0htc3AybEdaSFQ4cTgyNGEwQUlkUHdLeEI5dWdmaDArNE9aWlY0Q0FIVDhpbjRUYWNYSWRQeDg3YmRld29oMC9HdFIrV3JFWgAA",
"status": "ok",
"timeline": [
{
"bookmarks": 0,
"conversation_id": "2107237881668313108",
"created_at": "Tue Oct 06 12:38:18 +0000 2026",
"display_text_range": [
29,
144
],
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "11348282",
"indices": [
0,
5
],
"name": "NASA",
"screen_name": "NASA"
},
{
"id_str": "1451773004",
"indices": [
6,
20
],
"name": "International Space Station",
"screen_name": "Space_Station"
},
{
"id_str": "34743251",
"indices": [
21,
28
],
"name": "SpaceX",
"screen_name": "SpaceX"
}
]
},
"favorites": 0,
"in_reply_to_screen_name": "NASA",
"in_reply_to_status_id_str": "2107237881668313108",
"in_reply_to_user_id_str": "11348282",
"lang": "en",
"media": [],
"quotes": 0,
"replies": 0,
"retweets": 0,
"screen_name": "anup_x_dev",
"sensitive": null,
"source": null,
"text": "@NASA @Space_Station @SpaceX Nearly eight months in space and they're finally coming home. I leave for one week and I'm scared to open my inbox.",
"tweet_id": "2107450375645351938",
"type": "tweet",
"user_info": {
"avatar": "https://pbs.twimg.com/profile_images/2104692919802486784/a2fZuM_H_normal.jpg",
"cover_image": null,
"created_at": "Sat Aug 24 06:45:33 +0000 2013",
"description": null,
"favorites_count": 1948,
"followers_count": 157,
"friends_count": null,
"location": "Dubai, United Arab Emirates",
"name": "Anup",
"rest_id": "1695754196",
"screen_name": "anup_x_dev",
"url": null,
"verified": true,
"verified_type": null
},
"views": "6"
},
{
"bookmarks": 0,
"conversation_id": "2107237881668313108",
"created_at": "Tue Oct 06 12:18:47 +0000 2026",
"display_text_range": [
29,
112
],
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "11348282",
"indices": [
0,
5
],
"name": "NASA",
"screen_name": "NASA"
},
{
"id_str": "1451773004",
"indices": [
6,
20
],
"name": "International Space Station",
"screen_name": "Space_Station"
},
{
"id_str": "34743251",
"indices": [
21,
28
],
"name": "SpaceX",
"screen_name": "SpaceX"
}
]
},
"favorites": 0,
"in_reply_to_screen_name": "NASA",
"in_reply_to_status_id_str": "2107237881668313108",
"in_reply_to_user_id_str": "11348282",
"lang": "en",
"media": [],
"quotes": 0,
"replies": 0,
"retweets": 0,
"screen_name": "JustaJarhead71",
"sensitive": null,
"source": null,
"text": "@NASA @Space_Station @SpaceX Proud of the American teams helping make this possible. Bring all four home safely.",
"tweet_id": "2107445463716901176",
"type": "tweet",
"user_info": {
"avatar": "https://pbs.twimg.com/profile_images/2105766619934760961/J98zD-96_normal.jpg",
"cover_image": null,
"created_at": "Wed Jun 25 21:35:34 +0000 2008",
"description": null,
"favorites_count": 96762,
"followers_count": 4133,
"friends_count": null,
"location": "United States",
"name": "Just a Jarhead",
"rest_id": "15236949",
"screen_name": "JustaJarhead71",
"url": null,
"verified": true,
"verified_type": null
},
"views": "26"
},
{
"bookmarks": 0,
"conversation_id": "2107237881668313108",
"created_at": "Tue Oct 06 12:16:23 +0000 2026",
"display_text_range": [
29,
66
],
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "11348282",
"indices": [
0,
5
],
"name": "NASA",
"screen_name": "NASA"
},
{
"id_str": "1451773004",
"indices": [
6,
20
],
"name": "International Space Station",
"screen_name": "Space_Station"
},
{
"id_str": "34743251",
"indices": [
21,
28
],
"name": "SpaceX",
"screen_name": "SpaceX"
}
]
},
"favorites": 0,
"in_reply_to_screen_name": "NASA",
"in_reply_to_status_id_str": "2107237881668313108",
"in_reply_to_user_id_str": "11348282",
"lang": "en",
"media": [],
"quotes": 0,
"replies": 0,
"retweets": 0,
"screen_name": "marixhottie",
"sensitive": null,
"source": null,
"text": "@NASA @Space_Station @SpaceX Eight months in space? I need coffee.",
"tweet_id": "2107444860135543039",
"type": "tweet",
"user_info": {
"avatar": "https://pbs.twimg.com/profile_images/2031824996591337472/wdJF2bgE_normal.jpg",
"cover_image": null,
"created_at": "Sat Mar 08 16:34:05 +0000 2025",
"description": null,
"favorites_count": 6005,
"followers_count": 164,
"friends_count": null,
"location": "New York, NY",
"name": "Mari Hottie",
"rest_id": "1898411877006225408",
"screen_name": "marixhottie",
"url": null,
"verified": false,
"verified_type": null
},
"views": "8"
},
{
"bookmarks": 0,
"conversation_id": "2107237881668313108",
"created_at": "Tue Oct 06 12:14:18 +0000 2026",
"display_text_range": [
29,
261
],
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "11348282",
"indices": [
0,
5
],
"name": "NASA",
"screen_name": "NASA"
},
{
"id_str": "1451773004",
"indices": [
6,
20
],
"name": "International Space Station",
"screen_name": "Space_Station"
},
{
"id_str": "34743251",
"indices": [
21,
28
],
"name": "SpaceX",
"screen_name": "SpaceX"
}
]
},
"favorites": 0,
"in_reply_to_screen_name": "NASA",
"in_reply_to_status_id_str": "2107237881668313108",
"in_reply_to_user_id_str": "11348282",
"lang": "en",
"media": [],
"quotes": 0,
"replies": 0,
"retweets": 0,
"screen_name": "MarketsPulse24H",
"sensitive": null,
"source": null,
"text": "@NASA @Space_Station @SpaceX Eight months in orbit is an extraordinary mission. Wishing the Crew-12 astronauts a safe undocking, smooth journey home and successful splashdown. Another reminder of what international cooperation and space exploration can achieve.",
"tweet_id": "2107444336124121413",
"type": "tweet",
"user_info": {
"avatar": "https://pbs.twimg.com/profile_images/2099928131335344128/nUHUJcwq_normal.jpg",
"cover_image": null,
"created_at": "Tue Sep 15 18:23:19 +0000 2026",
"description": null,
"favorites_count": 29,
"followers_count": 344,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/latest-post-comments
- Authentication
- Bearer API key
API README
Twitter (X) Latest Tweet Comments API
Retrieve recent replies for a target post by providing tweet_id. Use the optional cursor parameter to step through paginated comment timelines.
Use cases
- Monitor audience discussions and replies on specific posts.
- Track recent public reactions to announcements or news.
- Gather reply threads for sentiment analysis workflows.
Request
curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/latest-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.
{
"timeline": [
{
"conversation_id": "2107237881668313108",
"in_reply_to_screen_name": "NASA",
"in_reply_to_status_id_str": "2107237881668313108",
"in_reply_to_user_id_str": "11348282",
"screen_name": "<user>",
"text": "@NASA @Space_Station @SpaceX Nearly eight months in space and they're finally coming home…",
"tweet_id": "2107450375645351938",
"type": "tweet",
"views": "6",
"user_info": {
"favorites_count": 1948,
"followers_count": 157,
"name": "Anup",
"rest_id": "1695754196",
"screen_name": "<user>",
"verified": true
}
}
]
}
Notes
- Supply
cursorfrom the prior response to page through additional comments.
Related APIs
- Twitter (X) Tweet Comments: Returns comment threads and replies under a specified tweet.
- 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/latest-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 | $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) Latest Tweet Comments API?
Send a POST request to https://api.sandbase.ai/v1/api/twitter/web/latest-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) Latest 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) Latest 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) Latest 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) Latest 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.
