# Twitter X B2b Lead Generator Email Scraper - Country Targeted (`code-beat/twitter-x-b2b-lead-generator-email-scraper-smart-and-scalable`) Actor

✖️ Twitter (X) B2B Lead Generator Email Scraper queries several engines at once for business profile emails. 🌍 Country-targeted with alias-aware deduplication and hidden-address decoding. 📈 Built for agencies & high-volume prospecting.

- **URL**: https://apify.com/code-beat/twitter-x-b2b-lead-generator-email-scraper-smart-and-scalable.md
- **Developed by:** [Code Beat](https://apify.com/code-beat) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### Twitter X B2B Lead Generator Email Scraper

**Twitter X B2B Lead Generator Email Scraper** helps you extract public emails, names, profile URLs, and bios from X profiles and posts so you can build sales leads faster with less manual research. It’s built for Twitter lead generation, X lead generation, and B2B lead generation when you need scalable contact discovery from public web data.

### What is Twitter X B2B Lead Generator Email Scraper? 🔍

**Twitter X B2B Lead Generator Email Scraper** is an Apify actor that collects publicly available contact data from X profiles and posts based on your search terms, country, and content type. It’s designed as a practical Twitter email extractor and X lead generator for marketers, sales teams, recruiters, and data analysts who need automated Twitter scraping without manual digging.

Use it to streamline social media prospecting, prospect list building, and sales intelligence workflows. By focusing on public web data, this actor helps you turn keywords into structured leads you can review, export, and use in outreach campaigns.

### What Data Does a Twitter X B2B Lead Generator Email Scraper Collect? 📊

This actor returns a focused set of lead data so you can quickly answer the question: “What exactly do I get?” The output is organized for B2B prospecting, email extraction, and target audience research, with each record tied to the search term and geography used in the run.

| Data Category | Field Name | Description | Available |
|---|---|---|---|
| Discovery | `searchTerm` | The search keyword that surfaced the lead | ✅ Always |
| Identity | `title` | Profile name or handle | ✅ Always |
| Navigation | `url` | Direct link to the profile or post | ✅ Always |
| Context | `description` | Bio or profile summary | ✅ Always |
| Contact | `email` | Publicly listed email address | ✅ When listed |
| Domain | `email_domain` | Email domain extracted from the address | ✅ When listed |
| Type | `source_region` | Content type selected for the run | ✅ Always |
| Location | `country` | Target country used for localized searching | ✅ Always |

### Types of Data I Can Extract with Twitter X B2B Lead Generator Email Scraper 🗂️

This actor is organized around practical lead generation tools use cases. Whether you’re building a prospect list or validating an audience segment, the data comes back in a simple, structured format that fits email finder workflows and sales leads research.

**Contact Data**

- Public email addresses
- Profile URLs for follow-up and manual review

**Identity Data**

- Name or handle
- Bio text for quick qualification

**Discovery Data**

- Search term that found the record
- Content type selected for the run

**Location Data**

- Target country used to localize results

#### Key Features of Twitter X B2B Lead Generator Email Scraper ⚡

| Feature | Benefit |
|---|---|
| ✅ Keyword-based searching | Helps you find relevant contacts by topic, role, hashtag, or job title |
| ✅ Country targeting | Useful for localized lead generation and audience research |
| ✅ Content type filtering | Lets you focus on Profiles, Posts, or both |
| ✅ Configurable `maxEmails` | Keeps runs cost-controlled by limiting the number of emails collected |
| ✅ Built-in proxy support | Helps improve reliability when collecting public web data at scale |
| ✅ Structured dataset output | Makes it easy to export lead scraping results into CRM or spreadsheets |
| ✅ Real-time saving | Keeps extracted records available during longer runs |
| ✅ Retry and fallback handling | Improves resilience when results are harder to collect |

### Twitter X B2B Lead Generator Email Scraper User Guide 📖

#### Required Input Fields

```json
{
  "searchTerms": [
    "saas founder",
    "crypto",
    "marketing"
  ],
  "country": "United States",
  "sourceRegion": "All",
  "engine": "legacy",
  "maxEmails": 20
}
```

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `searchTerms` | Array | ✅ Yes | `["saas founder", "crypto", "marketing"]` | Topics, hashtags, or job titles used to find relevant X profiles and posts. |
| `country` | String | ✅ Yes | `United States` | Target country for localized lead searching. |
| `sourceRegion` | String | ✅ Yes | `All` | Chooses whether to collect from Profiles, Posts, or both. |
| `engine` | String | No | `legacy` | Selects the scraping mode. The available options are Performance (New) and Standard. |
| `maxEmails` | Integer | ✅ Yes | `20` | Maximum number of emails to collect in one run. |

#### Required Output Fields

```json
{
  "searchTerm": "saas founder",
  "title": "@alexmorgan",
  "url": "https://x.com/alexmorgan",
  "description": "Founder building B2B tools | Book a demo via email",
  "email": "alex@northstarlabs.com",
  "email_domain": "northstarlabs.com",
  "source_region": "Profiles",
  "country": "United States"
}
```

| Field | Label | Format | Description |
|---|---|---|---|
| `searchTerm` | Search Term | text | The keyword that matched the lead. |
| `title` | Name / Handle | text | The profile name or handle shown in the dataset. |
| `url` | URL | link | Direct link to the profile or post. |
| `description` | Bio | text | Public bio or profile summary associated with the lead. |
| `email` | Email | text | Publicly listed email address found for the lead. |
| `email_domain` | Domain | text | Domain part of the extracted email address. |
| `source_region` | Type | text | The content type used for the result, such as Profiles or Posts. |
| `country` | Country | text | The target country selected for the run. |

### Solving Real Problems with Twitter X B2B Lead Generator Email Scraper 💼

- 🎯 **Cold Email Outreach** — Build targeted sales leads from public X data for outbound campaigns
- 📣 **Content Marketing** — Find creators, founders, and niche voices for collaborations and promotions
- 🤝 **Recruitment** — Support talent sourcing and contact discovery for role-specific outreach
- 🔬 **Market Research** — Analyze public bios and profiles for target audience research and segmentation
- 📊 **CRM Enrichment** — Add emails, domains, and context to existing prospect records
- ⚙️ **Lead List Building** — Create organized prospect list building workflows for ongoing campaigns

### Why Choose Our Twitter X B2B Lead Generator Email Scraper? 🏆

- 💰 **Controlled volume** — `maxEmails` lets you cap how many contacts are collected per run
- 🌍 **Localized searching** — Country targeting helps you focus on a specific market or region
- ⚡ **Multiple content types** — Collect from Profiles, Posts, or both depending on your campaign goal
- 📧 **Real support** — Reach out at <codebeatapi@gmail.com> for help or feature requests

### How Many Results Can You Scrape? 📈

- Use `maxEmails` to limit each run from 1 to 10,000 emails
- Actual yield depends on your search terms, content type, and how many public profiles list an email
- Broader keywords usually return more results, while highly specific terms can improve relevance
- For larger lead generation jobs, keep your search terms focused and run multiple batches when needed

### Legal Guidelines for Scraping Twitter X ⚖️

This actor only collects publicly available data from X. It does not require logins or access private profiles, so it is intended for legitimate research, sales intelligence, and B2B prospecting use cases. You are responsible for complying with applicable laws, platform rules, and data privacy requirements. For data-removal requests, contact <codebeatapi@gmail.com>.

### FAQ — Twitter X B2B Lead Generator Email Scraper ❓

#### How Does the Twitter X B2B Lead Generator Email Scraper Work?

You provide search terms, a target country, a content type, and a maximum email limit. The actor then collects matching public records and stores them in a structured Apify dataset for easy export and follow-up.

#### What Twitter X Profile Types Are Supported?

The actor works with public profiles and public posts, depending on the `sourceRegion` you choose. Private or restricted content is not part of the output.

#### How Did the Twitter X B2B Lead Generator Email Scraper Perform in Our Tests?

It is designed for consistent public email extraction and structured lead generation. Results will vary by niche, keyword quality, and how many public contacts are available for your target audience.

#### Why Use a Twitter X B2B Lead Generator Email Scraper Instead of Manual Search?

Manual social media prospecting takes time and is hard to scale. This actor automates the repetitive part of lead scraping so you can focus on outreach, qualification, and analysis.

#### What Will the Twitter X B2B Lead Generator Email Scraper Cost Me?

Your cost depends on how many results you collect and how you configure your run. Use `maxEmails` to keep the scope under control and avoid collecting more data than you need.

#### How Does the Twitter X B2B Lead Generator Email Scraper Help My Business?

It helps you create cleaner sales leads, faster prospect list building, and better target audience research by turning public X data into structured contact records.

#### What Are the Challenges of Using a Twitter X Scraper?

Not every profile or post includes a public email address, so yield can vary. Narrow or overly specific search terms may return fewer results than broader ones.

#### How to Choose a High-Performing Twitter X B2B Lead Generator Email Scraper

Look for structured output, configurable limits, country targeting, and dependable collection of publicly available data. These are the features that matter most when you need repeatable email extraction and contact discovery.

### Final Word ✉️

The **Twitter X B2B Lead Generator Email Scraper** gives you a faster way to build a clean X contact list from public data. If you need B2B lead generation without manual searching, this actor helps you find, organize, and export useful leads in minutes.

### 🆘 Support & Feedback

Have a question or want help with the **Twitter X B2B Lead Generator Email Scraper**?

- 🐞 **Bug Reports:** Contact support with details about your run
- ✨ **Custom Solutions & Feature Requests:** Reach out for improvements or special lead generation workflows
- 📧 **Email:** <codebeatapi@gmail.com>

### Country & Time Targeting

Both filters are applied to the Google query itself, so they shape which pages
the dork is answered from rather than filtering after the fact.

**Target Country** - runs the search as if from that country (`gl`). Turn on
**Strict country filter** to additionally restrict results to pages Google
attributes to it (`cr=countryXX`); that is much tighter and returns noticeably
fewer results. Leave the country on *Global (no country filter)* for worldwide
results.

**Result Language** - restricts results to a single language (`hl` + `lr`).

**Time Range** - limits results to a publication window: past hour, 24 hours,
week, month, year, or an explicit *Custom range* using **Custom range: from** /
**to** in `YYYY-MM-DD` form. A page Google indexed last week is far more likely
to carry a live mailbox than one it last saw five years ago.

Selecting *Custom range* without either date falls back to no time filter rather
than searching all of time by accident.

# Actor input Schema

## `searchTerms` (type: `array`):

Topics, hashtags, or job titles to search on X (Twitter).

## `country` (type: `string`):

Ask Google to answer as if searching from this country. Leave on "Global (no country filter)" for worldwide results.

## `sourceRegion` (type: `string`):

Select content type: Profiles or Posts (Tweets).

## `engine` (type: `string`):

Select your preferred scraping method. ⚡ Performance (New): Faster, cheaper, uses residential proxies. 🛡️ Standard: Reliable, uses GOOGLE\_SERP proxy, but slower.

## `maxEmails` (type: `integer`):

Limit the number of emails to collect.

## `verificationMode` (type: `string`):

Quick Check (default) validates syntax and MX records only - fast, no added latency. Deep Check additionally flags disposable-domain addresses and checks each domain against a public spam blocklist (Spamhaus DBL). Off skips validation entirely.

## `minQualityScore` (type: `number`):

Drop any email whose quality score (0.0-1.0) falls below this. Leave at 0 for no filter.

## `requireMxValid` (type: `boolean`):

Drop any email whose domain has no valid mail server (MX record).

## `strictCountry` (type: `boolean`):

Restrict results to pages Google attributes to the target country (cr=countryXX), instead of only preferring them. Much tighter targeting, noticeably fewer results.

## `searchLanguage` (type: `string`):

Restrict results to one language. Leave on "Any language" for no filter.

## `timeRange` (type: `string`):

Only return pages Google indexed within this window. Recent pages are more likely to hold a mailbox that still works.

## `customDateFrom` (type: `string`):

Only used when Time Range is "Custom range". Format: YYYY-MM-DD.

## `customDateTo` (type: `string`):

Only used when Time Range is "Custom range". Format: YYYY-MM-DD.

## Actor input object example

```json
{
  "searchTerms": [
    "saas founder",
    "crypto",
    "marketing"
  ],
  "country": "Global (no country filter)",
  "sourceRegion": "All",
  "engine": "legacy",
  "maxEmails": 20,
  "verificationMode": "Quick Check",
  "minQualityScore": 0,
  "requireMxValid": false,
  "strictCountry": false,
  "searchLanguage": "",
  "timeRange": "Any time",
  "customDateFrom": "",
  "customDateTo": ""
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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 = {
    "searchTerms": [
        "saas founder",
        "crypto",
        "marketing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("code-beat/twitter-x-b2b-lead-generator-email-scraper-smart-and-scalable").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 = { "searchTerms": [
        "saas founder",
        "crypto",
        "marketing",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("code-beat/twitter-x-b2b-lead-generator-email-scraper-smart-and-scalable").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 '{
  "searchTerms": [
    "saas founder",
    "crypto",
    "marketing"
  ]
}' |
apify call code-beat/twitter-x-b2b-lead-generator-email-scraper-smart-and-scalable --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,code-beat/twitter-x-b2b-lead-generator-email-scraper-smart-and-scalable"
        }
    }
}

```

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/xg4winG18xAewsLDO/builds/5Wz18AmjN0YbkJvLT/openapi.json
