# Apollo & B2B Lead Scraper (`wyle/apollo-lead-enrichment`) Actor

High-margin B2B contact intelligence and lead scraper. Enrich prospects, generate corporate email permutations with real-time SMTP deliverability verification, and detect company tech stacks.

- **URL**: https://apify.com/wyle/apollo-lead-enrichment.md
- **Developed by:** [Willy Lengkong](https://apify.com/wyle) (community)
- **Categories:** Lead generation
- **Stats:** 6 total users, 5 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 results

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?

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

## 🎯 Apollo & B2B Lead Scraper - Contact Enrichment, Verified Work Emails & Company Tech

High-margin B2B lead intelligence and prospect enrichment actor. Generate verified work email permutations, perform real-time MX & SMTP deliverability checks, extract LinkedIn profiles, and detect company tech stacks with zero browser overhead.

***

### ⚡ Key Features

- **🚀 3 Powerful Lead Generation Modes**:
  - `prospects`: Enrich prospect names (`First Name`, `Last Name`, `Company Domain`) into verified corporate work emails with deliverability scores.
  - `domain_leads`: Discover executive and decision-maker lead patterns for target companies and domains.
  - `emails`: Reverse email verification, disposable domain filtering, corporate classification, and MX diagnostics.
- **✉️ Real-Time SMTP Deliverability Verification**: Direct handshake validation against destination mail servers (Google Workspace, Microsoft 365, etc.) without sending emails.
- **🔍 Company Tech Stack Detection**: Automatically scans company websites for CMS (Shopify, WordPress), JavaScript frameworks (Next.js, React), and analytics.
- **🔗 LinkedIn Direct Search Links**: Pre-formatted LinkedIn search URL parameters for instant lead verification.
- **💰 Pay-Per-Event (PPE) Optimized**: Ideal for B2B cold outreach, CRM enrichment, and automated sales workflows.

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `"prospects"` | Enrichment mode: `prospects`, `domain_leads`, or `emails`. |
| `prospects` | Array | `[...]` | List of prospect objects (`firstName`, `lastName`, `domain`, `title`). |
| `domains` | Array | `["stripe.com"]` | Target company domains for domain lead generation. |
| `targetTitles` | Array | `["CEO", "CTO"]` | Target job titles for executive lead discovery. |
| `verifySmtp` | Boolean | `true` | Perform real-time non-intrusive SMTP mailbox verification. |
| `detectTechStack` | Boolean | `true` | Scan company website to identify software & technologies used. |
| `concurrency` | Integer | `4` | Number of concurrent lead checks (1 to 10). |
| `proxyConfiguration` | Object | `null` | Apify Proxy configuration (optional). |

***

### 📤 Sample Output (`prospects` mode)

```json
{
  "first_name": "Patrick",
  "last_name": "Collison",
  "full_name": "Patrick Collison",
  "title": "Chief Executive Officer",
  "company_name": "Stripe",
  "company_domain": "stripe.com",
  "company_website": "https://stripe.com",
  "work_email": "patrick.collison@stripe.com",
  "deliverability_status": "VALID",
  "confidence_score": 95,
  "is_corporate_email": true,
  "all_email_permutations": [
    "patrick.collison@stripe.com",
    "patrick@stripe.com",
    "p.collison@stripe.com",
    "pcollison@stripe.com"
  ],
  "linkedin_search_url": "https://www.linkedin.com/search/results/people/?keywords=Patrick+Collison+Stripe+Chief+Executive+Officer",
  "company_tech_stack": [
    "Next.js",
    "React",
    "Cloudflare"
  ]
}
```

# Actor input Schema

## `mode` (type: `string`):

Select enrichment mode.

## `prospects` (type: `array`):

Array of prospect objects with firstName, lastName, domain, and optional title.

## `domains` (type: `array`):

List of company domains to generate executive leads for (e.g. \['stripe.com', 'shopify.com']).

## `targetTitles` (type: `array`):

Target job roles / seniorities to discover (e.g. \['CEO', 'CTO', 'VP Engineering', 'Head of Sales']).

## `emails` (type: `array`):

List of email addresses to verify and enrich.

## `verifySmtp` (type: `boolean`):

Connect to target MX mail servers to verify mailbox deliverability without sending actual emails.

## `detectTechStack` (type: `boolean`):

Scan company website to detect CMS, frameworks, and analytics.

## `concurrency` (type: `integer`):

Number of concurrent prospect checks (1 to 10).

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration (Optional).

## Actor input object example

```json
{
  "mode": "prospects",
  "prospects": [
    {
      "firstName": "Satya",
      "lastName": "Nadella",
      "domain": "microsoft.com",
      "title": "Chief Executive Officer"
    },
    {
      "firstName": "Patrick",
      "lastName": "Collison",
      "domain": "stripe.com",
      "title": "Chief Executive Officer"
    },
    {
      "firstName": "Tobias",
      "lastName": "Lutke",
      "domain": "shopify.com",
      "title": "Founder & CEO"
    }
  ],
  "domains": [
    "stripe.com",
    "shopify.com"
  ],
  "targetTitles": [
    "CEO",
    "CTO",
    "Head of Engineering",
    "VP Sales"
  ],
  "emails": [],
  "verifySmtp": true,
  "detectTechStack": true,
  "concurrency": 4
}
```

# Actor output Schema

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

Full dataset of enriched B2B leads.

## `preview` (type: `string`):

Quick view of the top 5 enriched B2B leads.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/apollo-lead-enrichment").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("wyle/apollo-lead-enrichment").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 '{}' |
apify call wyle/apollo-lead-enrichment --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wyle/apollo-lead-enrichment"
        }
    }
}

```

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/nh2DgTJkBLIl1K7WU/builds/Hdy1x6bFgIrDkSm6k/openapi.json
