You are viewing an outdated version of our documentation.
For the latest and most accurate information, please visit docs.socialdata.tools.
This endpoint returns an array of user profiles that the target profile (identified by user_id) is following. The profiles are returned in reverse chronological order, with the most recently followed profile appearing on the first page.
Endpoint
GET https://api.socialdata.tools/twitter/friends/list?user_id=...
Endpoint parameters
Name
Description
Example
user_id
(Required)
The numeric ID of the desired user.
1625802236571033602
cursor
(optional)
Cursor value obtained from next_cursor response property
Omit this value to retrieve the first page
4611686018541662731|1741085517660815316
Common Issues and Best Practices
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
Response codes
HTTP 200 OK - succeeded
HTTP 402 Payment Required - not enough credits to perform this request
HTTP 404 Not Found - requested tweet 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.