# LeadHarvest — B2B Contact Enrichment (`imran.cultmarketer/leadharvest`) Actor

Real-time B2B contact enrichment from 10+ zero-cost sources. $0.025/lead. 20 leads free.

- **URL**: https://apify.com/imran.cultmarketer/leadharvest.md
- **Developed by:** [Imran Shaikh](https://apify.com/imran.cultmarketer) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.025 / lead enriched

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## LeadHarvest — B2B Contact Enrichment

**Find and verify B2B contact emails from company domains. $0.025/lead. 20 leads free.**

LeadHarvest enriches company domains into verified B2B contacts using 10+ zero-cost sources — website crawling, SPF/DNS analysis, SSL certificates, WHOIS, GitHub footprints, and Gravatar validation. No API keys required to start.

---

### What It Does

Give LeadHarvest a company domain (and optionally a contact name) and it returns:

- ✅ Verified email address (Gravatar-confirmed or MX-validated)
- ✅ Email confidence score (0–100) and grade (A/B/C/D)
- ✅ Company name, description, industry, tech stack
- ✅ Domain age, email provider, HQ country
- ✅ Social links, logo URL

**With contact name:** Generates 12 targeted permutations (patrick@, p.collison@, patrick.collison@, etc.) and validates each against Gravatar.

**Without contact name:** Attempts generic company emails (info@, contact@, hello@) via MX validation.

---

### Pricing

| Volume | Cost |
|--------|------|
| First 20 leads | **Free** |
| Beyond 20 | **$0.025 per enriched lead** |

8× cheaper than Hunter.io ($0.20/lead) and 20× cheaper than Apollo ($0.50/lead).

---

### Input

| Field | Required | Description |
|-------|----------|-------------|
| Domain List | Yes (batch mode) | List of company domains to enrich |
| Single Domain | Yes (API mode) | One domain for API/agent calls |
| Contact Name | Optional | Full name → enables targeted email permutations |
| Min Confidence Score | Optional | Filter out low-quality results (default: 0) |
| Require Verified Email | Optional | Drop leads with no confirmed email |
| Suppression Domains | Optional | Skip these domains entirely |
| Suppression Emails | Optional | Drop leads matching these emails |
| GitHub Token | Optional | Boosts discovery for developer companies |

---

### Output (per domain)

```json
{
  "domain": "stripe.com",
  "email": "patrick@stripe.com",
  "email_grade": "A",
  "confidence_score": 82,
  "company_name": "Stripe",
  "company_description": "Online payment processing for internet businesses",
  "industry": "Fintech",
  "tech_stack": ["AWS", "React", "Ruby"],
  "email_provider": "Google Workspace",
  "domain_age_days": 5840,
  "hq_country": "United States",
  "first_name": "Patrick",
  "last_name": "Collison",
  "sources_used": ["website_crawler", "whois", "email_permutator", "gravatar"],
  "schema_version": "1.0"
}
````

***

### Use Cases

**SDR teams:** You have a list of target companies from LinkedIn, a trade show, or a Google search. You need emails. Feed the domain list in — get back verified contacts in minutes.

**AI agents (Claude, n8n, Zapier, Make):** Call LeadHarvest via API mid-workflow. Pass `domain` + `contactName`, get back a verified email. Wire into your outreach sequence automatically.

**Bulk enrichment:** Export a CSV of domains from any source, paste into Domain List, run overnight, download the enriched dataset.

***

### How To Use

#### Batch (Domain List)

1. Set **Input Mode** → `Domain List (batch)`
2. Add your domains to **Domain List**
3. Optionally add a **Contact Name** if you know who you're targeting
4. Click **Save & Start**

#### API / Agent Call

```json
{
  "inputMode": "singleDomain",
  "domain": "stripe.com",
  "contactName": "Patrick Collison"
}
```

#### MCP (Claude, Cursor)

LeadHarvest is available as an MCP tool. In Claude or any MCP-compatible client:

```
Use the LeadHarvest tool to find the email for Patrick Collison at stripe.com
```

***

### Email Sources (in waterfall order)

1. Website crawl — extracts emails embedded in HTML/JS
2. SSL certificate — organization emails in cert metadata
3. SPF/DNS records — mail provider and format signals
4. Email format lookup — derives pattern from known data
5. Name permutations — generates and validates 12 variants
6. GitHub footprints — developer company commit emails
7. Gravatar validation — confirms email is attached to a real profile
8. MX validation — verifies the domain accepts email for a candidate

***

### Limitations

- **Phone numbers:** Not available from free sources. Not included.
- **People discovery:** LeadHarvest enriches domains you already know — it does not search for companies by industry or job title (that requires a paid contact database).
- **JS-heavy sites:** Some company sites render entirely in JavaScript. Crawl may return limited data for these.
- **Rate limits:** Free tier uses no paid APIs. GitHub token recommended for developer-facing companies.

***

### FAQ

**Does it work without a contact name?**
Yes — for generic company emails (info@, contact@, hello@). For personal emails, a name is required.

**How is confidence score calculated?**
Based on data richness: +35 for verified email, +15 for Gravatar-confirmed (Grade A), +15 for company description found, +8 for tech stack detected, +7 for established domain (>1 year old), and breadth bonuses for multiple sources confirming the same data.

**Is it GDPR compliant?**
LeadHarvest only sources publicly available information. Use the suppression list fields to honour opt-out requests.

**Can I call it from n8n or Zapier?**
Yes — use the Apify HTTP API. Full API docs at https://docs.apify.com/api/v2.

# Actor input Schema

## `inputMode` (type: `string`):

How you are providing targets. Use domainList for bulk CSV/batch runs. Use singleDomain for API and agent calls (Claude, n8n, Zapier).

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

Company domains to enrich. One per line. E.g. stripe.com, hubspot.com. Used when Input Mode is Domain List.

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

A single company domain. Used when Input Mode is Single Domain. Ideal for API and AI agent calls.

## `contactName` (type: `string`):

Full name of the person to find at this company. E.g. Patrick Collison. When provided, LeadHarvest generates and validates targeted email permutations (patrick@, p.collison@, etc.). Without a name, only generic company emails are attempted.

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

Maximum number of email candidates to return per domain. Default is 1 (best match only). Set higher to get multiple contacts per company.

## `minConfidenceScore` (type: `integer`):

Only return leads with a confidence score at or above this threshold. 0 = return everything. 50 = verified only. 70 = high confidence only.

## `requireVerifiedEmail` (type: `boolean`):

When enabled, only returns leads where the email was confirmed via Gravatar or MX validation. Leads with no verified email are dropped.

## `outputFormat` (type: `string`):

Controls which fields appear in the output dataset.

## `suppressionDomains` (type: `array`):

Domains to skip entirely. Useful for excluding existing customers or competitors. E.g. yourcustomer.com.

## `suppressionEmails` (type: `array`):

If any of these emails appear in the output, the lead is dropped. Useful for GDPR opt-out lists.

## `skipAlreadyEnrichedDomains` (type: `boolean`):

When enabled, domains already in the cache from a previous run are skipped. Saves quota and cost on repeated runs.

## `githubToken` (type: `string`):

Personal access token for GitHub API. Increases rate limit from 60 to 5,000 requests/hour. Improves email discovery for developer-facing companies. Create at github.com/settings/tokens.

## `respectRobotsTxt` (type: `boolean`):

When enabled, LeadHarvest skips website crawling for domains that disallow it in robots.txt. Slightly reduces data quality but improves compliance.

## Actor input object example

```json
{
  "inputMode": "domainList",
  "maxLeadsPerDomain": 1,
  "minConfidenceScore": 0,
  "requireVerifiedEmail": false,
  "outputFormat": "full",
  "skipAlreadyEnrichedDomains": true,
  "respectRobotsTxt": true
}
```

# 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("imran.cultmarketer/leadharvest").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("imran.cultmarketer/leadharvest").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 imran.cultmarketer/leadharvest --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=imran.cultmarketer/leadharvest",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "LeadHarvest — B2B Contact Enrichment",
        "description": "Real-time B2B contact enrichment from 10+ zero-cost sources. $0.025/lead. 20 leads free.",
        "version": "0.0",
        "x-build-id": "VrlEZE9uAYVGtfxtw"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/imran.cultmarketer~leadharvest/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-imran.cultmarketer-leadharvest",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/imran.cultmarketer~leadharvest/runs": {
            "post": {
                "operationId": "runs-sync-imran.cultmarketer-leadharvest",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/imran.cultmarketer~leadharvest/run-sync": {
            "post": {
                "operationId": "run-sync-imran.cultmarketer-leadharvest",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "inputMode": {
                        "title": "Input Mode",
                        "enum": [
                            "domainList",
                            "singleDomain"
                        ],
                        "type": "string",
                        "description": "How you are providing targets. Use domainList for bulk CSV/batch runs. Use singleDomain for API and agent calls (Claude, n8n, Zapier).",
                        "default": "domainList"
                    },
                    "domains": {
                        "title": "Domain List",
                        "type": "array",
                        "description": "Company domains to enrich. One per line. E.g. stripe.com, hubspot.com. Used when Input Mode is Domain List.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "domain": {
                        "title": "Single Domain",
                        "type": "string",
                        "description": "A single company domain. Used when Input Mode is Single Domain. Ideal for API and AI agent calls."
                    },
                    "contactName": {
                        "title": "Contact Name (optional)",
                        "type": "string",
                        "description": "Full name of the person to find at this company. E.g. Patrick Collison. When provided, LeadHarvest generates and validates targeted email permutations (patrick@, p.collison@, etc.). Without a name, only generic company emails are attempted."
                    },
                    "maxLeadsPerDomain": {
                        "title": "Max Leads Per Domain",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Maximum number of email candidates to return per domain. Default is 1 (best match only). Set higher to get multiple contacts per company.",
                        "default": 1
                    },
                    "minConfidenceScore": {
                        "title": "Minimum Confidence Score",
                        "minimum": 0,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Only return leads with a confidence score at or above this threshold. 0 = return everything. 50 = verified only. 70 = high confidence only.",
                        "default": 0
                    },
                    "requireVerifiedEmail": {
                        "title": "Require Verified Email",
                        "type": "boolean",
                        "description": "When enabled, only returns leads where the email was confirmed via Gravatar or MX validation. Leads with no verified email are dropped.",
                        "default": false
                    },
                    "outputFormat": {
                        "title": "Output Format",
                        "enum": [
                            "full",
                            "email_only",
                            "essential"
                        ],
                        "type": "string",
                        "description": "Controls which fields appear in the output dataset.",
                        "default": "full"
                    },
                    "suppressionDomains": {
                        "title": "Suppression: Skip These Domains",
                        "type": "array",
                        "description": "Domains to skip entirely. Useful for excluding existing customers or competitors. E.g. yourcustomer.com.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "suppressionEmails": {
                        "title": "Suppression: Skip These Emails",
                        "type": "array",
                        "description": "If any of these emails appear in the output, the lead is dropped. Useful for GDPR opt-out lists.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "skipAlreadyEnrichedDomains": {
                        "title": "Skip Already-Enriched Domains",
                        "type": "boolean",
                        "description": "When enabled, domains already in the cache from a previous run are skipped. Saves quota and cost on repeated runs.",
                        "default": true
                    },
                    "githubToken": {
                        "title": "GitHub Token (optional)",
                        "type": "string",
                        "description": "Personal access token for GitHub API. Increases rate limit from 60 to 5,000 requests/hour. Improves email discovery for developer-facing companies. Create at github.com/settings/tokens."
                    },
                    "respectRobotsTxt": {
                        "title": "Respect robots.txt",
                        "type": "boolean",
                        "description": "When enabled, LeadHarvest skips website crawling for domains that disallow it in robots.txt. Slightly reduces data quality but improves compliance.",
                        "default": true
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
