# Twitter (X) Latest Tweet Comments API

> Returns recent replies and comment timelines for a specific post using its tweet ID, with cursor support for multi-page results.

Source: https://www.sandbase.ai/apis/twitter/web/latest-post-comments
API reference: https://www.sandbase.ai/apis/twitter/web/latest-post-comments/docs

## Facts

- Provider: Twitter
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/twitter/web/latest-post-comments`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, twitter
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/twitter/web/latest-post-comments` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `tweet_id` | string | yes |  |
| `cursor` | string | no |  |

## 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.

## 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

```bash
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.

```json
{
  "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 `cursor` from the prior response to page through additional comments.

#### Related APIs

- [Twitter (X) Tweet Comments](/model/twitter/web/post-comments): Returns comment threads and replies under a specified tweet.
- [Twitter (X) Retweet User List](/model/twitter/web/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](/model/twitter/web/search-timeline): Search Twitter / X posts by keyword and get tweets with text, author, time and engagement counts (likes, retweets, replies, views).
