User Tweets and Replies
API for getting Twitter user's tweets and replies
User Tweets and Replies
Get both original tweets and replies posted by a specific Twitter user.
Request
URL: /api/twitter/user-tweets-replies
Method: GET
or POST
Request Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
restId | string | Yes | User's unique ID identifier |
Response
A successful response will return a list of the user's tweets and replies in reverse chronological order, including tweet content, creation time, reply relationships, and other detailed information.
Examples
Request Example
Response Example
Error Responses
Status Code | Description |
---|---|
400 | Request parameter error, e.g., missing required restId parameter |
401 | Authentication failed, API key invalid or missing |
404 | User does not exist or has no tweets |
500 | Internal server error |
Difference from User Tweets API
- User Tweets API (
/api/twitter/user-tweets
) only returns the user's original tweets - User Tweets and Replies API (
/api/twitter/user-tweets-replies
) returns all content posted by the user, including original tweets and replies to other tweets
Notes
- For very active users, this API may return a large amount of data
- Reply-type tweets will contain additional metadata indicating what they are replying to