Twitter User Followers (V2) - Data API Endpoint

User Followers (V2) by user id, bearer token, pagination token, expansions, fields (tweets), fields (users) and limit.


Download Twitter User Followers (V2) data from the Official Twitter API | 👥  Contributors: steve 🚩  Report

✏️ Inputs

User ID user_id Required

ID of the Twitter User to fetch the followers for. If you only know the username, use the User Details Scraper to get the User ID.

This ID is sometimes referred to as the author_id from other Twitter endpoints, such as when Scraping Tweets.

E.g. 10228272
Bearer Token access_token Required

Your Twitter app’s Bearer Token for collecting data with. If you don’t have one, see How to Get a Twitter API Key Without Approval or check out Twitter’s docs on Bearer Tokens for more information.

If you get the error client-not-enrolled, then make sure you’re not using a standalone app and try creating a new application with the Add App button under a project and NOT under the standalone section.

Pagination Token pagination_token Optional

Used for pagination. Provide the next_token you see in a response here to get the next page of results.

Expansions expansions Optional

A comma-separated list of additional data to return back in the response. See Twitter API Expansions for possible values or copy the example value here to get as much data back as possible.

E.g. pinned_tweet_id
Fields (Tweets) tweet_fields Optional

A comma-separated list of fields you would like back for Tweets returned in the response. See the Twitter API Tweet Model for all possible values or just use the example value here to get as much data back as possible.

E.g. attachments,author_id,context_annotations,conversation_id,created_at,entities,geo,in_reply_to_user_id,lang,possibly_sensitive,public_metrics,referenced_tweets,reply_settings,source,withheld
Fields (Users) user_fields Optional

A comma-separated list of fields you would like back for users in the response. See the Twitter API User Model for more information or just use the example value here to get as much data back as possible.

E.g. created_at,description,entities,location,pinned_tweet_id,profile_image_url,protected,public_metrics,url,verified,withheld
Limit limit Optional

Number of results to return per request.

📝 Notes

Posted by steve on Sept. 29, 2022, 6:30 a.m. 🚩  Report

⚡️ Endpoint

GET https://api.twitter.com/2/users/{{user_id}}/followers?tweet.fields={{tweet_fields}}&user.fields={{user_fields}}&expansions={{expansions}}&max_results={{ limit }}&pagination_token={{ pagination_token }}

Body

None

Headers

Authorization
Bearer {{access_token}}