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 available on the platform. A follower list tells you exactly 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 out 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 counts, tweet counts, location, verified status, profile image, and more - giving you rich audience data, not just a list of handles.
Why this matters and why you need an API for it. If you have ever tried to scroll through a large follower list on x.com, you know the UI cuts you off after a few hundred results. The web interface is designed for casual browsing, not data collection. For any serious audience research - lead generation, competitive analysis, influencer discovery, academic study - an API is the only reliable way to extract a complete follower or following list with profile metadata attached.
This guide covers both endpoints from the simplest possible request to production-scale extraction with filtering, audience overlap analysis, and CSV export.
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
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 - among the highest per-request yields available from any X data provider. 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.
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: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 - intelligence that is hard to get any other way:Exporting to CSV
Write any follower or following list to a CSV file for analysis in Excel, Google Sheets, Pandas, or a CRM import: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). This means 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 will return an error.
Follower count vs. extracted list. The followers_count 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. 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 it was in when the follow relationship was established.
Next Steps
- Finding Your Target Audience - combine follower extraction with bio search, community scraping, and content mining for comprehensive audience discovery.
- Competitor Analysis - use follower and following data as part of a competitive intelligence pipeline.
- Verified Followers - the
/verified-followersendpoint returns only verified accounts following a given handle. - Pagination - general pagination patterns and best practices for large-scale extraction.
- API Reference - full specification for
/followers,/follows,/verified-followers, and all 38 endpoints.