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.
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)
| Parameter | Type | Required | Description |
|---|---|---|---|
username | string | One of | The handle without @. Example: stripe |
user_id | string | these | The numeric user ID. Example: 44196397 |
user_link | string | three | Full profile URL. Example: https://x.com/stripe |
cursor | integer | No | Pagination cursor from a previous response. |
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 it as the 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. See the API Reference for full details.
Estimating API Usage at Scale
Each page returns up to 200 user objects. For planning:| Account Size | Pages Needed | Requests |
|---|---|---|
| 1,000 followers | 5 | 5 |
| 10,000 followers | 50 | 50 |
| 100,000 followers | 500 | 500 |
| 1,000,000 followers | 5,000 | 5,000 |
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.