Retrieve tweets and replies made by a specific user
Returns array of tweets from the user's tweets and replies timeline. Typically Twitter returns ~20 results per page. You can request additional search results by sending another request to the same endpoint using cursor parameter.
This endpoint doesn't support any filters and we can't adjust the number of items returned in the response. To have more flexibility - you may also use the Search endpoint with from:USERNAME query to retrieve the user's timeline.
Endpoint
To request only user's tweets timeline:
GET https://api.socialdata.tools/twitter/user/[user_id]/tweets?cursor=...
To request only user's replies timeline (this will also include own tweets):
GET https://api.socialdata.tools/twitter/user/[user_id]/tweets-and-replies?cursor=...
Endpoint parameters
Name
Description
Example
user_id
(Required)
The ID of the user for whom to return results.
443198458
cursor
(Optional)
Cursor value obtained from next_cursor response property
Omit this value to retrieve the first page
In languages where theuser_id value exceeds the default Integer type limit (e.g., Node.js), store user_id as a string. Use the id_str property returned by the API for these values
Always URL-encode the cursor value when passing it back to the API for subsequent requests
Response codes
HTTP 200 OK - succeeded
HTTP 402 Payment Required - not enough credits to perform this request
HTTP 403 Forbidden - user's profile is set to "protected"
HTTP 404 Not Found - requested user does not exist
HTTP 422 Unprocessable Content - validation failed (e.g. one of the required parameters was not provided)
HTTP 500Internal Server Error - other error, typically means that SocialData API failed to obtain the requested information and you should try again later
Rate limits
By default each user has a limit of 120 requests per minute shared across all endpoints. Please reach out to support@socialdata.tools if you need to raise your rate limit.