Get Tweet Replies

GET

Get replies for a specific tweet ID

GET /api/v1/twitter/tweets/:tweetId/replies

Authorization

X-API-Key
string
required

Parameters

NameTypeRequiredDescription
tweetIdstring
required
The ID of the tweet to get replies for
cursorstring
optional
Pagination cursor for fetching next page of results

Example Request

curl -X GET \
"https://api.xscraper.xyz/api/v1/twitter/tweets/1722715025402413077/replies" \
-H "X-API-Key: "

Response

Tweet Replies
application/json
{
  "data": {
    "replies": [
      {
        "id": "1722815025402413099",
        "text": "This is a reply to the original tweet",
        "username": "twitteruser",
        "name": "Twitter User",
        "userId": "987654321",
        "likes": 1500,
        "replies": 120,
        "retweets": 300,
        "views": 50000,
        "timeParsed": "2025-04-18T16:45:00.000Z",
        "hashtags": [],
        "mentions": [
          {
            "id": "44196397",
            "username": "elonmusk",
            "name": "Elon Musk"
          }
        ],
        "photos": [],
        "videos": [],
        "urls": [],
        "isReply": true,
        "inReplyToStatusId": "1722715025402413077",
        "isRetweet": false,
        "isQuoted": false
      }
    ],
    "next": "cursor_token_for_next_page"
  },
  "meta": {
    "statusCode": 200,
    "timestamp": "2025-04-19T15:49:28.824Z"
  }
}

Error Responses

401 Unauthorized
{
  "statusCode": 401,
  "timestamp": "2025-04-19T15:49:28.824Z",
  "path": "/api/v1/twitter/tweets/1722715025402413077/replies",
  "method": "GET",
  "message": "Invalid or expired API key"
}
404 Not Found
{
  "statusCode": 404,
  "timestamp": "2025-04-19T15:49:28.824Z",
  "path": "/api/v1/twitter/tweets/nonexistenttweetid/replies",
  "method": "GET",
  "message": "Replies not found"
}