Following
API for getting a Twitter user's following list
Following
Get the list of users that a specific Twitter user is following.
Request
URL: /api/twitter/following
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 users the user is following, including basic information for each user, such as username, display name, profile picture, etc.
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 |
500 | Internal server error |
Caching
This API request supports caching. When the same restId
parameter is requested multiple times within the cache validity period, the cached result will be returned without calling the Twitter API again.
Notes
- For accounts with many following users, this API may require multiple requests to retrieve the complete list
- Some accounts' following lists may not be fully accessible due to privacy settings