# Zero-Bounce B2B Lead & MX-Verified Email Enricher (`judicial_adventure/zero-bounce-b2b-lead-and-email-enricher`) Actor

Zero-bounce B2B lead & decision-maker email enricher with DNS MX/SPF/DMARC verification, email pattern inference, MX provider fingerprinting, and tech-stack detection. Pay $0 for empty or unverified rows via Pay-Per-Event (PPE).

- **URL**: https://apify.com/judicial_adventure/zero-bounce-b2b-lead-and-email-enricher.md
- **Developed by:** [nevil ingutu](https://apify.com/judicial_adventure) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 mx-verified b2b lead & email enricheds

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

## Zero-Bounce B2B Lead & MX-Verified Email Enricher

**Pay $0 for Empty or Unverified Rows — 100% MX-Verified B2B Leads.**

Most B2B lead and email scrapers on the Apify Store suffer from low ratings because they charge you for null emails, `.png` image filenames, or dead domains without mail servers.

**Zero-Bounce B2B Lead & Email Enricher** is built on **Apify SDK v3 (`apify` ^3.7.0)** using the **Pay-Per-Event (PPE)** model. It crawls company domains (`/`, `/about`, `/team`, `/contact`, `/leadership`, `/impressum`, `/privacy`), discovers staff & decision-maker profiles, infers company email naming conventions (e.g., `{first}.{last}@domain.com`), verifies **DNS MX, SPF (`v=spf1`), and DMARC (`_dmarc`)** records in real time, fingerprints the email provider (**Google Workspace, Microsoft 365, Proton, Zoho, Cloudflare, Fastmail, Mimecast, Proofpoint, Amazon SES**), and **ONLY triggers a PPE charge when a verified, deliverable business email is returned**.

***

### Why Choose This B2B Lead Enricher?

1. **Pay $0 for Empty, Dead, or Unverified Domains:**
   - If a company website times out, has no DNS `MX` records (`invalid_no_mx`), or yields zero verified emails, **you pay $0** for data events.
2. **Real-Time DNS MX, SPF & DMARC Verification (`src/emailVerifier.ts`):**
   - Resolves `dns.promises.resolveMx` and `dns.promises.resolveTxt` to confirm active mail exchange servers, SPF sender policies, DMARC enforcement, and email infrastructure provider (`mxProvider`).
   - Automatically strips asset false-positives (`.png`, `.jpg`, `.svg`, `.webp`, `.js`, `.css`, `sentry.io`, `wixpress.com`, `example.com`) and decodes Cloudflare-obfuscated emails (`data-cfemail`).
3. **Decision-Maker Discovery & Email Pattern Inference (`src/patternGenerator.ts`):**
   - Extracts leadership names, job titles, and LinkedIn URLs from JSON-LD and team cards, infers the domain's email pattern (`{first}.{last}@domain.com`, `{first}@domain.com`, etc.), and classifies each email into `"verified_deliverable"` or `"valid_mx_role_account"`.
4. **MCP-Ready for Autonomous AI Agents (`mcp.apify.com`):**
   - Pre-filled zero-config defaults (`["apify.com", "linear.app", "cal.com"]`) and self-documenting schema parameters allow AI sales and research agents to enrich domains in one tool call.

***

### Transparent Pay-Per-Event (PPE) Billing

| Event Name | When It Is Charged | Zero-Bounce Guarantee |
| :--- | :--- | :--- |
| `apify-actor-start` | Charged once when the Actor starts. | Flat startup event. |
| `verified-lead-enriched` | Charged per deduplicated lead where `verificationStatus` is `"verified_deliverable"` or `"valid_mx_role_account"`. | **Never charged** if `verificationStatus === "invalid_no_mx"`, if the domain is unreachable, or if no email is found. Stops immediately when `eventChargeLimitReached` is true. |

***

### Sample Output Record

```json
{
  "domain": "apify.com",
  "companyName": "Apify",
  "contactName": null,
  "jobTitle": "General & B2B Inquiries",
  "email": "hello@apify.com",
  "verificationStatus": "valid_mx_role_account",
  "mxProvider": "Google Workspace",
  "mxPrimaryExchange": "aspmx.l.google.com",
  "hasSpf": true,
  "hasDmarc": true,
  "confidenceScore": 98,
  "patternInferred": false,
  "inferredCompanyPattern": "{first}.{last}",
  "linkedInUrl": "https://www.linkedin.com/company/apify",
  "phoneNumbers": [],
  "techStack": [
    "Next.js",
    "Google Tag Manager",
    "Intercom",
    "Cloudflare"
  ],
  "socialLinks": {
    "linkedin": "https://www.linkedin.com/company/apify",
    "twitter": "https://x.com/apify",
    "github": "https://github.com/apify",
    "youtube": "https://www.youtube.com/apify"
  },
  "sourcePages": [
    "https://apify.com",
    "https://apify.com/about",
    "https://apify.com/contact",
    "https://apify.com/privacy"
  ],
  "scrapedAt": "2026-11-15T14:48:00.000Z"
}
```

***

### Local Development & PPE Verification

```bash
npm install
npm run build
npm run test:ppe
```

# Actor input Schema

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

List of target company domains or URLs to crawl and enrich (e.g., \["apify.com", "linear.app", "cal.com"]). Dead domains or domains without valid MX records incur $0 PPE data charges.

## `targetJobTitles` (type: `array`):

Optional list of target roles or titles to prioritize when matching discovered team members and generating pattern-inferred executive emails (e.g., \["CEO", "Founder", "VP of Sales", "Head of Growth", "CTO"]).

## `includeRoleEmails` (type: `boolean`):

When enabled (default: true), includes verified company role accounts (e.g., sales@, hello@, founders@, partnerships@, press@) with status 'valid_mx_role_account' alongside personal decision-maker emails.

## `verifyMxAndSmtp` (type: `boolean`):

When enabled (default: true), resolves DNS MX, SPF, and DMARC records via Node dns.promises, fingerprints the email provider (Google Workspace, Microsoft 365, Proton, Zoho, Cloudflare), and performs an optional non-intrusive SMTP handshake.

## `maxLeadsPerDomain` (type: `integer`):

Maximum number of verified B2B email leads to output (and bill) per company domain.

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

Optional Apify Proxy configuration for high-volume B2B domain crawling.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "linear.app",
    "cal.com"
  ],
  "targetJobTitles": [
    "Founder",
    "CEO",
    "CTO",
    "Head of Growth",
    "VP of Sales"
  ],
  "includeRoleEmails": true,
  "verifyMxAndSmtp": true,
  "maxLeadsPerDomain": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `verifiedLeadsDataset` (type: `string`):

View all verified B2B decision-maker and company email 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 = {
    "domains": [
        "apify.com",
        "linear.app",
        "cal.com"
    ],
    "targetJobTitles": [
        "Founder",
        "CEO",
        "CTO",
        "Head of Growth",
        "VP of Sales"
    ],
    "includeRoleEmails": true,
    "verifyMxAndSmtp": true,
    "maxLeadsPerDomain": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("judicial_adventure/zero-bounce-b2b-lead-and-email-enricher").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 = {
    "domains": [
        "apify.com",
        "linear.app",
        "cal.com",
    ],
    "targetJobTitles": [
        "Founder",
        "CEO",
        "CTO",
        "Head of Growth",
        "VP of Sales",
    ],
    "includeRoleEmails": True,
    "verifyMxAndSmtp": True,
    "maxLeadsPerDomain": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("judicial_adventure/zero-bounce-b2b-lead-and-email-enricher").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 '{
  "domains": [
    "apify.com",
    "linear.app",
    "cal.com"
  ],
  "targetJobTitles": [
    "Founder",
    "CEO",
    "CTO",
    "Head of Growth",
    "VP of Sales"
  ],
  "includeRoleEmails": true,
  "verifyMxAndSmtp": true,
  "maxLeadsPerDomain": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call judicial_adventure/zero-bounce-b2b-lead-and-email-enricher --silent --output-dataset

```

## MCP server setup

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

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/43f54pSDnDkawq0T5/builds/HwTRwNwUjN84wMKeu/openapi.json
