# X (Twitter) User Search - Profiles by Keyword with Emails (`aolmo/x-user-search`) Actor

Find X (Twitter) profiles by keyword (niche, job, industry), without login: exact followers, following and posts, bio, location, website, verification, category, and emails and phones from the bio and the linked website. Follower range filter and only-with-contact option. $0.003 per profile.

- **URL**: https://apify.com/aolmo/x-user-search.md
- **Developed by:** [Antonio del Olmo Tena](https://apify.com/aolmo) (community)
- **Categories:** Lead generation, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 profile founds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

Search X (Twitter) users by keyword and get their profiles and contact details in one run. Give keywords for a niche, job or industry (saas founder, crypto analyst, growth marketer, real estate investor) and the Actor finds the matching X accounts, reads every profile and returns one row per account with exact followers, following and posts, bio, location, website, verification, professional category, and the emails and phones written in the bio or published on their website. Filter by follower range, or keep only profiles with an email or phone. Influencer and KOL lists, B2B outreach, recruiting and partnership research at **$0.003 per profile**.

X does not show its search to logged-out visitors, so the Actor discovers accounts through a web search restricted to x.com and reads each public profile through X's public guest access. It never logs in, uses accounts or bypasses CAPTCHAs or rate limits.

### What you get

**Profile** (one row each): `username`, `url`, `name`, `bio`, `location`, `website`, `verified`, `verifiedType`, `followers`, `following`, `posts`, `listed`, `joinedAt`, `professionalCategory`, `affiliation`, `avatar`.

**Contacts**: `email`, `phone`, `emails`, `phones`, `ownEmails` (from the bio), `siteEmails` and `sitePhones` (from the website), `socials`, `websiteStatus`, `pagesCrawled`, `hasContact`.

**Match**: `keyword`, `position`, `foundUrl`, `foundTitle`, `candidatesFound`, `profilesRead`. On scheduled runs `isNew` marks profiles that were not in the previous run.

Protected accounts, accounts that cannot be read and accounts outside your filters are listed in `skipped` and are free.

### How to use it

1. Open the **Input** tab.
2. Add **Keywords**, one per line: `saas founder`, `#buildinpublic`, `crypto analyst`.
3. Set **Minimum followers** and **Maximum followers** (0 = no maximum), and **Max profiles per keyword** (up to 50).
4. Turn on **Only results with email or phone** for outreach lists.
5. Click **Start** and export the profiles as JSON, CSV or Excel.

### Input

```json
{
  "keywords": ["saas founder", "growth marketer"],
  "maxProfiles": 30,
  "minFollowers": 1000,
  "maxFollowers": 100000,
  "onlyWithContact": false,
  "crawlWebsite": true
}
```

### Output

```json
{
  "keyword": "saas founder",
  "position": 6,
  "username": "edgrows",
  "url": "https://x.com/edgrows",
  "name": "Ed | AEO & SEO",
  "bio": "Founder @citelity. Helping SaaS get cited by AI search.",
  "location": "London",
  "website": "https://citelity.example/free/aeo-score",
  "verified": true,
  "followers": 5208,
  "following": 812,
  "posts": 9120,
  "email": "hello@citelity.example",
  "emails": ["hello@citelity.example"],
  "socials": { "linkedin": "https://www.linkedin.com/in/edgrows" },
  "hasContact": true,
  "websiteStatus": "found",
  "isNew": false,
  "timestamp": "2026-11-16T12:00:00.000Z"
}
```

### Pricing

Pay per event: **$0.003 per profile returned** and **$0.002 per new profile** detected on a scheduled run. Profiles that cannot be read or are filtered out are free. 10 keywords x 30 profiles (300 profiles) cost $0.90.

### Use it as an API

```bash
curl -X POST "https://api.apify.com/v2/acts/aolmo~x-user-search/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["saas founder"], "maxProfiles": 30, "minFollowers": 1000}'
```

### FAQ

**Do I need an X account or API key?** No. Nothing to log in with and no account at risk.

**How are profiles found?** Through a web search of X profiles and posts for your keyword, several variations per keyword. Each account is then read on X for exact counters and bio.

**Why do some profiles have no email?** Most people put their email on their website rather than in their bio; the Actor reads both. Turn on **Only results with email or phone** to pay only for profiles you can contact.

**Where is the data stored between runs?** In a Key-Value Store of your account named `micro-saas-state-x-user-search`, one key per keyword. Delete it to start fresh.

### Related Actors

- **X Profile Scraper**: exact counters of the accounts you choose.
- **Threads Influencer Finder**: Threads creators by keyword with emails.
- **TikTok Influencer Finder**: TikTok creators by keyword with emails.

# Actor input Schema

## `keywords` (type: `array`):

One per line: saas founder, crypto analyst, growth marketer, #buildinpublic. Up to 50 per run.

## `maxProfiles` (type: `integer`):

Up to 50.

## `minFollowers` (type: `integer`):

Skip smaller accounts (free).

## `maxFollowers` (type: `integer`):

0 = no maximum.

## `onlyWithContact` (type: `boolean`):

Return (and charge) only profiles with at least one email or phone. Takes longer: more are read to fill the list.

## `crawlWebsite` (type: `boolean`):

Open the website of each profile (2-3 pages) for emails, phones and social links.

## `region` (type: `string`):

Region of the web search used to discover them: us-en, uk-en, es-es, de-de, fr-fr, in-en... or wt-wt for no region.

## `product` (type: `string`):

Internal. Leave as is.

## Actor input object example

```json
{
  "keywords": [
    "saas founder"
  ],
  "maxProfiles": 20,
  "minFollowers": 100,
  "maxFollowers": 0,
  "onlyWithContact": false,
  "crawlWebsite": true,
  "region": "us-en",
  "product": "x-user-search"
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset items: url, changed, events, data, timestamp and error (when the target failed).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "saas founder"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aolmo/x-user-search").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "keywords": ["saas founder"] }

# Run the Actor and wait for it to finish
run = client.actor("aolmo/x-user-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "saas founder"
  ]
}' |
apify call aolmo/x-user-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aolmo/x-user-search"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/c8XGgfIhztjwFxQy9/builds/204rfY37Yw64ccT8J/openapi.json
