> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Twitter / X Replies API

> Every reply to a tweet as a full tweet record: author, engagement, media, quotes. The original is included, flagged so you can tell them apart.

`POST /v1/data/twitter/replies/run`

**Pricing:** $0.00025 per replie ($0.25 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**conversation\_id** `string` *required*

The tweet to fetch replies for: a tweet/status URL ([https://x.com/.../status/\&lt;id](https://x.com/.../status/\&lt;id)>) or the bare numeric tweet ID. This is the conversation root.

Format e.g. `https://x.com/nasa/status/2039473910987534599`.

**maxResults** `integer`

Number of replies to return. Use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/twitter/replies/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "conversation_id": "https://x.com/i/status/2070026154589782256",
    "maxResults": 50
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/twitter/replies/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "conversation_id": "https://x.com/i/status/2070026154589782256",
    "maxResults": 50
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/twitter/replies/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "conversation_id": "https://x.com/i/status/2070026154589782256",
  "maxResults": 50
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one replie, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `tweetUrl` | Tweet URL | url |
| `tweetText` | Tweet Text | text |
| `postedDate` | Posted Date | text |
| `language` | Language | text |
| `isReply` | Is Reply | boolean |
| `views` | Views | number |
| `likes` | Likes | number |
| `retweets` | Retweets | number |
| `replies` | Replies | number |
| `quotes` | Quotes | number |
| `bookmarks` | Bookmarks | number |
| `replyToHandle` | Reply To Handle | text |
| `replyToTweetUrl` | Reply To Tweet URL | url |
| `quotedTweetUrl` | Quoted Tweet URL | url |
| `quotedTweetText` | Quoted Tweet Text | text |
| `hashtags` | Hashtags | array |
| `mentions` | Mentions | object\_array |
| `outboundLinks` | Outbound Links | array |
| `tweetMedia` | Tweet Media | object\_array |
| `author` | Author | object |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "twitter/replies",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "retweets": 1604,
      "quotedTweetUrl": null,
      "author": {
        "name": "Elon Musk",
        "handle": "elonmusk",
        "authorId": "44196397",
        "profileUrl": "https://x.com/elonmusk",
        "photo": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg",
        "bio": null,
        "location": null,
        "website": null,
        "followers": 241372421,
        "following": 1389,
        "tweetCount": 107131,
        "accountCreated": "2009-06-02T20:12:29Z",
        "blueVerified": true,
        "mediaCount": 4705,
        "likesGiven": 243914,
        "dmsOpen": false
      },
      "bookmarks": 913,
      "replyToTweetUrl": null,
      "replyToHandle": null,
      "language": "zxx",
      "postedDate": "2026-06-25T06:07:49Z",
      "quotedTweetText": null,
      "tweetText": "https://t.co/OabyITiCxp",
      "likes": 8484,
      "tweetUrl": "https://x.com/elonmusk/status/2070026154589782256",
      "views": "2331840",
      "replies": 758,
      "tweetMedia": [
        {
          "mediaType": "Video",
          "imageUrl": "https://pbs.twimg.com/media/HLl-ZuoXgAA2Vwj.jpg",
          "videoUrl": "https://video.twimg.com/amplify_video/2069769420176871425/vid/avc1/1920x1080/KOOgj3u5n0db3eu2.mp4?tag=28",
          "durationSeconds": 273,
          "altText": null
        }
      ],
      "mentions": [],
      "outboundLinks": null,
      "isReply": false,
      "quotes": 49,
      "hashtags": null
    }
  ]
}
```

## Related APIs

For the tweets themselves use [`twitter/tweets`](https://docs.mindcase.co/apis/twitter/tweets); for who retweeted use [`twitter/retweeters`](https://docs.mindcase.co/apis/twitter/retweeters).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.