User Tweets
API for getting Twitter user tweet list
User Tweets
Get the list of tweets from a specific Twitter user.
Request
URL: /api/twitter/user-tweets
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 user tweets in reverse chronological order, including tweet content, creation time, like count, retweet count, 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 |
Getting the User's restId
To use this API, you need to know the user's restId
. You can obtain it through the following methods:
- Use the User Profile API to query the user's basic information, which includes the restId
- On the Twitter web version, the user's profile URL usually contains their numeric ID, such as
https://twitter.com/i/user/44196397