How to scrape Twitter followers and turn them into a lead list

Updated

To scrape Twitter followers, page through a public X account's follower list with an API that returns each follower's profile, then rank and enrich the results in your own code. Bridgly returns 50 followers per request with bio, location, website and counts, and needs no X login or developer account. Exporting 10,000 followers takes 201 requests, which costs $0.34 to $0.40 depending on how many credits you buy.

Get 100 free credits with a business email, no card required. That covers the first 4,950 followers of one account, enough for a full test run of the script below.

The followers of a competitor, a popular tool in your niche, or a conference account are a list of people who already care about your market. A raw export of thousands of handles is hard to act on, though. This guide builds a Twitter follower scraper in one TypeScript script that goes further: it exports the followers of one or more public X accounts, merges them, ranks each follower against the words your buyers use, flags people who follow several of those accounts, checks which of the best matches posted recently, and picks a recent tweet from each one that you can reply to. The result is a CSV you can open in Excel, Google Sheets or your CRM.

Four ways to get an X follower list

MethodWhose followersWhat you needWhat you get
Your X archiveYour own account onlyYour X loginA data download of your own account, including your followers
The official X APIAny public accountAn X developer account, an app and prepaid X API creditsJSON from the followers endpoint, billed per follower returned
No-code tools, such as Apify ActorsPublic accountsAn Apify account. No X login for the Actors linked hereCSV, Excel or JSON files from each run
Social data APIs, such as Bridgly and TwitterAPI.ioPublic accountsAn API key. No X login or developer accountJSON in your own code, with timelines and search on the same key

The official API is the sanctioned route, and it prices follower reads per account returned. X's pricing page lists Following/Followers reads at $0.010 per resource, so 10,000 followers of another account cost $100. Reading your own followers counts as an Owned Read at $0.001 per resource, or $10 for 10,000. Third-party APIs and Actors charge a small fraction of that for public lists, which is why most lead and research workflows use them.

What X shows to any follower scraper

Some limits come from X itself, so they apply to every tool, Bridgly included. Plan for them before you promise anyone a complete list:

  • Public accounts only. A protected account shows its followers only to the people it has approved. The script checks the source account first and stops with a clear message if it is protected.
  • Lists run shorter than counts. X does not list suspended and deactivated accounts, as the XCROP Actor's notes explain, so an export usually comes in a little under the follower count on the profile.
  • Newest followers come first. Bridgly returns the list most recent follower first, so a partial export of a large account gives you the people who followed it most recently.
  • The list moves while you read it. People follow and unfollow during a long export, which can shift accounts across pages. The script removes duplicates by user ID, which stays the same when someone changes their handle.

The workflow: export, merge, rank, check activity, write a CSV

  1. Look up each source account by handle to get its numeric user ID, and stop early if it is protected.
  2. Export its followers, 50 per request. Each follower already comes with a full profile: bio, location, website, follower, following and tweet counts, verification, and professional account type. No second lookup per follower is needed.
  3. Merge the exports, drop protected accounts and accounts with almost no tweets, and note which source accounts each follower follows. This runs on your machine and costs nothing.
  4. Score each follower: points for each of your keywords in the bio, for following more than one source account, for a website, for a professional account, and for an audience between 100 and 50,000 followers.
  5. Read the latest tweets of the top 100 only, to see who posted in the last 30 days and to find a recent tweet that mentions one of your keywords.
  6. Write one row per lead to a CSV, active leads first, and save the raw export as JSON for next week.

Set up

You need Node.js and a Bridgly API key. Create a free account, copy a key from the dashboard, and install the TypeScript SDK:

bash
npm install @bridgly/sdk
npm install --save-dev tsx
export BRIDGLY_API_KEY=bgly_...

The script

Save this as x-followers.mts. Pass the source accounts, the words your buyers use in their bios and tweets, and how many followers to export per account. For example, npx tsx x-followers.mts supabase,neondatabase "founder,cto,postgres" 5000 exports 5,000 followers from each of two database companies and ranks them for a developer tool. It writes x-leads.csv with the top 100 leads and x-followers.json with every follower it exported.

TypeScript
// x-followers.mts
// Run: npx tsx x-followers.mts <accounts> <keywords> [followers per account]
// Example: npx tsx x-followers.mts supabase,neondatabase "founder,cto,postgres" 5000
import {
Bridgly,
type UserFollowersResponse,
type UserTweetsResponse,
} from '@bridgly/sdk';
import { writeFile } from 'node:fs/promises';
type Follower = UserFollowersResponse['data']['users'][number];
type Tweet = UserTweetsResponse['data']['tweets'][number];
type Export = {
handle: string;
followers: Follower[];
/** Where the list continues; null once every follower is collected. */
nextCursor: string | null;
credits: number;
};
type Lead = {
follower: Follower;
/** The source accounts this follower follows. */
follows: string[];
matched: string[];
score: number;
};
type Activity = {
lastTweetAt: Date | null;
/** Their latest tweet that mentions one of your keywords. */
hook: Tweet | null;
credits: number;
};
type Row = {
handle: string;
profileUrl: string;
name: string;
score: number;
follows: string;
matched: string;
active: boolean;
lastTweetAt: string;
location: string;
website: string;
followers: number;
bio: string;
hookUrl: string;
hookText: string;
};
const client = new Bridgly({ apiKey: process.env.BRIDGLY_API_KEY ?? '' });
const handles = (process.argv.at(2) ?? 'supabase,neondatabase').split(',');
const keywords = (process.argv.at(3) ?? 'founder,cto,postgres')
.split(',')
.map((keyword) => keyword.trim().toLowerCase());
const perAccount = Number(process.argv.at(4) ?? 2000);
const TOP_LEADS = 100;
const ACTIVE_DAYS = 30;
const DAY_MS = 24 * 60 * 60 * 1000;
/**
* Collects up to `perAccount` followers in batches of 1,000 (20 requests), so
* a failed request loses one batch at most. On a failure it keeps what it has
* and prints the cursor to resume from.
*/
async function exportFollowers(userId: string, sofar: Export): Promise<Export> {
const batch = await client.x.getFollowers({
userId,
cursor: sofar.nextCursor ?? undefined,
count: Math.min(1000, perAccount - sofar.followers.length),
pagination: true,
});
if (batch.type === 'error') {
console.error(`${sofar.handle} stopped early: ${batch.message}`);
console.error(`Resume from cursor ${sofar.nextCursor}`);
return sofar;
}
const next: Export = {
...sofar,
followers: [...sofar.followers, ...batch.data.users],
nextCursor: batch.data.nextCursor,
credits: sofar.credits + batch.creditsCost,
};
if (next.nextCursor == null || next.followers.length >= perAccount) {
return next;
}
return exportFollowers(userId, next);
}
/** Resolves a handle to its numeric user ID, then exports its followers. */
async function exportAccount(handle: string): Promise<Export> {
const profile = await client.x.getUser({ handle });
if (profile.type === 'error') {
throw new Error(`${handle}: ${profile.status} ${profile.message}`);
}
if (profile.data.isProtected) throw new Error(`${handle} is protected`);
return exportFollowers(profile.data.userId, {
handle: profile.data.username,
followers: [],
nextCursor: null,
credits: profile.creditsCost,
});
}
/** The keywords that appear in a follower's bio. */
function matchedKeywords(follower: Follower): string[] {
const bio = (follower.bio ?? '').toLowerCase();
return keywords.filter((keyword) => bio.includes(keyword));
}
/** Higher for real, reachable people who describe themselves in your words. */
function scoreOf({ follower, follows, matched }: Omit<Lead, 'score'>): number {
return [
matched.length * 3,
follows.length > 1 ? 3 : 0,
follower.websiteUrl != null ? 1 : 0,
follower.professionalType != null ? 1 : 0,
follower.followerCount >= 100 && follower.followerCount <= 50_000 ? 1 : 0,
].reduce((sum, points) => sum + points, 0);
}
/** One lead per follower, with every source account they follow, best first. */
function rankLeads(exports: Export[]): Lead[] {
const sources = exports.map((source) => ({
handle: source.handle,
ids: new Set(source.followers.map((follower) => follower.userId)),
}));
const unique = new Map(
exports.flatMap((source) =>
source.followers.map((follower): [string, Follower] => [
follower.userId,
follower,
]),
),
);
return [...unique.values()]
.filter((follower) => !follower.isProtected && follower.tweetCount >= 10)
.map((follower) => {
const follows = sources
.filter((source) => source.ids.has(follower.userId))
.map((source) => source.handle);
const matched = matchedKeywords(follower);
return {
follower,
follows,
matched,
score: scoreOf({ follower, follows, matched }),
};
})
.filter((lead) => lead.matched.length > 0 || lead.follows.length > 1)
.toSorted((a, b) => b.score - a.score);
}
/** Reads a lead's latest tweets: when they last posted, and a tweet to reply to. */
async function activityOf(lead: Lead): Promise<Activity> {
const timeline = await client.x.getUserTweets({
userId: lead.follower.userId,
count: 20,
});
if (timeline.type === 'error') {
return { lastTweetAt: null, hook: null, credits: 0 };
}
const own = timeline.data.tweets
.filter((tweet) => tweet.retweetedTweetId == null)
.toSorted((a, b) => b.createdAtEpochMs - a.createdAtEpochMs);
return {
lastTweetAt: own.at(0)?.createdAt ?? null,
hook:
own.find((tweet) =>
keywords.some((keyword) => tweet.text.toLowerCase().includes(keyword)),
) ?? null,
credits: timeline.creditsCost,
};
}
/** Whether a date falls within the last `ACTIVE_DAYS` days. */
function isRecent(date: Date | null): boolean {
return date != null && Date.now() - date.getTime() < ACTIVE_DAYS * DAY_MS;
}
/** Quotes a value so commas, quotes and line breaks stay in one cell. */
function csvCell(value: string | number | boolean): string {
return `"${String(value).replaceAll('"', '""')}"`;
}
/** Builds one CSV row from a lead and what their timeline showed. */
function rowOf({ lead, activity }: { lead: Lead; activity: Activity }): Row {
const { follower } = lead;
return {
handle: follower.username,
profileUrl: follower.profileUrl,
name: follower.displayName,
score: lead.score,
follows: lead.follows.join(' '),
matched: lead.matched.join(' '),
active: isRecent(activity.lastTweetAt),
lastTweetAt: activity.lastTweetAt?.toISOString().slice(0, 10) ?? '',
location: follower.location ?? '',
website: follower.websiteUrl ?? '',
followers: follower.followerCount,
bio: follower.bio ?? '',
hookUrl: activity.hook?.url ?? '',
hookText: activity.hook?.text ?? '',
};
}
// 1. Export the followers of every source account, 50 per request.
const exports = await Promise.all(handles.map(exportAccount));
// 2. Merge, drop protected and empty accounts, and rank against your keywords.
const leads = rankLeads(exports);
const shortlist = leads.slice(0, TOP_LEADS);
// 3. Read the latest tweets of the shortlist only.
const activities = await Promise.all(shortlist.map(activityOf));
const rows = shortlist
.map((lead, index) => {
const activity = activities.at(index);
return activity == null ? null : rowOf({ lead, activity });
})
.filter((row) => row != null)
.toSorted((a, b) => Number(b.active) - Number(a.active));
// 4. Write the lead list, and keep the raw export for next week's comparison.
const columns: (keyof Row)[] = [
'handle',
'profileUrl',
'name',
'score',
'follows',
'matched',
'active',
'lastTweetAt',
'location',
'website',
'followers',
'bio',
'hookUrl',
'hookText',
];
const csv = [
columns.join(','),
...rows.map((row) => columns.map((column) => csvCell(row[column])).join(',')),
].join('\n');
await writeFile('x-leads.csv', csv);
await writeFile('x-followers.json', JSON.stringify(exports));
// 5. Summarize the run.
console.table(
exports.map((source) => ({
account: source.handle,
followers: source.followers.length,
more: source.nextCursor != null,
})),
);
const credits = [...exports, ...activities].reduce(
(sum, step) => sum + step.credits,
0,
);
const overlap = leads.filter((lead) => lead.follows.length > 1).length;
const active = rows.filter((row) => row.active).length;
console.log(`Ranked leads: ${leads.length}`);
console.log(`Follow more than one account: ${overlap}`);
console.log(
`Active in the last ${ACTIVE_DAYS} days: ${active} of ${rows.length}`,
);
console.log(`Credits used: ${credits}`);

How the script works

Export in batches. With pagination: true, the SDK follows the cursor page after page and adds up creditsCost across pages. The script asks for 1,000 followers at a time, so if a request fails partway through a large export, it keeps everything collected so far and prints the cursor it stopped at, which you can pass as cursor to continue later. Failed requests cost nothing. The API reference covers the cursor and page size.

Spend credits where they count. The follower list already carries each profile, so ranking thousands of followers costs nothing beyond the export. Only the shortlist gets a timeline read, one request per lead. Raise TOP_LEADS if you want more rows, and the cost grows by one credit per extra lead.

Ranking rules you can change. Keyword matches in the bio carry the most weight, followed by overlap: someone who follows two of your competitors is a better lead than someone who follows one. Change scoreOf to fit your market, for example to add points for a location or to drop accounts with more than 50,000 followers if you're looking for buyers rather than influencers.

A reason to reach out. The hookUrl and hookText columns hold the lead's most recent original tweet that mentions one of your keywords. Replying to something a person just wrote is a better first touch than a cold message, and the tweet tells you what they care about this week.

Parallel calls without tripping the limit. The script sends the timeline reads through Promise.all. The SDK sends at most two requests per platform at a time by default, queues the rest, and retries a request rejected with a 429 after the wait the API asks for. If you bought a larger package, raise maxConcurrency in the client options to match your rate limit. If you call the REST API directly, X requests also accept cacheMaxAgeHours, which returns a result Bridgly fetched within that window at no cost.

What a run costs on Bridgly

Every X endpoint costs 1 credit per request. The follower list returns up to 50 accounts per request, the handle lookup is one request, and each timeline read is one request for up to 20 tweets. Errors and rate-limited requests cost nothing, and each response reports its exact creditsCost.

The example run above exports 5,000 followers from each of two accounts and reads the timelines of 100 leads. That is 2 lookups, 200 follower requests and 100 timeline reads: 302 credits, or $0.60 on Pay as you go and $0.50 on Scale.

Bridgly tierPrice per 1,000 creditsExport 10,000 followers (201 credits)X requests per minuteFastest time for 201 requests
Pay as you go, from $5$2.00$0.4030About 7 min
Growth, from $50$1.82$0.37200About 2 min
Scale, from $300$1.67$0.34500About 1 min

Credits are one-time purchases with no subscription, and purchased credits never expire. Rate limits apply per platform, so an X export does not slow down calls you make to other platforms on the same key. See pricing for every tier.

Bridgly compared with other Twitter follower scrapers

This table prices the same job everywhere: export 10,000 followers of a public account, then read the latest 20 tweets of 100 of them. Vendor prices come from each vendor’s own pages, checked on December 1, 2026, in USD.

OptionExport 10,000 followersLatest tweets of 100 accountsBillingGood to know
Bridgly$0.34 to $0.40 (201 requests)$0.17 to $0.20 (100 requests)One-time credits from $5 that never expireNo X login or developer account. Errors cost nothing. Full profile on every follower.
Official X API$100 ($0.010 per follower). $10 for your own followers$10 (2,000 posts at $0.005)Prepaid X API credits, no subscriptionThe sanctioned route. Needs a developer account and app. Repeat reads within a UTC day are not charged again.
TwitterAPI.ioAbout $0.10 at 200 followers per pageAbout $0.30 (15 credits per tweet)Pay as you go or monthly plans from $29. Paid credits never expireVolume pricing per follower. Minimum charge of 15 credits per request.
Apify: Data Slayer Twitter Followers ScraperFrom $15 (from $1.50 per 1,000)Needs a second ActorMonthly plans: Free with $5 of usage, Starter at $19. Usage expires each monthNo login. Runs, schedules and exports in the Apify console.
Apify: XCROP X Followers & Following ScraperAbout $0.06 ($0.00625 per 1,000 rows)Needs a second ActorMonthly plans as aboveThe lowest listed price per follower. A new Actor with few users so far.

Where the other options are better

  • TwitterAPI.io and the XCROP Actor are cheaper per follower. TwitterAPI.io returns up to 200 followers per page and charges less per follower as the page grows, so a 10,000-follower export costs about $0.10 there against $0.34 or more on Bridgly. If all you need is a very large raw list from one platform, either one costs less.
  • The official X API is the sanctioned route. If your use case needs X's own terms and data agreements behind it, or you only need your own followers at the Owned Read rate, use the official API.
  • Apify runs without code. Its Actors schedule runs and hand you a file from the console. With Bridgly you schedule the script yourself and compare exports, as shown below.

Bridgly fits when the follower list feeds code you own: a lead pipeline, a CRM sync, or an AI agent. The follower export, timelines, tweet search and user search run on one key with typed responses, and the same key covers the other social platforms Bridgly supports, so you can check a lead on another network without a second vendor. For a wider look at the official API, see the X API compared with Bridgly.

Put the lead list to work

  • Reply before you pitch. Start with the leads where active is true and hookUrl is set. A thoughtful reply to that tweet, from your own account, gets you noticed before any direct message.
  • Work the overlap. Followers listed under several source accounts in the follows column already pay attention to your category. Sort by it when you only have time for a few conversations.
  • Hand the rows to sales. The website and location columns let a rep tie a lead to a company and a territory. Import the CSV into your CRM and keep the profile URL as the link back.
  • Watch for new followers. Run the script weekly on the same accounts and compare the JSON exports. New followers of a competitor are often people evaluating tools right now.

Comparing exports takes a few lines. Load last week’s and this week’s x-followers.json, flatten the followers arrays, and compare by user ID:

TypeScript
import type { UserFollowersResponse } from '@bridgly/sdk';
type Follower = UserFollowersResponse['data']['users'][number];
/** Followers in `current` who were not in `previous`, such as last week's run. */
export function newFollowers(
previous: Follower[],
current: Follower[],
): Follower[] {
const seen = new Set(previous.map((follower) => follower.userId));
return current.filter((follower) => !seen.has(follower.userId));
}
/** Followers who changed their bio since `previous`, e.g. a new job title. */
export function changedBios(
previous: Follower[],
current: Follower[],
): Follower[] {
const bios = new Map(
previous.map((follower) => [follower.userId, follower.bio]),
);
return current.filter(
(follower) =>
bios.has(follower.userId) && bios.get(follower.userId) !== follower.bio,
);
}

Bridgly reads public data. It does not follow accounts or send messages for you, so any outreach happens from your own account and under X's rules for it. To check a single account before you run a full export, look it up in the free Twitter profile viewer. AI assistants such as Claude and Cursor can run the same lookups through the Bridgly MCP server, and the CLI writes a page of followers straight to a CSV file.

Start with 100 free credits and run the script on two accounts in your market. Browse every X endpoint, or compare credit packages for larger exports.

Frequently asked questions

Can you scrape the followers of someone else’s Twitter account?

Yes, if the account is public. A follower scraper or API pages through the follower list X shows on the profile. Protected accounts show their followers only to approved followers, and your X archive covers only your own account.

How much does it cost to scrape 10,000 Twitter followers?

On Bridgly, 10,000 followers take 201 requests at 1 credit each, including the handle lookup: $0.40 on Pay as you go and $0.34 on Scale. The official X API charges $0.010 per follower, or $100 for the same list.

Why does my export have fewer followers than the profile shows?

X does not list suspended and deactivated accounts, although they can still count toward the number on the profile. Accounts that follow or unfollow during the export also change the total.

Do I need an X developer account or login to scrape followers?

Not with Bridgly. Requests take a Bridgly API key and a handle or user ID, with no X login, cookies or developer app. The official X API needs a developer account, an app and prepaid X API credits.

Can I get the email addresses of Twitter followers?

X profiles do not show email addresses, so no follower export includes them. Bridgly returns each follower’s bio, website and location. Many people write a contact email or a link in their bio, and the website often leads to a company you can look up.

Is it safe and legal to scrape Twitter followers?

Bridgly reads public data and never logs in to your X account, so your own account is not involved in the export. Follower lists are personal data, so laws such as the GDPR apply to how you store and use them. Keep only the fields you need, honor opt-out requests, and follow X’s rules when you contact people. This is not legal advice.

Can I scrape Twitter followers without writing code?

Yes. Connect the Bridgly MCP server to an AI assistant such as Claude or Cursor and ask it to export and rank an account’s followers, or use the Bridgly CLI to save a page of followers as CSV. No-code tools such as Apify Actors also export follower lists on a schedule.

Sources

  1. Bridgly API reference: X followers
  2. Bridgly API reference: X user tweets
  3. Bridgly docs: rate limits
  4. X API: pay-per-usage pricing and credits
  5. X Help Center: download your X archive
  6. TwitterAPI.io: pricing
  7. TwitterAPI.io: Get User Followers reference
  8. Apify: plans and pricing
  9. Apify: Data Slayer Twitter/X Followers Scraper
  10. Apify: XCROP X (Twitter) Followers & Following Scraper

Related

Start pulling data in minutes.

100 free credits on business email, no card needed. Call any endpoint through the API, the TypeScript SDK or MCP.

APIMCPSDKCLI
free credits

On business email signup. No credit card required.

Start free