# B2B Email Verifier & Corporate Lead Finder (Standby API) (`fragthom/b2b-email-verifier-and-lead-finder`) Actor

Zero-proxy Standby API for high-throughput email deliverability verification (DNS MX, disposable check, mail provider) and corporate email pattern lead discovery.

- **URL**: https://apify.com/fragthom/b2b-email-verifier-and-lead-finder.md
- **Developed by:** [Thomas Fragrante](https://apify.com/fragthom) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## B2B Email Verifier & Corporate Lead Finder (Standby API + Batch + MCP)

High-throughput, zero-proxy Apify Standby Actor and Pay-Per-Event API for validating business email deliverability and discovering corporate lead contacts and permutation patterns in sub-seconds.

***

### ⚡ Key Capabilities

- **Zero-Proxy DNS MX Resolution**: Queries authoritative MX records via ultra-fast Google DNS-over-HTTPS (DoH) with zero external DNS library dependencies.
- **Provider Fingerprinting**: Automatically identifies enterprise email infrastructure (`Google Workspace`, `Microsoft 365`, `Proofpoint`, `Mimecast`, `Proton`, `Zoho`, `AWS SES`).
- **Disposable & Webmail Guard**: Detects 30+ burner domain networks (`10minutemail`, `temp-mail`, `mailinator`, etc.) and distinguishes personal accounts (`gmail`, `yahoo`, `hotmail`) from corporate domains.
- **Corporate Pattern Discovery**: Infers company email conventions (`{first}.{last}`, `{first}`, `{f}{last}`) and synthesizes deliverability-scored candidate emails for executive prospects.
- **Public Inbox Extraction**: Scrapes official corporate touchpoints (`sales@`, `security@`, `founders@`) across standard company pages (`/contact`, `/about`, `/.well-known/security.txt`).
- **Triple Interface**: Runs as an ultra-low latency **Standby HTTP Server** (port 8080), standard **Batch Dataset Actor**, and a **Model Context Protocol (MCP)** stdio server.

***

### 💰 Pay-Per-Event (PPE) Micro-Pricing

| Event | Price (USD) | What You Get |
|---|---|---|
| `actor-start` | **$0.0001** | Base HTTP request invocation |
| `email-verified` | **$0.0008** | Full syntax check, DNS MX resolution, disposable guard, provider fingerprinting, and quality scoring (0–100) |
| `lead-discovered` | **$0.0020** | Corporate email pattern discovery, public department contacts, and candidate lead permutations |

***

### 🚀 Standby HTTP API Quickstart

Invoke directly against your running Standby Actor container without cold-start overhead:

#### 1. Verify a Single Email

```bash
curl -X POST "https://api.apify.com/v2/acts/fragthom~b2b-email-verifier-and-lead-finder/runs" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "satya@microsoft.com"}'
```

**Response Example:**

```json
{
  "email": "satya@microsoft.com",
  "status": "DELIVERABLE",
  "is_deliverable": true,
  "deliverability_score": 99,
  "user": "satya",
  "domain": "microsoft.com",
  "is_corporate_email": true,
  "is_free_webmail": false,
  "is_role_based": false,
  "is_disposable": false,
  "mail_provider": "Microsoft 365",
  "primary_mx_host": "microsoft-com.mail.protection.outlook.com",
  "mx_hosts_count": 1,
  "elapsed_ms": 182.4
}
```

#### 2. Discover Leads & Email Pattern for a Company

```bash
curl -X POST "https://api.apify.com/v2/acts/fragthom~b2b-email-verifier-and-lead-finder/runs" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "posthog.com",
    "first_name": "James",
    "last_name": "Hawkins",
    "role": "CEO"
  }'
```

**Response Example:**

```json
{
  "domain": "posthog.com",
  "mail_provider": "Google Workspace",
  "has_valid_mx": true,
  "discovered_public_contacts": [
    "sales@posthog.com",
    "security-reports@posthog.com"
  ],
  "inferred_email_pattern": "{first}@{domain}",
  "candidate_leads": [
    {
      "email": "james@posthog.com",
      "pattern": "{first}@{domain}",
      "deliverability_score": 98
    },
    {
      "email": "james.hawkins@posthog.com",
      "pattern": "{first}.{last}@{domain}",
      "deliverability_score": 98
    }
  ]
}
```

***

### 📦 Batch Dataset Mode

Pass lists of emails and domains to verify hundreds of leads at bulk speed and download as CSV / JSON:

```json
{
  "emails": [
    "tim@apple.com",
    "alex@10minutemail.com",
    "support@github.com"
  ],
  "domains": [
    "stripe.com",
    "linear.app"
  ]
}
```

***

### 🤖 Model Context Protocol (MCP) Setup

Add to Claude Desktop or Cursor configuration:

```json
{
  "mcpServers": {
    "b2b-email-verifier": {
      "command": "python3",
      "args": ["/path/to/b2b-email-verifier-and-lead-finder/mcp_server.py"]
    }
  }
}
```

***

### 📄 License

Apache-2.0

# Actor input Schema

## `runMode` (type: `string`):

Standard batch run (scrapes & saves to dataset) or continuous Standby HTTP server

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

List of email addresses to verify deliverability, syntax, MX host, and disposable status

## `email` (type: `string`):

Single email address for instant verification

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

List of company domains to detect mail provider, email patterns, and extract public team inboxes

## `domain` (type: `string`):

Target company website domain (e.g. stripe.com, posthog.com)

## Actor input object example

```json
{
  "runMode": "BATCH",
  "emails": [
    "sam@openai.com",
    "alex@stripe.com"
  ],
  "domain": "stripe.com"
}
```

# Actor output Schema

## `leads` (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 = {
    "runMode": "BATCH",
    "emails": [
        "sam@openai.com",
        "alex@stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fragthom/b2b-email-verifier-and-lead-finder").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 = {
    "runMode": "BATCH",
    "emails": [
        "sam@openai.com",
        "alex@stripe.com",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("fragthom/b2b-email-verifier-and-lead-finder").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 '{
  "runMode": "BATCH",
  "emails": [
    "sam@openai.com",
    "alex@stripe.com"
  ]
}' |
apify call fragthom/b2b-email-verifier-and-lead-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fragthom/b2b-email-verifier-and-lead-finder"
        }
    }
}
```

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/8z0Frt4DfPWZQDYnC/builds/QfMtQ8rv73Zr1C5Jz/openapi.json
