Tweets
Tweet Replies
Get replies for a tweet
GET /twitter/tweet/replies
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Tweet id |
cursor | string | No | Pagination cursor |
Notes
- Returns replies for a tweet.
- Pagination uses
next_cursoruntilhas_moreis false.
Response (200)
{
"tweetId": "2019199325365227607",
"reply_count": 38,
"has_more": false,
"next_cursor": null,
"replies": [
{
"type": "tweet",
"id": "2019264360682778716",
"url": "https://x.com/elonmusk/status/2019264360682778716",
"text": "@Gaurab Yes, it is extremely difficult",
"likeCount": 3718,
"replyCount": 396,
"viewCount": 300017,
"author": {
"userName": "elonmusk",
"name": "Elon Musk"
}
}
]
}Error Responses
400 - Missing id
{
"error": "Missing required query param: id"
}Example
curl -H "Authorization: Bearer API_KEY" "https://api.getxapi.com/twitter/tweet/replies?id=2019199325365227607"
# With pagination
curl -H "Authorization: Bearer API_KEY" "https://api.getxapi.com/twitter/tweet/replies?id=2019199325365227607&cursor=DAABCgABG..."