How to Get Twitter Followers and Following Lists via API
The follower and following lists of any public X (formerly Twitter) account are some of the most valuable datasets on the platform. A follower list tells you who is interested in a brand, topic, or personality. A following list reveals who that account pays attention to: their influences, competitors, and information sources. Together, they map the social graph around any account. Sorsa API provides two endpoints for extracting this data:/followers (who follows an account) and /follows (who an account is following). Both return up to 200 full user profiles per request, with cursor-based pagination to walk through the complete list. Every user object includes bio, follower count, tweet count, location, verified status, profile image, and more.
This guide covers both endpoints from the simplest possible request through production-scale extraction with filtering, audience overlap analysis, and pagination strategy.
Free to start: Every Sorsa endpoint, including/followers,/follows, and/verified-followers, is available on your first 100 requests: one-time, no credit card, no expiry. Since each request returns up to 200 profiles, that covers roughly the first 20,000 followers of any account before you need a paid plan.
Note: For a complete walkthrough with extra extraction methods and worked audience-analysis examples, see Twitter Followers API: Get Followers and Following Lists on the blog.
Simplest Example: Get Followers
One request, one response. This is all you need to fetch the first page of followers for any public account.cURL
Python
JavaScript
Tip: You can preview followers for any account without code using the Recent Followers tool or the API Playground.
Simplest Example: Get Following (Subscriptions)
The/follows endpoint works identically but returns the accounts that a user is following:
Endpoint Reference
Both endpoints are GET requests with the same input options.GET /v3/followers
Returns users who follow the specified account.
GET /v3/follows
Returns accounts that the specified user is following.
Input Parameters (query string)
Provide exactly one of
username, user_id, or user_link.
Response
id, username, display_name, description, location, created_at, followers_count, followings_count, favourites_count, tweets_count, media_count, profile_image_url, profile_background_image_url, bio_urls, pinned_tweet_ids, verified, can_dm, protected, and possibly_sensitive.
Each page returns up to 200 user objects. When next_cursor is present in the response, more results are available: pass its value back as the next_cursor parameter in your next request. When it is absent or null, you have reached the end of the list.
Paginating Through a Full Follower List
A single request returns one page. To collect the complete follower list, loop through pages usingnext_cursor until it is absent.
Python
JavaScript
/follows: just change the URL.
For a deeper look at pagination behavior across all paginated endpoints, see Pagination.
Getting a Full Following List
The code is identical with the endpoint swapped. Looking at who an account follows is often more revealing than looking at their followers: a founder’s following list tells you which investors, partners, and competitors they pay attention to; an influencer’s following list reveals their information sources.Practical Applications
Filtering Followers by Profile Criteria
The raw list is useful, but filtering it makes it actionable. Since every user object includes full profile metadata, you can segment the audience by any attribute without additional API calls:location field is freeform user-entered text. For more reliable country-level data, use the /about endpoint to look up each account’s country tag. See Audience Geography for the full workflow.
Finding Audience Overlap Between Competitors
Pull follower lists from multiple competitors and find users who follow two or more of them. These are the most engaged people in your market: they have actively opted in to the topic multiple times.Discovering What Industry Leaders Follow
Scrape the following list of an expert or thought leader to find who they consider worth paying attention to. This surfaces niche accounts, emerging voices, and tools that leaders rely on.Verified Followers
The/verified-followers endpoint works the same as /followers but returns only verified accounts (Blue, Gold, or Gray checkmarks). This is useful for two cases:
- Filtering an audience to high-profile accounts without post-processing the full list.
- Avoiding wasted requests on large accounts where verified users are a small minority. Walking the entire follower list of a 10M-follower account just to find the 5,000 verified ones spends 50,000 requests;
/verified-followersreturns the same data in roughly 25 requests.
/followers: iterate with next_cursor in exactly the same way. See the API Reference for full details.
Estimating API Usage at Scale
Each page returns up to 200 user objects. For planning:
At Sorsa’s rate limit of 20 requests per second (the same on every plan), extracting 10,000 followers takes about 3 seconds; 100,000 followers takes about 25 seconds. For accounts with millions of followers, consider sampling (for example, the first 50 pages, roughly 10,000 followers) rather than a full extraction, unless you specifically need complete coverage.
Because each request returns up to 200 profiles, follower extraction is request-cheap. To put the request counts above in context: the free 100 requests cover about 20,000 followers, the Starter plan (10,000 requests per month) covers about 2,000,000, and Pro (100,000 requests per month) covers about 20,000,000. For full pricing, see Pricing.
Data Freshness and Edge Cases
Follower ordering. The/followers endpoint returns followers in the order X provides them, which is generally reverse-chronological (newest followers first). The first pages contain the most recently acquired followers.
Protected accounts. If the target account is protected (private), the follower and following lists are not accessible. The endpoint returns an error.
Follower count vs. extracted list. The followers_count value on a profile is a real-time counter maintained by X. The extractable list may differ slightly due to suspended, deactivated, or recently removed accounts. Expect a few percent of drift on large accounts; do not write strict equality checks against followers_count. This is a platform-level behavior, not Sorsa-specific.
Profile data is current. Each user object reflects the profile as it exists at the time of the request (current bio, current follower count, current username), not the state at the moment the follow relationship was established. The numeric id is stable; the handle is not.
Sampling for very large accounts. For accounts over about 500,000 followers, the first 50 to 100 pages (10,000 to 20,000 followers) is usually a representative sample of the recent audience and is enough for most analyses. Full extraction is rarely necessary unless you have a specific reason to need complete coverage.
Next Steps
- Target Audience Discovery: combine follower extraction with bio search, community scraping, and content mining.
- Competitor Analysis: use follower and following data as part of a competitive intelligence pipeline.
- Audience Geography: map follower distribution by country using the
/aboutendpoint. - Pagination: general pagination patterns for large-scale extraction.
- API Reference: full specification for
/followers,/follows,/verified-followers, and all Sorsa API endpoints.