# Verified B2B Leads (Zero-Bounce & Deduplicated) (`askerka00/verified-b2b-leads`) Actor

Discover B2B decision-maker leads from company domains or search queries, verify emails via MX/SPF and SMTP RCPT TO, deduplicate across runs, and pay only for new verified leads.

- **URL**: https://apify.com/askerka00/verified-b2b-leads.md
- **Developed by:** [Asker Aubakirov](https://apify.com/askerka00) (community)
- **Categories:** Lead generation, Marketing, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 verified new b2b leads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Verified B2B Leads (Zero-Bounce & Deduplicated)

Discover B2B decision-maker leads from company domains or search queries, verify every email through multi-layer DNS and SMTP checks, and deduplicate across runs so you never pay twice for the same contact.

***

### What does Verified B2B Leads do?

- **Lead discovery from domains or search queries:** Crawls company pages (`/`, `/about`, `/team`, `/leadership`, `/company`, `/contact`), parses JSON-LD `Person` schemas, `mailto:` links, Cloudflare `data-cfemail` protection, and obfuscated `[at]`/`[dot]` addresses, and infers corporate email patterns.
- **Strict search relevance filtering:** Automatically filters out directories, aggregators, and off-topic websites whose content does not match your search query keywords and location (e.g., `"pest control Austin TX"`).
- **Role & activity filtering:** Prioritizes contacts matching `targetRoles` (e.g., `CEO`, `Founder`, `VP`, `Director`, `Head of`) and skips inactive markers (`former`, `ex-`, `retired`, `alumni`).
- **Multi-layer zero-bounce verification:** Validates syntax → filters disposable domains, `noreply`, and spam-trap/tech addresses → checks real DNS `MX` and `SPF` records (never outputs domains without valid MX) → runs an optional `SMTP RCPT TO` handshake with catch-all detection and honest `verificationLevel` (`smtp_verified` vs `mx_verified`).
- **Cross-run deduplication:** Stores seen `email:domain` keys in a persistent Apify Key-Value Store (`dedupStoreName`) so recurring runs skip previously delivered leads at **$0 cost**.
- **Works out-of-the-box:** Zero required cookies, logins, Full permissions, or Apify Proxy by default. Just click **Start**.
- **Instant webhook delivery:** Sends newly verified leads as a JSON batch to Google Sheets, n8n, Make, or any custom endpoint.

***

### Cost of usage

This Actor uses **Pay-Per-Event (PPE)** pricing (**$0.003 per verified lead**):

- **`verified-lead`** (**$0.003**): Charged **only** when a new, verified, non-duplicate lead is saved to the Dataset.
- **$0 charged** for invalid emails, domains without valid MX, disposable/noreply addresses, irrelevant sites, excluded catch-all domains, or duplicates skipped by `onlyNew`.

***

### Input

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `domains` | `array` | `[]` | Optional target company domains to scan. |
| `searchQueries` | `array` | `["pest control Austin TX", "B2B SaaS marketing agency Austin TX"]` | Web search queries to discover relevant company domains automatically. |
| `strictRelevance` | `boolean` | `true` | Filter out search-discovered sites that do not match query keywords/location. |
| `targetRoles` | `array` | `["CEO", "Founder", "VP", "Director", "Head of"]` | Decision-maker role keywords to prioritize. |
| `maxLeads` | `integer` | `25` | Maximum number of new verified leads to save per run. |
| `onlyNew` | `boolean` | `false` | Skip leads already present in the persistent deduplication KV Store. |
| `dedupStoreName` | `string` | `"verified-b2b-leads-dedup"` | Named Apify Key-Value Store for cross-run deduplication. |
| `smtpCheck` | `boolean` | `true` | Enable live SMTP `RCPT TO` check with safe timeout and MX/SPF fallback. |
| `excludeCatchAll` | `boolean` | `false` | Reject addresses on catch-all mail servers. |
| `excludeFreeEmails` | `boolean` | `false` | Reject free webmail addresses (`gmail.com`, `yahoo.com`, `outlook.com`). |
| `webhookUrl` | `string` | `""` | Optional HTTP POST webhook URL for new verified leads. |
| `proxyConfiguration` | `object` | `{ "useApifyProxy": false }` | Optional Apify Proxy configuration (disabled by default). |

***

### Output

Verified leads are stored in the default **Dataset** and a run summary (`candidatesChecked`, `rejectedInvalid`, `rejectedDuplicate`, `verifiedSaved`, `chargedEvents`) is saved in the Key-Value Store under **`SUMMARY`**.

```json
{
  "fullName": "Jane Doe",
  "role": "VP of Engineering",
  "email": "jane.doe@example.com",
  "verificationLevel": "mx_verified",
  "verificationStatus": "mx_verified",
  "domain": "example.com",
  "companyName": "Example Inc.",
  "isRoleBased": false,
  "isFreeEmail": false,
  "matchedTargetRole": true,
  "spfValid": true,
  "mxRecords": ["aspmx.l.google.com"],
  "emailPattern": "first.last@example.com",
  "sourceUrl": "https://example.com/team",
  "discoveredAt": "2026-11-15T12:00:00.000Z"
}
```

***

### Integrations

- **Google Sheets:** Copy [`examples/google-sheets-apps-script.js`](examples/google-sheets-apps-script.js) into **Extensions → Apps Script**, deploy as a Web App, and paste the URL into `webhookUrl`.
- **n8n / Make / Zapier:** Import [`examples/n8n-workflow.json`](examples/n8n-workflow.json) or point `webhookUrl` to your Webhook trigger node.

***

### FAQ

**What happens if port 25 is blocked in the container?**\
The verifier uses a short 3.5-second timeout and automatically falls back to `mx_verified` (real DNS `MX` + `SPF` validation) without failing the run.

**Am I charged if a lead was already found in a previous run?**\
No. With `onlyNew: true`, duplicates are detected in `dedupStoreName` before verification and skipped with zero charge.

# Actor input Schema

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

Optional list of target company domains to extract and verify leads from (e.g., \["apify.com"]).

## `searchQueries` (type: `array`):

Web search queries to discover relevant company domains automatically (e.g., \["pest control Austin TX", "B2B SaaS marketing agency Austin TX"]).

## `strictRelevance` (type: `boolean`):

Filter out search-discovered websites whose content does not match your search query keywords/location.

## `targetRoles` (type: `array`):

Decision-maker role keywords used to prioritize and match contacts.

## `maxLeads` (type: `integer`):

Maximum number of new verified leads to save and charge per run.

## `onlyNew` (type: `boolean`):

Enable to skip leads already stored in the persistent Key-Value Store across runs so you are never charged twice for the same lead.

## `dedupStoreName` (type: `string`):

Name of the persistent Apify Key-Value Store used for deduplication across runs.

## `smtpCheck` (type: `boolean`):

Perform live SMTP handshake (HELO/MAIL FROM/RCPT TO) with safe timeout and automatic fallback to MX/SPF if port 25 is blocked.

## `excludeCatchAll` (type: `boolean`):

Reject email addresses on catch-all mail servers that accept any recipient.

## `excludeFreeEmails` (type: `boolean`):

Reject free webmail addresses (gmail.com, yahoo.com, outlook.com) and keep only corporate domain emails.

## `webhookUrl` (type: `string`):

Optional HTTP POST webhook URL to receive newly verified leads as a JSON batch.

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

Optional Apify Proxy settings. Disabled by default so the Actor runs out-of-the-box.

## Actor input object example

```json
{
  "domains": [],
  "searchQueries": [
    "pest control Austin TX",
    "B2B SaaS marketing agency Austin TX"
  ],
  "strictRelevance": true,
  "targetRoles": [
    "CEO",
    "Founder",
    "VP",
    "Director",
    "Head of"
  ],
  "maxLeads": 25,
  "onlyNew": false,
  "dedupStoreName": "verified-b2b-leads-dedup",
  "smtpCheck": true,
  "excludeCatchAll": false,
  "excludeFreeEmails": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `leads` (type: `string`):

No description

## `summary` (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 = {
    "domains": [],
    "searchQueries": [
        "pest control Austin TX",
        "B2B SaaS marketing agency Austin TX"
    ],
    "targetRoles": [
        "CEO",
        "Founder",
        "VP",
        "Director",
        "Head of"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("askerka00/verified-b2b-leads").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": [],
    "searchQueries": [
        "pest control Austin TX",
        "B2B SaaS marketing agency Austin TX",
    ],
    "targetRoles": [
        "CEO",
        "Founder",
        "VP",
        "Director",
        "Head of",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("askerka00/verified-b2b-leads").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": [],
  "searchQueries": [
    "pest control Austin TX",
    "B2B SaaS marketing agency Austin TX"
  ],
  "targetRoles": [
    "CEO",
    "Founder",
    "VP",
    "Director",
    "Head of"
  ]
}' |
apify call askerka00/verified-b2b-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,askerka00/verified-b2b-leads"
        }
    }
}
```

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/8xHbhPdfGip1fAPfJ/builds/DttC65ShdFVVBK3g7/openapi.json
