Twitter (X) Followers & Following Scraper
Pricing
from $0.20 / 1,000 results
Twitter (X) Followers & Following Scraper
Export followers or following as unique user profiles with bios, follower counts and verification data. Choose one relationship direction per run. Export JSON, CSV or Excel.
Pricing
from $0.20 / 1,000 results
Rating
0.0
(0)
Developer
Dev
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Features
Share
Export followers or following as unique user profiles with bios, follower counts and verification data. Choose one relationship direction per run. Export JSON, CSV or Excel.
What this Actor collects
Followers collects accounts that follow each input; following collects accounts each input follows. Choose one direction per run. Handles and precision-safe numeric user IDs are supported. Results are unique profiles, not relationship edges.
Quick start
Enter inputs, start with a small maxItems, and run. No customer X cookies are required. Export the default dataset as JSON, CSV, Excel or JSONL, or use the Apify API.
{"twitterHandles": ["NASA"],"relationship": "following","maxItems": 50,"maxItemsPerSource": 50}
Limits and deduplication
maxItems is the total unique output ceiling, not a per-source allowance. maxItemsPerSource caps each input and defaults to maxItems. maxDurationSeconds defaults to 300 and cannot exceed 600. Account rate limits, spending limits and X visibility may yield fewer results. Startup has bounded retries; very short deadlines may elapse during initialization.
IDs are strings. No duplicate IDs are emitted within a run; migration recovery reconciles existing writes. If several inputs discover the same record, the first source gets attribution. This is a unique-profile/result export, not an exhaustive relationship-edge export.
Output schema
Rows are flat user profiles with id, userName, name, url, description, followers, following, verification, images, createdAt, canDm and additional normalized fields. Every row includes sourceInput, sourceType and searchTerm. searchTerm is the query for user search, otherwise an empty string.
canDm reads dm_permissions.can_dm or legacy.can_dm: true/false when reported, null when unknown. Permission can depend on the authenticated X account; it is not a global guarantee that anyone may DM that profile.
The Output tab links to results and COVERAGE. COVERAGE lists source/strategy pages, limits, failures, repeated cursors and the exact stop reason. Dataset and output schemas are included for Store publishing.
Coverage and responsible use
X may withhold protected, deleted, blocked, suspended or unindexed content, or shorten lists despite larger public counters. An empty result is not a completeness guarantee. This Actor does not bypass access controls. Follow applicable terms and privacy obligations.
API
After deployment, POST JSON input to https://api.apify.com/v2/acts/
Operator setup
Not yet published; no price or Store publication is configured. Each new Actor requires secret X_ACCOUNTS and proxy environment configuration. Credentials never belong in input forms, source, datasets or logs. Arbitrary JavaScript mapping is not supported.
Prepare a clean build directory:
node scripts/prepare-actor.mjs followers
Build from .artifacts/actors/followers. Staging never deploys or publishes. Memory is fixed at 1024 MB. Pure HTTP with compressed responses and account-aware rate limits; no browser or third-party data API.