How to Find X (Twitter) Accounts by Keyword with Follower Filters: Step-by-Step Tutorial

X.com Twitter User Search Scraper searches X (Twitter) users by keyword and returns full profiles: followers, following, tweet count, bio, location, website, emails found in the bio and verified status. Filters for follower range and verified accounts run before results are saved, so you only pay for the users you keep.

For this walkthrough I used one word, space, and set a floor of 100,000 followers. The run returned 20 accounts in 4 seconds with 75.8 million followers combined. 19 are blue-verified and 18 link a website. The list includes SpaceX, the International Space Station, NASA’s Kennedy and Johnson centers, ESA, SPACE.com, Spaceflight Now and the US Space Force. That’s a ready-made media and outreach list from a single keyword.

Below: each step with real Apify Console screenshots, the exact input, a sample profile, pricing and code.

What you get

Input Example Notes
searchTerms space, web scraping One search per term, run in parallel
maxItems 20 Users per search term, exact
minFollowers / maxFollowers 100000 Follower range; users outside it are not saved or charged
onlyVerified true Verified users only
customMapFunction (u) => ({ name: u.name, followers: u.followers_count }) Reshape each user before it’s saved

When filters are on, at most 5 × maxItems users are checked per search term.

Each user includes id, url, name, screen_name, description, followers_count, friends_count, statuses_count, favourites_count, media_count, location, created_at, verified, is_blue_verified, avatar and banner, plus website (expanded profile link) and emails (found in the bio).

Step 1: Open the Actor

Open X.com Twitter User Search Scraper on Apify and click Try for free. No account yet? Sign up here for free monthly credit.

X.com Twitter User Search Scraper on the Apify Store

Step 2: Type keywords and set the bar

The whole input fits on one screen:

Input form with search term space, 20 users per term and a 100,000 minimum followers filter

Step 3: Or paste the input as JSON

{
  "searchTerms": ["space"],
  "maxItems": 20,
  "minFollowers": 100000,
  "onlyVerified": false
}

JSON input editor

The Actor requires Maximum cost per run (under Run options) to be at least $3.00. You’re only charged for what you get: this 20-user run cost $0.04 on the Free plan.

Step 4: Save & start, then read the Users table

Click Save & start. The run succeeded with 20 results in 4 seconds. The Users view shows avatar, username, name, profile URL, followers, following, tweets, blue verified, verified, location and website:

Run output: 20 users led by SpaceX and the International Space Station

Scroll right for Website, Emails from bio, Bio and Joined:

Website, emails from bio, bio and join date columns

The full list from this run, by followers: SpaceX (41.9M), International Space Station (8.87M), Kevin Spacey (3.48M, matched through the name), NASA’s Kennedy Space Center (2.97M), NASA’s Johnson Space Center (2.26M), SpaceX Super Intelligence, European Space Agency (1.90M), SPACE.com (1.58M), Latest in space, Space (two fan pages), NASA Space Alerts, the archived NASA Sun & Space account, Orion Spacecraft, Science Space & Robots, SPACE ID, United States Space Force (728K), X’s own Spaces account, Space Today and Spaceflight Now (500K). User search matches names and handles as well as topics, as the Kevin Spacey result shows. Review a list before outreach.

A sample row (shortened):

{
  "id": "17217640",
  "url": "https://x.com/SpaceflightNow",
  "name": "Spaceflight Now",
  "screen_name": "SpaceflightNow",
  "description": "The best source for space news",
  "followers_count": 499952,
  "friends_count": 157,
  "statuses_count": 41269,
  "location": "Cape Canaveral, Florida",
  "created_at": "Thu Nov 06 19:44:31 +0000 2008",
  "is_blue_verified": true,
  "website": "http://spaceflightnow.com",
  "emails": []
}

Step 5: Export

Click Export to download JSON, CSV, XML, Excel, HTML Table, RSS or JSONL, from the Users view or All fields.

Export dataset dialog

Run it from code

Python (pip install apify-client): several topics at once, mid-size accounts only:

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("xtdata/twitter-x-user-search-scraper").call(run_input={
    "searchTerms": ["space", "astronomy", "rocket"],
    "maxItems": 50,
    "minFollowers": 10000,
    "maxFollowers": 500000,
})

for user in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(user["screen_name"], user["followers_count"], user.get("website"), user.get("emails"))

Node.js (npm install apify-client): verified accounts only, slimmed down with a map function:

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('xtdata/twitter-x-user-search-scraper').call({
    searchTerms: ['web scraping'],
    maxItems: 100,
    onlyVerified: true,
    customMapFunction: '(u) => ({ handle: u.screen_name, followers: u.followers_count, site: u.website })',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.table(items);

Pricing

Pay per delivered user, plus a tiny start event. Users removed by filters are not charged, and runs stop at your maximum cost.

Event Free plan Bronze Silver Gold / Platinum / Diamond
Each user $2.00 / 1,000 $0.80 / 1,000 $0.60 / 1,000 $0.50 / 1,000
Actor start $0.0001 $0.0001 $0.0001 $0.0001

Tips

FAQ

Do I need an X account? No. Only publicly visible profiles are read, without logging in.

Is maxItems per run? No, per search term. Three terms with maxItems: 50 can return up to 150 users.

Why did a person named “Spacey” show up for “space”? X’s user search matches names and handles, not only bios. Filter or review the list for your use case.

Ready to build your own list? Open X.com Twitter User Search Scraper on Apify.