X.com Twitter User Search Scraper
Pricing
from $0.50 / 1,000 price for each tweet. cheaper when upgrade plans
X.com Twitter User Search Scraper
Search X (Twitter) users by keyword and get full profiles: followers, following, bio, location, website, emails found in bios and verified status. Filter by follower count or verified accounts. Built for influencer discovery and lead lists.
Pricing
from $0.50 / 1,000 price for each tweet. cheaper when upgrade plans
Rating
5.0
(1)
Developer
xtdata
Maintained by CommunityActor stats
0
Bookmarked
368
Total users
27
Monthly active users
a day ago
Last modified
Categories
Features
Share
Twitter X.com User Search Scraper - Fast and Efficient User Extraction
This Actor provides a powerful and specific way to scrape user data from Twitter (now X). It allows you to reliably extract detailed user profiles utilizing search queries, making it ideal for researchers, analysts, and social media tracking.
Video tutorial
Prefer reading? Follow the step-by-step guide with screenshots.
Key Features
-
Focused Input Methods: Get straightforward, exact data from user queries:
- Search Terms: Provide target search terms (e.g. "elonmusk", "apify") to extract matching users.
-
Targeted Output:
- Maximum Items: Control the maximum number of user profiles retrieved for each search term (default 50, exact).
- Filters:
minFollowers,maxFollowersandonlyVerifiedkeep only the users you need, before they are saved and charged. At most 5 timesmaxItemsusers are checked per search term. - Extra fields:
is_blue_verified,websiteandemails(found in the bio). - Custom Map Function: Transform and shape the output data using a custom JavaScript function before it is saved (for data shaping, not filtering).
-
Built-in Concurrency & Pagination:
- Efficiently crawls and paginates through search results for quick and stable extraction, utilizing Apify actors' concurrent network architecture.
-
Cost-Effective & Event-Driven:
- You are charged per delivered user (
result-item), plus the actor start and the optionalqueryevent when it is shown in the pricing. Runs stop exactly at your maximum cost or maximum charged results. - Small runs are fast: the actor stops as soon as
maxItemsis reached.
- You are charged per delivered user (
Use Cases
- Market & Influencer Research: Discover profiles relevant to specific topics or keywords.
- Academic Research: Gather user-centric data for social media and political science studies.
- Competitive Analysis: Monitor targeted competitors' digital footprints.
- Data Archival: Regularly save out the profile metrics for designated entities for record keeping.
Quick Start Examples
Here are some example input configurations to get you started:
Fetching Users based on Search Terms:
{"searchTerms": ["elonmusk","apify"],"maxItems": 50}
Fetching Users with Filters:
{"searchTerms": ["web scraping"],"maxItems": 100,"minFollowers": 1000,"onlyVerified": true}
Fetching Users and Mapping Output Fields:
{"searchTerms": ["elonmusk"],"maxItems": 10,"customMapFunction": "(user) => { return { id: user.id, name: user.name, followers: user.followers_count, url: user.url } }"}
Explanation of Key Input Fields
searchTerms: An array of explicit text queries you want to search.maxItems: An integer limiting the maximum number of output user profiles for each search term. Default: 50.minFollowers/maxFollowers: Optional follower range. Users outside the range are not saved or charged.onlyVerified: Only return verified users.customMapFunction: Execute raw javascript logic to mutate or adjust the parseduserobject right before it is pushed to the Actor storage. Caution: improper functions may break output data shape.
Output Example
{"id": "472460718","url": "https://x.com/elonmusk_9714","twitterUrl": "https://twitter.com/elonmusk_9714","name": "ELON R.M","screen_name": "elonmusk_9714","description": "","followers_count": 105,"normal_followers_count": 105,"fast_followers_count": 0,"friends_count": 0,"favourites_count": 15986,"statuses_count": 60284,"media_count": 1328,"location": "Texas, USA","created_at": "Mon Jan 23 23:51:42 +0000 2012","advertiser_account_service_levels": ["analytics"],"advertiser_account_type": "promotable_user","analytics_type": "enabled","blocked_by": false,"blocking": false,"can_dm": false,"can_media_tag": false,"entities": {"description": {"hashtags": [],"symbols": [],"urls": [],"user_mentions": []}},"follow_request_sent": false,"followed_by": false,"following": false,"geo_enabled": true,"has_custom_timelines": true,"has_extended_profile": true,"id_str": "472460718","is_translator": false,"muting": false,"notifications": false,"pinned_tweet_ids_str": ["1847958242489672135"],"profile_background_color": "000000","profile_banner_url": "https://pbs.twimg.com/profile_banners/472460718/1760038286","profile_image_url_https": "https://pbs.twimg.com/profile_images/1976369939058434048/I2HjvguS_normal.jpg","profile_interstitial_type": "","profile_link_color": "E81C4F","profile_location_place": {"country": "","country_code": "","full_name": "Texas, USA","id": "e0060cda70f5f341","name": "Texas, USA","place_type": "unknown"},"protected": false,"translator_type_enum": "None","verified": false,"want_retweets": false,"withheld_in_countries": [],"is_blue_verified": false,"website": "https://example.com","emails": []}
Usage Guidelines (Important!)
- Data Limits: Ensure you understand the event limit configuration of the actor as it runs in
pay-per-result(or similar) mode. - Respect Twitter's Terms of Service: Always use this tool ethically and responsibly.
- Filters and scan limit: With filters, a strict condition can return fewer users than
maxItems, because only 5 timesmaxItemsusers are checked per search term. - Errors: An empty result is a successful run. If no search term could be fetched, the run fails and nothing is charged. If only some fail, the run finishes with a warning and partial results.
- Concurrent Batches: If passing many terms, the Actor natively parallelizes requests. Make sure memory settings can accommodate heavy payload iterations.
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/
We have implemented robust technical measures to ensure the actor operates gently and does not impose an undue burden on X.com's servers. Our sole purpose is to facilitate responsible research and public data analysis, and we strictly prohibit any use that could cause harm to any party or the platform itself.
Use it in n8n
This Actor is also available as an n8n community node: n8n-nodes-twitter-x-user-search.
- In your n8n instance, open Settings > Community Nodes, select Install, enter
n8n-nodes-twitter-x-user-searchand confirm. - Add the Apify X.com Twitter User Search Scraper node to a workflow and connect your Apify account (API key or OAuth2).
- Fill in the same fields as the Actor input and run the workflow. Each result comes back as its own n8n item.
The node also works as a tool for the n8n AI Agent. Runs are billed to your Apify account at the same price as runs started from Apify Console.
Troubleshooting
If a run stops early, it can be the maximum cost or maximum charged results you set. If you encounter issues like early termination, check if your Apify workspace event allocation limits were breached.
Get Started
For other TikTok data needs, explore these related APIs:
1. TikTok Actors
2. X.com (Twitter) Actors
| 🐦 X.com Twitter API Scraper | 🐦 X.com Twitter User Tweets Scraper | 🐦 X.com Twitter User Tweets Scraper |
3. YouTube Actors
| 📜 YouTube Transcript API |