PrerequisitesBefore you begin, you’ll need:
- A developer account with an approved App
- Your App’s Bearer Token (for lookups)
- User Access Token (for managing follows)
Get a user’s followers
Retrieve the list of users following a specific user:cURL
Response
Get who a user follows
Retrieve the list of users that a specific user follows:cURL
Follow a user
Follow a user on behalf of the authenticated user:cURL
Response
If the target account is protected,
pending_follow will be true until the follow request is approved.Unfollow a user
Unfollow a user on behalf of the authenticated user:cURL
Response
Common parameters
| Parameter | Description |
|---|---|
max_results | Results per page (1-1000, default 100) |
pagination_token | Token for next page |
user.fields | Additional user fields |
expansions | Related objects to include |