Users
User Tweets and Replies
Fetch tweets and replies posted by a Twitter user via API. $0.001 per call, ~20 results per call. GetXAPI tweets and replies endpoint.
GET
/twitter/user/tweets_and_repliesThis endpoint costs $0.001 per API call and returns ~20 results per page.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userName | string | Yes | Screen name (without @) |
cursor | string | No | Pagination cursor |
Notes
- Returns tweets and replies posted by the user (their profile "Replies" tab). This is NOT their home feed — it only includes tweets and replies they authored.
- Pagination uses
next_cursoruntilhas_moreis false. - Each tweet includes an
entitiesobject — see User Tweets for the field shape.
Response (200)
{
"userName": "example_user",
"userId": "1234567890123456789",
"tweet_count": 20,
"has_more": true,
"next_cursor": "DAABCgABHAY...",
"tweets": [
{
"type": "tweet",
"id": "2010705621524292007",
"url": "https://x.com/example_user/status/2010705621524292007",
"twitterUrl": "https://twitter.com/example_user/status/2010705621524292007",
"text": "@another_user great point — totally agree",
"source": "Twitter Web App",
"retweetCount": 0,
"replyCount": 1,
"likeCount": 4,
"quoteCount": 0,
"viewCount": 132,
"createdAt": "Mon Jan 12 13:44:55 +0000 2026",
"lang": "en",
"bookmarkCount": 0,
"isReply": true,
"inReplyToId": "2010700000000000000",
"conversationId": "2010699000000000000",
"media": [],
"entities": {
"hashtags": [],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": [
{
"id_str": "9876543210987654321",
"indices": [0, 13],
"name": "Another User",
"screen_name": "another_user"
}
]
},
"author": {
"type": "user",
"userName": "example_user",
"url": "https://x.com/example_user",
"id": "1234567890123456789",
"name": "Example User",
"isVerified": false,
"isBlueVerified": true,
"profilePicture": "https://pbs.twimg.com/profile_images/.../abc_normal.jpg",
"coverPicture": "https://pbs.twimg.com/profile_banners/1234567890123456789/...",
"description": "Building things on the internet",
"location": "San Francisco, CA",
"followers": 1280,
"following": 312,
"createdAt": "Fri Jan 01 23:45:21 +0000 2021"
},
"quoted_tweet": null
}
]
}Error Responses
400 - Missing userName
{
"error": "Missing required query param: userName"
}Example
curl -H "Authorization: Bearer API_KEY" "https://api.getxapi.com/twitter/user/tweets_and_replies?userName=example_user"
# With pagination
curl -H "Authorization: Bearer API_KEY" "https://api.getxapi.com/twitter/user/tweets_and_replies?userName=example_user&cursor=DAABCgABHAY..."User TweetsHot
Fetch all tweets posted by a Twitter user via API. $0.001 per call, ~20 tweets per call — just $0.05 per 1,000 tweets. GetXAPI user tweets endpoint.
User MentionsNew
Fetch recent tweets that mention a Twitter user via API. $0.001 per call, ~20 tweets per call — just $0.05 per 1,000 mentions. GetXAPI user mentions endpoint.