Twitter X.com Followers & Following Scraper
Pricing
from $0.40 / 1,000 follower data
Twitter X.com Followers & Following Scraper
Scrape followers and following lists of any public Twitter (X.com) account by username, user ID or profile URL. Get full profiles with follower counts, websites and emails from bios. Filter by followers, verified, email or website before you pay. No login needed.
Pricing
from $0.40 / 1,000 follower data
Rating
0.0
(0)
Developer
xtdata
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
14 hours ago
Last modified
Categories
Features
Share
Scrape the followers and the following list of any public Twitter (X.com) account. Give usernames, user IDs or profile URLs and get full profiles of the people in each list, with follower counts, websites and emails found in bios.
Key Features
- Followers and following: choose
getFollowers(on by default),getFollowing, or both. Every result has atype(followerorfollowing) andsourceUser, the account whose list it came from. - Flexible input: usernames (
elonmuskor@elonmusk), numeric user IDs (44196397) and profile URLs (https://x.com/apify,https://x.com/apify/followers). Many accounts in one run. - Filters before you pay:
minFollowers,maxFollowers,onlyVerified,onlyWithEmail,onlyWithWebsite. Users that do not match are neither delivered nor charged.maxScannedlimits how many profiles are checked per list (default:maxItemsx 5). - Lead-friendly fields: every user has
website(the expanded profile link) andemails(addresses found in the bio). - Exact limits:
maxItemsis exact per account and list, duplicates are removed, and the run respects your maximum cost. An interrupted run continues where it stopped, without duplicates. - Custom map function: reshape each result with your own JavaScript, run in an isolated process.
Use Cases
- Audience analysis: see who follows a brand, a creator or a competitor.
- Lead generation: collect followers who have an email or a website in their profile.
- Influencer research: find the accounts with the most followers inside an audience.
- Network mapping: build a social graph from followers and following lists.
Quick Start Examples
Followers of two accounts:
{"usernames": ["elonmusk", "nasa"],"maxItems": 100}
Followers with at least 1,000 followers and an email in the bio:
{"startUrls": ["https://x.com/apify"],"minFollowers": 1000,"onlyWithEmail": true,"maxItems": 100}
Following list only, by user ID:
{"userIds": ["44196397"],"getFollowers": false,"getFollowing": true,"maxItems": 50}
Both lists:
{"usernames": ["apify"],"getFollowers": true,"getFollowing": true,"maxItems": 200}
Input Parameters
| Field | Type | Description |
|---|---|---|
startUrls | string[] | Profile URLs. Strings or { "url": ... } objects. |
usernames | string[] | Usernames, with or without @. |
userIds | string[] | Numeric user IDs. |
getFollowers | boolean | Scrape the followers of each account (default true). |
getFollowing | boolean | Scrape the accounts each account follows (default false). |
maxItems | integer | Max users per account and list (default 20). |
minFollowers, maxFollowers | integer | Follower count range. |
onlyVerified | boolean | Verified or blue verified users only. |
onlyWithEmail | boolean | Only users with an email in the bio. |
onlyWithWebsite | boolean | Only users with a website. |
maxScanned | integer | Max profiles checked per list when filters are on (default maxItems x 5). |
customMapFunction | string | JavaScript function to transform each result. Not for filtering. |
The older names shouldScrapeFollowers, shouldScrapeFollowings and twitterHandles are still accepted.
Pricing
Pay per event, with no start charge: follower for each delivered follower and following for each delivered followed
account. Only delivered results are charged, so users removed by filters are free.
Output Example
{"type": "follower","id": "2990041791","name": "Bakr FARIS","username": "FarisBakr","description": "Software engineer. Contact: hello@example.com","followersCount": 7385,"followingCount": 4047,"tweetCount": 86295,"likeCount": 138056,"listedCount": 0,"mediaCount": 5619,"createdAt": "Wed Jan 21 15:34:59 +0000 2015","location": "Casablanca, Grand Casablanca","verified": false,"isBlueVerified": false,"profileImageUrl": "https://pbs.twimg.com/profile_images/1614598066509602816/BKSi0VBD_normal.jpg","profileBannerUrl": "https://pbs.twimg.com/profile_banners/2990041791/1421944124","profileUrl": "https://x.com/FarisBakr","protected": false,"pinned_tweet_ids_str": ["755286242946904068"],"website": "https://example.com","emails": ["hello@example.com"],"sourceUser": "elonmusk","searchTerms": "elonmusk"}
sourceUser (and its copy searchTerms) is the username or user ID you gave.
Custom Map Function
customMapFunction is plain, synchronous JavaScript that runs in a separate process. It receives a copy of each item and returns the
object to save. If it returns nothing, an array or a promise, throws, or takes too long, the original item is saved.
- Available: all JavaScript built-ins (
JSON,Math,Date,RegExp,Intl,Mapand so on) and simple versions ofconsole(prints nothing),URL(absolute URLs, read only),structuredClone(JSON values),atob,btoa,crypto.randomUUID()andperformance.now(). - Not available:
process,require, the wordimport,fetch, timers,Buffer,TextEncoder,TextDecoder,URLSearchParams,evalandnew Function.
Ethical Use and Data Practices
Our actor operates without logging in to X.com. This means it does not implicitly accept any Terms of Service (ToS) that require a login, as we only process data that is publicly displayed and accessible to everyone without authentication.
We are fully committed to the principle of privacy by design and by default. All data collected explicitly excludes sensitive personal information or non-public data.
Furthermore, our actor runs on Apify, an EU-based company, which means our operations are designed to be compliant with relevant EU data protection regulations, including GDPR, where applicable. You can find more information about the legality of web scraping on Apify's blog: https://blog.apify.com/is-web-scraping-legal/
Troubleshooting
- Protected (private) accounts do not show their lists, so they return no data and are not charged.
- A list may end before
maxItemswhen X shows fewer users than the account's follower count. - With filters on, few results can mean the first
maxScannedprofiles did not match. RaisemaxScannedor relax the filters. - If every request fails, the run fails and nothing is charged. If only some fail, the run finishes with partial results and a message in the log.
Guides
- Turn any X (Twitter) audience into a lead list: a no-code walkthrough with filter setups for competitor audiences, micro-influencers and following lists.
- Scrape X followers and following lists from Node.js:
apify-clientcode with filters, a cost cap, merging several accounts and CSV export. - Measuring X audience overlap from follower samples:
sampling bias, overlap metrics, sizing
maxScannedand the cost model.
Get Started
Add a few usernames, choose followers, following or both, and run the Actor. Results are ready to download as JSON, CSV or Excel, or to use through the Apify API.
1. TikTok Actors
2. X.com (Twitter) Actors
| 🐦 X.com Twitter API Scraper | 🐦 X.com Twitter User Tweets Scraper | 🐦 X.com Twitter User Info Scraper |
3. YouTube Actors
| 📜 YouTube Transcript API |