Get User Replies
GET
Get replies posted by a specific username
GET /api/v1/twitter/users/replies/:username
Authorization
X-API-Key
stringrequired
Parameters
Name | Type | Required | Description |
---|---|---|---|
username | string | required | The Twitter username |
count | number | optional | Number of tweets and replies to fetch (default: 10, max: 50) Default: 10 |
Example Request
curl -X GET \
"https://api.xscraper.xyz/api/v1/twitter/users/replies/elonmusk?count=10" \
-H "X-API-Key: "
Response
User Replies
application/json
{
"data": [
{
"id": "1722715025402413077",
"text": "This is a sample reply to another tweet",
"username": "elonmusk",
"name": "Elon Musk",
"userId": "44196397",
"likes": 25000,
"replies": 2000,
"retweets": 5000,
"views": 1000000,
"timeParsed": "2025-04-18T15:30:00.000Z",
"hashtags": [],
"mentions": [
{
"id": "12345678",
"username": "twitteruser",
"name": "Twitter User"
}
],
"photos": [],
"videos": [],
"urls": [],
"isReply": true,
"inReplyToStatusId": "9876543210123456",
"isRetweet": false,
"isQuoted": false
}
],
"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/users/replies/elonmusk",
"method": "GET",
"message": "Invalid or expired API key"
}
404 Not Found
{
"statusCode": 404,
"timestamp": "2025-04-19T15:49:28.824Z",
"path": "/api/v1/twitter/users/replies/nonexistentuser",
"method": "GET",
"message": "User not found"
}