get_user_following
Fetch the list of accounts a user follows on Twitter by supplying their screen name or user ID. Use cursor pagination to retrieve large following lists.
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 |
|---|---|---|---|
| count | No | ||
| cursor | No | ||
| user_id | No | ||
| screen_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |