# B2B Lead List Builder (`moltsets/lead-list-builder`) Actor

Search MoltSets for people or companies by job title, seniority, industry, location and company size, and save them as a lead list with graded business emails. Bring your own MoltSets API key.

- **URL**: https://apify.com/moltsets/lead-list-builder.md
- **Developed by:** [MoltSets](https://apify.com/moltsets) (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 Lead List Builder: search people and companies with graded business emails

Build B2B lead lists from the MoltSets database. Search for **people** by job title, seniority, department, industry, location and company size, and get each contact's business email with a deliverability grade, LinkedIn URL and employer. Or search for **companies** by industry, NAICS code, size, revenue and location to build an account list. Suppress the accounts you already have, preview the match count for 1 token, then save up to 10,000 results. Powered by [MoltSets](https://moltsets.com).

- **People or companies**: one Actor for contact lists and account lists.
- **Precise filters**: job title, seniority, department, industry, LinkedIn industry, NAICS code, employee count, revenue, country, state and city. Every filter takes a list, matched as any of its values.
- **Graded business emails**: every contact's email comes with an A to F send-safety grade and the date it was last validated.
- **Suppression list**: exclude up to 100 company domains (customers, competitors, your own) plus countries, industries, seniority levels and company sizes. Excluded records are never charged.
- **Preview for 1 token**: see how many records match your filters before you pay for a full list.
- **Hard cap on spend**: **Maximum results** limits what one run can cost.

### Bring your own MoltSets API key

This Actor calls the [MoltSets API](https://developer.moltsets.com) with your own key, so MoltSets data is billed to your MoltSets account and Apify only charges for compute (the Actor itself is free).

1. [Create a free MoltSets account](https://app.moltsets.com/signup?utm_source=apify\&utm_medium=actor\&utm_campaign=lead-list-builder).
2. Copy a key from [API keys](https://app.moltsets.com/dashboard/api_keys). Keys start with `ms_`.
3. Paste it into the **MoltSets API key** field. Apify stores it encrypted and the Actor never logs it.

### What it costs

**You only pay for hits.** A lookup that finds nothing costs no tokens. It still counts towards your MoltSets Fair Use request limits.

| Lookup | MoltSets tool | Cost |
| :--- | :--- | :--- |
| People search | `search_people` | 1 token per result returned |
| Company search | `search_companies` | 1 token per result returned |

Costs are read live from your account (`get_billing`) at the start of every run, and the log shows a worst-case estimate before any lookups are made. If your balance is lower than the worst case the run still starts, because misses are free; if tokens run out it stops gracefully and keeps everything found so far.

Token costs are the published MoltSets rates at the time of writing. A search that matches nothing is free. The worst case for a run is **Maximum results** tokens. The first call of every run fetches a single result to read the total match count, and that result is kept, so it costs nothing extra.

### Input

| Field | Name | Default | Description |
| :--- | :--- | :--- | :--- |
| `apiKey` | MoltSets API key |  | Required. Your MoltSets API key (starts with `ms_`). No account yet? [Sign up free](https://app.moltsets.com/signup?utm_source=apify\&utm_medium=actor\&utm_campaign=lead-list-builder), then copy a key from [API keys](https://app.moltsets.com/dashboard/api_keys). MoltSets bills your MoltSets account directly, and only for hits. |
| `searchType` | Search for | `"people"` (`people`, `companies`) | People returns contacts with their business email and employer. Companies returns accounts with firmographics. Filters that do not apply to the chosen search are ignored, and the log says which. |
| `jobTitles` | Job titles |  | Roles to match, for example `Head of Marketing` or `Account Executive`. A list matches any of them. One or two word titles need every word; longer titles allow one or two words to differ, so `VP of Sales` also finds `VP, Sales`. Extra words are fine: `Account Executive` matches `Senior Account Executive`. People search only. |
| `seniority` | Seniority |  | Seniority levels to include. People search only. |
| `departments` | Departments |  | Departments to include. People search only. |
| `companyNames` | Company names |  | Employers by name, for example `Acme` (matches `Acme Corporation`). Use company domains instead when you have them; they are more precise. People search only. |
| `cities` | Cities |  | Exact city names, for example `Austin`. Combine with a state or country, since city names repeat. People search only. |
| `query` | Keywords |  | People: a person's name, or loose keywords searched across name, title, company and headline (prefer Job titles for roles). Companies: words in the company name. |
| `companyDomains` | Company domains |  | Website domains, for example `acme.com` (URLs work too). People: contacts at these companies. Companies: these exact companies. Up to 100. |
| `industries` | Industries |  | Broad industry buckets. |
| `linkedinIndustries` | LinkedIn industries |  | LinkedIn's own industry labels, exactly as LinkedIn writes them, for example `Software Development` or `Staffing and Recruiting`. Finer-grained than Industries. |
| `naicsCodes` | NAICS codes |  | NAICS codes at any level, for example `54` (Professional Services) or `511210` (Software Publishers). |
| `employeeRanges` | Company size |  | Employee count bands. People: contacts at companies of this size. |
| `revenueRanges` | Company revenue |  | Annual revenue bands. People: contacts at companies with this revenue. |
| `countries` | Countries |  | Full English country names, for example `United States` (not `US`). Pick from the list or type your own. People: where the person is. Companies: where the company's team is based. |
| `states` | States or regions |  | State names or abbreviations, for example `Texas` or `TX`, `Ontario` or `ON`. |
| `excludeCompanyDomains` | Exclude company domains |  | Your suppression list: existing customers, competitors, your own domain. Up to 100. Excluded records are never charged. |
| `excludeCountries` | Exclude countries |  | Countries to leave out. People search only. |
| `excludeStates` | Exclude states or regions |  | States or regions to leave out, for example `California`. People search only. |
| `excludeIndustries` | Exclude industries |  | Industries to leave out. Records with no industry on file are kept. |
| `excludeSeniority` | Exclude seniority |  | Seniority levels to leave out, for example Intern and Entry. Records with no seniority on file are kept. People search only. |
| `excludeEmployeeRanges` | Exclude company sizes |  | Employee count bands to leave out. |
| `excludeRevenueRanges` | Exclude revenue bands |  | Revenue bands to leave out. Company search only. |
| `maxResults` | Maximum results | `25` | Hard cap on results saved, and so on tokens spent: each result returned costs 1 token. MoltSets pages through at most 10,000 results per search. |
| `previewOnly` | Preview only | `false` | Fetch a single result and the total number of matches, to check your filters for 1 token before saving a full list. |
| `maxRetryWaitSecs` | Longest Fair Use wait | `120` | If MoltSets asks the run to wait for a Fair Use window up to this long, it waits and carries on. Longer waits stop the run gracefully and keep the results so far. |

Example input:

```json
{
    "apiKey": "ms_XXXXXXXXXXX",
    "searchType": "people",
    "jobTitles": [
        "Head of Marketing",
        "VP Marketing"
    ],
    "seniority": [
        "Head",
        "VP"
    ],
    "employeeRanges": [
        "51-200",
        "201-500"
    ],
    "countries": [
        "United States",
        "Canada"
    ],
    "excludeCompanyDomains": [
        "acme.com"
    ],
    "maxResults": 250
}
```

### Output

One row per person or company, in MoltSets rank order (`rank` 1 is the strongest match). People and company searches share the company columns. The **People** and **Companies** views show the columns for each search type.

Example row:

```json
{
    "rank": 1,
    "full_name": "Morgan Hebb",
    "title": "Account Executive",
    "seniority": "Senior",
    "functional_area": "Sales",
    "city": "Chicago",
    "state": "Illinois",
    "country": "United States",
    "linkedin_url": "https://linkedin.com/in/morganhebb",
    "business_email": "morgan.hebb@packback.co",
    "business_email_risk_score": "A",
    "business_email_validated_at": "2026-08-25",
    "company_name": "Packback",
    "company_domain": "packback.co",
    "company_employee_count": 101,
    "company_industry": "Information Technology",
    "company_linkedin_industry": "E-Learning Providers",
    "company_naics_codes": "5112; 51121; 511210",
    "match_score": 9.17
}
```

- The example shows a selection of columns from a people search. Every row has all the columns for its search type; see the **All fields** view.
- **Risk scores** grade send safety: `A` validated deliverable, `B` known engagement, `C` catch-all domain, `D` never send (bounce, complaint or trap), `F` no signal. Suppress `D`; treat `C` and `F` as unknown rather than bad.
- **Not every contact has an email.** The run summary counts how many do, by grade.
- **Total matches** is in the log and in `SUMMARY`. MoltSets caps it at 10,000, so 10,000 means at least 10,000.

A run summary (hits and misses per lookup, tokens used, skipped lookups and why, stop reason) is saved as `SUMMARY` in the run's key-value store and shown in the run's status message.

### Chaining into other Actors

Use a company search to build an account list, then paste its domains into **Company domains** for a people search at those accounts (up to 100 per run). Contacts from a people search can go straight to the [LinkedIn Email and Phone Finder](https://apify.com/moltsets/linkedin-email-phone-finder) for mobile numbers and personal emails: choose this run's dataset under **Read from a dataset** there. The `linkedin_url` column is detected automatically.

From code, with the [Apify API client](https://docs.apify.com/api/client/js/):

```js
import { ApifyClient } from 'apify-client';

const apify = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await apify.actor('moltsets/lead-list-builder').call({
    apiKey: process.env.MOLTSETS_API_KEY,
    searchType: 'people',
    jobTitles: ['Head of Marketing'],
    employeeRanges: ['51-200'],
    countries: ['United States'],
    maxResults: 100,
});

const { items } = await apify.dataset(run.defaultDatasetId).listItems();
```

### Limits

- **Exact-match filters**: country, state, city, industry, seniority, department, size and revenue values must match MoltSets' values exactly, including capitalisation. A preview that shows 0 matches almost always means a misspelt value.
- **10,000 results per search**: MoltSets pages through at most 10,000 results. Split bigger lists by country, size or industry.
- **Fair Use (Search)**: searches fall under the MoltSets [Fair Use Policy for Search](https://moltsets.com/fair-use-policy-search/), which limits records and requests per rolling window. If MoltSets asks the run to wait less than **Longest Fair Use wait** (default 120 seconds) it waits and continues; otherwise it stops gracefully and keeps its results. Free accounts get a one-time search trial.
- **Out of tokens**: the run stops and keeps everything saved so far.
- **One search per run**: results are fetched 25 at a time, one page after another.

### Other MoltSets Actors

- LinkedIn Email and Phone Finder (coming soon): business and personal emails, mobile phones and hashes from LinkedIn URLs.
- Email Finder by Name and Company (coming soon): business emails from a name and company domain.
- Reverse Email Lookup (coming soon): the person and LinkedIn profile behind an email address.
- IP to Company Lookup (coming soon): the company behind an IPv4 address.
- LinkedIn Profile Enricher (coming soon): full profile, emails and company firmographics from LinkedIn URLs.
- LinkedIn Profile Finder (coming soon): LinkedIn profile URLs from an email or a name and company.
- Audience Match Keys (coming soon): hashed emails and mobile ad IDs for customer match audiences.

### Support

- MoltSets API docs: [developer.moltsets.com](https://developer.moltsets.com)
- Account, billing and plan questions: support@moltsets.com
- Bugs in this Actor: open an issue on the **Issues** tab.

# Actor input Schema

## `apiKey` (type: `string`):

Required. Your MoltSets API key (starts with <code>ms\_</code>). No account yet? <a href="https://app.moltsets.com/signup?utm_source=apify&utm_medium=actor&utm_campaign=lead-list-builder" target="_blank">Sign up free</a>, then copy a key from <a href="https://app.moltsets.com/dashboard/api_keys" target="_blank">API keys</a>. MoltSets bills your MoltSets account directly, and only for hits.

## `searchType` (type: `string`):

People returns contacts with their business email and employer. Companies returns accounts with firmographics. Filters that do not apply to the chosen search are ignored, and the log says which.

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

Roles to match, for example <code>Head of Marketing</code> or <code>Account Executive</code>. A list matches any of them. One or two word titles need every word; longer titles allow one or two words to differ, so <code>VP of Sales</code> also finds <code>VP, Sales</code>. Extra words are fine: <code>Account Executive</code> matches <code>Senior Account Executive</code>. <b>People search only.</b>

## `seniority` (type: `array`):

Seniority levels to include. <b>People search only.</b>

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

Departments to include. <b>People search only.</b>

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

Employers by name, for example <code>Acme</code> (matches <code>Acme Corporation</code>). Use company domains instead when you have them; they are more precise. <b>People search only.</b>

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

Exact city names, for example <code>Austin</code>. Combine with a state or country, since city names repeat. <b>People search only.</b>

## `query` (type: `string`):

People: a person's name, or loose keywords searched across name, title, company and headline (prefer Job titles for roles). Companies: words in the company name.

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

Website domains, for example <code>acme.com</code> (URLs work too). People: contacts at these companies. Companies: these exact companies. Up to 100.

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

Broad industry buckets.

## `linkedinIndustries` (type: `array`):

LinkedIn's own industry labels, exactly as LinkedIn writes them, for example <code>Software Development</code> or <code>Staffing and Recruiting</code>. Finer-grained than Industries.

## `naicsCodes` (type: `array`):

NAICS codes at any level, for example <code>54</code> (Professional Services) or <code>511210</code> (Software Publishers).

## `employeeRanges` (type: `array`):

Employee count bands. People: contacts at companies of this size.

## `revenueRanges` (type: `array`):

Annual revenue bands. People: contacts at companies with this revenue.

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

Full English country names, for example <code>United States</code> (not <code>US</code>). Pick from the list or type your own. People: where the person is. Companies: where the company's team is based.

## `states` (type: `array`):

State names or abbreviations, for example <code>Texas</code> or <code>TX</code>, <code>Ontario</code> or <code>ON</code>.

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

Your suppression list: existing customers, competitors, your own domain. Up to 100. Excluded records are never charged.

## `excludeCountries` (type: `array`):

Countries to leave out. <b>People search only.</b>

## `excludeStates` (type: `array`):

States or regions to leave out, for example <code>California</code>. <b>People search only.</b>

## `excludeIndustries` (type: `array`):

Industries to leave out. Records with no industry on file are kept.

## `excludeSeniority` (type: `array`):

Seniority levels to leave out, for example Intern and Entry. Records with no seniority on file are kept. <b>People search only.</b>

## `excludeEmployeeRanges` (type: `array`):

Employee count bands to leave out.

## `excludeRevenueRanges` (type: `array`):

Revenue bands to leave out. <b>Company search only.</b>

## `maxResults` (type: `integer`):

Hard cap on results saved, and so on tokens spent: each result returned costs 1 token. MoltSets pages through at most 10,000 results per search.

## `previewOnly` (type: `boolean`):

Fetch a single result and the total number of matches, to check your filters for 1 token before saving a full list.

## `maxRetryWaitSecs` (type: `integer`):

If MoltSets asks the run to wait for a Fair Use window up to this long, it waits and carries on. Longer waits stop the run gracefully and keep the results so far.

## Actor input object example

```json
{
  "searchType": "people",
  "jobTitles": [
    "Head of Marketing"
  ],
  "employeeRanges": [
    "51-200",
    "201-500"
  ],
  "countries": [
    "United States"
  ],
  "maxResults": 25,
  "previewOnly": false,
  "maxRetryWaitSecs": 120
}
```

# Actor output Schema

## `results` (type: `string`):

One row per person or company found.

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

Counts, tokens used, skipped lookups and stop reason.

# 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 = {
    "jobTitles": [
        "Head of Marketing"
    ],
    "employeeRanges": [
        "51-200",
        "201-500"
    ],
    "countries": [
        "United States"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("moltsets/lead-list-builder").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 = {
    "jobTitles": ["Head of Marketing"],
    "employeeRanges": [
        "51-200",
        "201-500",
    ],
    "countries": ["United States"],
}

# Run the Actor and wait for it to finish
run = client.actor("moltsets/lead-list-builder").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 '{
  "jobTitles": [
    "Head of Marketing"
  ],
  "employeeRanges": [
    "51-200",
    "201-500"
  ],
  "countries": [
    "United States"
  ]
}' |
apify call moltsets/lead-list-builder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moltsets/lead-list-builder"
        }
    }
}
```

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/dXQMrvYypuBJiFd6e/builds/os8tHmgr8X4LspHN0/openapi.json
