get_user_following
Retrieve the list of accounts a user follows on Twitter by providing their screen name or user ID. Use pagination cursors to navigate through results, and respect rate limits for repeated requests.
Instructions
Get accounts that a user follows (their following list).
Note: X aggressively rate-limits follower / following requests — use
sparingly, paginate via cursor, don't loop without backoff.
Caller must provide exactly one of screen_name / user_id.
Args:
screen_name: Twitter username (without @).
user_id: Twitter numeric user ID.
count: Number to fetch (default 20, max 100).
cursor: Pagination cursor from a previous response's next_cursor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screen_name | No | ||
| user_id | No | ||
| count | No | ||
| cursor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |