Twitter X.com Followers & Following Scraper avatar

Twitter X.com Followers & Following Scraper

Pricing

from $0.40 / 1,000 follower data

Go to Apify Store
Twitter X.com Followers & Following Scraper

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

xtdata

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

14 hours ago

Last modified

Features

Limited permissions

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 a type (follower or following) and sourceUser, the account whose list it came from.
  • Flexible input: usernames (elonmusk or @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. maxScanned limits how many profiles are checked per list (default: maxItems x 5).
  • Lead-friendly fields: every user has website (the expanded profile link) and emails (addresses found in the bio).
  • Exact limits: maxItems is 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

FieldTypeDescription
startUrlsstring[]Profile URLs. Strings or { "url": ... } objects.
usernamesstring[]Usernames, with or without @.
userIdsstring[]Numeric user IDs.
getFollowersbooleanScrape the followers of each account (default true).
getFollowingbooleanScrape the accounts each account follows (default false).
maxItemsintegerMax users per account and list (default 20).
minFollowers, maxFollowersintegerFollower count range.
onlyVerifiedbooleanVerified or blue verified users only.
onlyWithEmailbooleanOnly users with an email in the bio.
onlyWithWebsitebooleanOnly users with a website.
maxScannedintegerMax profiles checked per list when filters are on (default maxItems x 5).
customMapFunctionstringJavaScript 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, Map and so on) and simple versions of console (prints nothing), URL (absolute URLs, read only), structuredClone (JSON values), atob, btoa, crypto.randomUUID() and performance.now().
  • Not available: process, require, the word import, fetch, timers, Buffer, TextEncoder, TextDecoder, URLSearchParams, eval and new 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 maxItems when X shows fewer users than the account's follower count.
  • With filters on, few results can mean the first maxScanned profiles did not match. Raise maxScanned or 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

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

⚡ Fast TikTok API (No WM)👤 Tiktok User Profile API🔍 Advanced Search TikTok
🔎 TikTok Search Scraper📈 Tiktok Trend API💬 TikTok Comment API
🎞️ TikTok Profile Videos API#️⃣ TikTok Hashtag API🎵 TikTok Sound Music API
👥 TikTok Followers API🔢 Multiple Hashtags Scraper🏆 TikTok Scraper Ultimate
🎶 TikTok Music Trend API🛍️ TikTok Shop Scraper💰 TikTok Scraper (Pay per video)
📄 Fast TikTok API (Simple)🆔 TikTok User Profile Scraper📍 TikTok Location API
🤖 TikTok AI Video Scraper🗯️ TikTok Comment (Novi)🏷️ TikTok Scraper (Fixed price)
🗣️ TikTok Comment + Replies

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