# B2B Decision Makers & Work Email Finder from Public Sources (`dataspryva/b2b-leads-finder`) Actor

Build B2B lead lists from public team pages, Wikidata, SEC, Companies House, GitHub and LinkedIn guest pages. Filter by title, seniority, department, industry, size and location; keep published and pattern-verified work emails with sources.

- **URL**: https://apify.com/dataspryva/b2b-leads-finder.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Lead generation, Automation, Integrations
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

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

Learn more: https://docs.apify.com/actors/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

## B2B Decision Makers & Work Email Finder from Public Sources

Build a B2B prospect list from the open web instead of a rented contact database. This actor reads public company team, leadership and about pages, Wikidata, SEC EDGAR filings, UK Companies House, GitHub organizations and public LinkedIn guest/search surfaces. It normalizes every person into a searchable lead with title, seniority, department, location and company context. It never asks for a login, cookie, API key or paid data plan.

Work-email handling is evidence-first. An address is emitted as `workEmail` only when it is published on a public page (status `valid`) or when a generated pattern candidate passes MX + SMTP checks (`valid` or `catch-all`). Pattern candidates that could not be mailbox-verified remain in `emailCandidates` with their pattern and confidence, so nothing is presented as a verified address when it is only a guess.

### What you can do

| Mode | Use it for |
|---|---|
| `companyLeads` | Give one or more company domains or names and get their public decision makers and employees. |
| `search` | Filter by job title, seniority, department, industry, size, country, region, city, keywords or company. Without a company, Wikidata shortlists matching companies and LinkedIn search surfaces matching public profiles. |
| `personLookup` | Resolve a name plus a company domain or name to public profiles and email-pattern candidates. |
| `profileLookup` | Paste public `linkedin.com/in/` URLs (bulk/CSV-friendly) and enrich them with public profile data. |
| `emailLookup` | Give work email addresses and resolve the company domain, public identity (including Gravatar when present) and mailbox status. |
| `fromUrl` | Paste an Apollo people-search URL or a LinkedIn Sales Navigator lead-search URL. Its filters are parsed and run on public sources without an account or seat. |

### Sources and what each contributes

- **Company website** — leadership, team, management, about, contact and press pages; JSON-LD Person/Organization, microdata, staff cards, photos, published emails and phones.
- **Wikidata** — company industry, headquarters, size, official site, key people, founders, board members and their photos/LinkedIn IDs.
- **SEC EDGAR** — officers and directors from recent Forms 3/4/5 and proxy statements, plus ticker, CIK, SIC industry and headquarters for US registrants.
- **UK Companies House** — company profile and current/former officer appointments, role, nationality and country of residence.
- **GitHub** — organization members, public profiles and public push events that expose author name/email pairs for pattern evidence.
- **LinkedIn via public search** — DuckDuckGo Lite results for `site:linkedin.com/in` queries; no login or cookie is used.
- **LinkedIn guest profiles** — public profile pages for name, headline, location, photo, employer and education. LinkedIn returns HTTP 999 to ordinary clients, so the actor first requests the same public page through standard link-preview crawler user agents.
- **Gravatar** — public profile lookup for an email hash in `emailLookup` mode.

### Input reference

| Input | Default | Notes |
|---|---|---|
| `mode` | `companyLeads` | `search`, `companyLeads`, `personLookup`, `profileLookup`, `emailLookup` or `fromUrl`. |
| `jobTitles` | – | Any title or synonym phrase. |
| `seniorities` | – | Normalized seniority multi-select. |
| `departments` | – | Normalized department multi-select. |
| `companyNames` | – | Resolved to a public website. |
| `pastCompanies` | – | Keep people whose public profile lists one of these employers. |
| `companyDomains` | – | Primary company input for `companyLeads`. |
| `excludeCompanyDomains` | – | Drop these domains. |
| `excludeJobTitles` | – | Drop titles or headlines containing any phrase. |
| `industries` | – | Industry filter and Wikidata shortlist. |
| `companySizes` | – | Employee band multi-select. |
| `countries` | – | Country names or ISO codes. |
| `regions` | – | States, provinces or regions. |
| `cities` | – | City names. |
| `locations` | – | Free-text location strings. |
| `keywords` | – | Every keyword must appear. |
| `searchQuery` | – | Extra keyword convenience field. |
| `names` | – | Names for `personLookup`. |
| `profileUrls` | – | Public LinkedIn profile URLs. |
| `emails` | – | Email addresses for `emailLookup`. |
| `sourceUrl` | – | Apollo or Sales Navigator URL for `fromUrl`. |
| `maxLeads` | 25 | Hard result cap, 1-1000. |
| `maxPerCompany` | 10 | Per-company cap, 1-200. |
| `maxPagesPerCompany` | 8 | Website pages read per company, 1-30. |
| `dataSources` | – | Any of website, wikidata, sec, companiesHouse, github, linkedinSearch, linkedinProfiles. |
| `verifyEmails` | true | Try MX/SMTP on pattern candidates; published addresses are always evidence. |
| `requireEmail` | false | Drop leads without a valid, catch-all or published email. |
| `includePhones` | false | Add published phone numbers. |
| `includePersonalEmails` | false | Add published free-mail addresses. |
| `includeCompanySummary` | true | Write per-company counts to the run summary. |

### Input examples

Company leads:

```json
{
  "mode": "companyLeads",
  "companyDomains": ["hubspot.com", "monzo.com"],
  "seniorities": ["founder", "c_level", "vp", "director", "head"],
  "maxLeads": 50,
  "maxPerCompany": 15,
  "includeCompanySummary": true
}
```

Title search with a location:

```json
{
  "mode": "search",
  "jobTitles": ["Head of Sales", "VP Revenue"],
  "locations": ["London, United Kingdom"],
  "companySizes": ["51-200", "201-500"],
  "maxLeads": 100
}
```

Apollo or Sales Navigator URL:

```json
{
  "mode": "fromUrl",
  "sourceUrl": "https://app.apollo.io/#/people?personTitles[]=CTO&personLocations[]=Germany&organizationDomains[]=stripe.com"
}
```

### Output fields

Each dataset row is one person:

`fullName`, `firstName`, `lastName`, `headline`, `jobTitle`, `seniority`, `department`, `city`, `region`, `country`, `location`, `profileUrl`, `photoUrl`, `companyName`, `companyDomain`, `companyLinkedinUrl`, `companyIndustry`, `companySize`, `companyHq`, `companyTicker`, `companyWikidataId`, `companyCik`, `companyNumber`, `companyDescription`, `workEmail`, `emailStatus`, `emailConfidence`, `emailPattern`, `emailEvidence`, `emailSourceUrl`, `emailCandidates`, `phones`, `personalEmails`, `sources`, `sourceUrls`, `firstSeenDate`, `scrapedAt`, `dataQuality`.

The run summary in the key-value store adds per-company counts (`peopleFound`, `emailsVerified`, `catchAllEmails`, `leadsWithCandidates`, inferred pattern and evidence addresses), filters used, ignored URL filters and the limitations that applied.

### Email status meanings

- `valid` — published on a public page or accepted by the mailbox server; `emailEvidence` says which.
- `catch-all` — the domain accepts random recipients, so the address is deliverable but not person-confirmed.
- `unverifiable` — MX exists but SMTP is unavailable from the run egress. This appears only for a user-supplied address in `emailLookup`.
- `invalid` — no mail exchanger.
- `unverified-pattern` — candidate only; kept in `emailCandidates`, never promoted to `workEmail`.

### Practical notes

- The default prefill is a two-lead HubSpot run over its public team pages, Wikidata and its public LinkedIn company page. It is intentionally the cheapest run that still returns records.
- `maxPagesPerCompany` controls website depth. More pages means better team coverage and more email-pattern evidence, but a longer run.
- `requireEmail` is strict: a lead without a valid, catch-all or published work email is dropped.
- Seniority and department come from the public title. When a GitHub member has no title, the department is inferred as engineering and flagged in `dataQuality`.
- Company size is normalized to an employee band when the source gives a range.
- Every URL in `sourceUrls` is a public source reference; `emailCandidates` always cite the pattern and confidence.
- No user credentials, cookies, proxy configuration or third-party enrichment API is required.

### Known limits

- Public sources cover leadership, board and technical teams unevenly. Some companies publish no team page at all.
- LinkedIn guest pages can throttle or return an auth wall; the actor first retries through link-preview crawler user agents, then falls back to public search snippets, and keeps the record only when a public identity is present.
- SMTP port 25 is blocked on some Apify cloud egress. In that case the actor still resolves MX records and published addresses, but it cannot mailbox-verify a generated candidate on that run.
- A company must publish at least one name/email pair (or a GitHub commit email) before a personal pattern can be inferred. Role addresses such as `sales@` do not reveal a personal pattern.
- Email lookup returns the public identity attached to an address, not the contents of a mailbox. Private mailboxes stay private.
- Search engines and social networks change their anti-bot behavior; the actor records what it could fetch and never fabricates a missing field.

### FAQ

**Is this a scraped contact database?** No. It is a live research actor: every run reads public pages and public records, then de-duplicates and normalizes the result.

**Does it need an Apollo or LinkedIn account?** No. `fromUrl` only parses the filters in the URL you paste; the search runs on public sources.

**Why do some leads have no email?** Because no public address matched the person and no pattern could be inferred or verified. The record still contains the identity, company and source trail, and any pattern candidates appear under `emailCandidates`.

**What happens to role addresses?** They are treated as company contact addresses, not as a person's work email.

# Actor input Schema

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

Choose how to find leads.

## `jobTitles` (type: `array`):

Titles to match, for example CEO, Head of Sales, Software Engineer. Synonyms such as revenue for sales are also matched.

## `seniorities` (type: `array`):

Normalized seniority levels to keep.

## `departments` (type: `array`):

Departments or functions to keep.

## `companyNames` (type: `array`):

Company names to resolve to a public website and scan for people.

## `pastCompanies` (type: `array`):

Keep people whose public profile lists one of these past employers.

## `companyDomains` (type: `array`):

Domains to scan, for example hubspot.com or monzo.com. Required in companyLeads unless companyNames is set.

## `excludeCompanyDomains` (type: `array`):

Drop leads from these domains.

## `excludeJobTitles` (type: `array`):

Drop leads whose title or headline contains any of these phrases.

## `industries` (type: `array`):

Industry terms for search mode. When no company is given, Wikidata is used to shortlist matching companies.

## `companySizes` (type: `array`):

Employee-count bands to keep.

## `countries` (type: `array`):

Country names or ISO codes to keep.

## `regions` (type: `array`):

States, provinces or regions to keep.

## `cities` (type: `array`):

Cities to keep.

## `locations` (type: `array`):

Any location text such as London, United Kingdom or New York, NY.

## `keywords` (type: `array`):

Extra phrases that must appear in the title, headline, bio or company fields.

## `searchQuery` (type: `string`):

Convenience free-text keyword added to keywords, for example fintech payments.

## `names` (type: `array`):

Names to look up in personLookup mode.

## `profileUrls` (type: `array`):

Public linkedin.com/in/ URLs to resolve in profileLookup mode.

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

Email addresses to resolve to a company, public profile and email status in emailLookup mode.

## `sourceUrl` (type: `string`):

An Apollo people-search URL or a LinkedIn Sales Navigator lead-search URL whose filters are parsed and run on public sources.

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

Maximum number of lead records to return.

## `maxPerCompany` (type: `integer`):

Maximum number of leads from one company.

## `maxPagesPerCompany` (type: `integer`):

Maximum public pages to read per company website.

## `dataSources` (type: `array`):

Public sources to use. All are cookieless.

## `verifyEmails` (type: `boolean`):

Try MX and SMTP verification for generated email candidates. Published addresses are always treated as evidence.

## `requireEmail` (type: `boolean`):

Drop leads without a valid, catch-all or published work email.

## `includePhones` (type: `boolean`):

Add phone numbers published next to a person's name.

## `includePersonalEmails` (type: `boolean`):

Add personal free-mail addresses published next to a person's name.

## `includeCompanySummary` (type: `boolean`):

Write per-company and per-search counts, patterns and caveats to the run summary key-value record.

## Actor input object example

```json
{
  "mode": "companyLeads",
  "jobTitles": [],
  "seniorities": [],
  "departments": [],
  "companyNames": [],
  "pastCompanies": [],
  "companyDomains": [
    "hubspot.com"
  ],
  "excludeCompanyDomains": [],
  "excludeJobTitles": [],
  "industries": [],
  "companySizes": [],
  "countries": [],
  "regions": [],
  "cities": [],
  "locations": [],
  "keywords": [],
  "searchQuery": "",
  "names": [],
  "profileUrls": [],
  "emails": [],
  "sourceUrl": "",
  "maxLeads": 2,
  "maxPerCompany": 2,
  "maxPagesPerCompany": 4,
  "dataSources": [
    "website",
    "wikidata",
    "linkedinProfiles"
  ],
  "verifyEmails": false,
  "requireEmail": false,
  "includePhones": false,
  "includePersonalEmails": false,
  "includeCompanySummary": true
}
```

# Actor output Schema

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

Dataset containing one record per public person, plus email-pattern candidates and source evidence.

## `summary` (type: `string`):

Per-company counts, inferred email patterns, sources used and limitations.

# 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 = {
    "mode": "companyLeads",
    "jobTitles": [],
    "seniorities": [],
    "departments": [],
    "companyNames": [],
    "pastCompanies": [],
    "companyDomains": [
        "hubspot.com"
    ],
    "excludeCompanyDomains": [],
    "excludeJobTitles": [],
    "industries": [],
    "companySizes": [],
    "countries": [],
    "regions": [],
    "cities": [],
    "locations": [],
    "keywords": [],
    "searchQuery": "",
    "names": [],
    "profileUrls": [],
    "emails": [],
    "sourceUrl": "",
    "maxLeads": 2,
    "maxPerCompany": 2,
    "maxPagesPerCompany": 4,
    "dataSources": [
        "website",
        "wikidata",
        "linkedinProfiles"
    ],
    "verifyEmails": false,
    "requireEmail": false,
    "includePhones": false,
    "includePersonalEmails": false,
    "includeCompanySummary": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/b2b-leads-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 = {
    "mode": "companyLeads",
    "jobTitles": [],
    "seniorities": [],
    "departments": [],
    "companyNames": [],
    "pastCompanies": [],
    "companyDomains": ["hubspot.com"],
    "excludeCompanyDomains": [],
    "excludeJobTitles": [],
    "industries": [],
    "companySizes": [],
    "countries": [],
    "regions": [],
    "cities": [],
    "locations": [],
    "keywords": [],
    "searchQuery": "",
    "names": [],
    "profileUrls": [],
    "emails": [],
    "sourceUrl": "",
    "maxLeads": 2,
    "maxPerCompany": 2,
    "maxPagesPerCompany": 4,
    "dataSources": [
        "website",
        "wikidata",
        "linkedinProfiles",
    ],
    "verifyEmails": False,
    "requireEmail": False,
    "includePhones": False,
    "includePersonalEmails": False,
    "includeCompanySummary": True,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/b2b-leads-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 '{
  "mode": "companyLeads",
  "jobTitles": [],
  "seniorities": [],
  "departments": [],
  "companyNames": [],
  "pastCompanies": [],
  "companyDomains": [
    "hubspot.com"
  ],
  "excludeCompanyDomains": [],
  "excludeJobTitles": [],
  "industries": [],
  "companySizes": [],
  "countries": [],
  "regions": [],
  "cities": [],
  "locations": [],
  "keywords": [],
  "searchQuery": "",
  "names": [],
  "profileUrls": [],
  "emails": [],
  "sourceUrl": "",
  "maxLeads": 2,
  "maxPerCompany": 2,
  "maxPagesPerCompany": 4,
  "dataSources": [
    "website",
    "wikidata",
    "linkedinProfiles"
  ],
  "verifyEmails": false,
  "requireEmail": false,
  "includePhones": false,
  "includePersonalEmails": false,
  "includeCompanySummary": true
}' |
apify call dataspryva/b2b-leads-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/b2b-leads-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/9Hn0yAS5aAC5QwhEo/builds/qNd4ZtRVXRsyGL9qM/openapi.json
