# B2B Email List Builder from Google Maps (`prattsolutions/b2b-email-list`) Actor

Build B2B email lists from Google Maps for any industry and city: business emails from each company's website, with phone, address, category, rating and review count in CRM-ready rows.

- **URL**: https://apify.com/prattsolutions/b2b-email-list.md
- **Developed by:** [John Pratt](https://apify.com/prattsolutions) (community)
- **Categories:** Lead generation, 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.50 / 1,000 lead saveds

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

B2B Email List Builder builds **B2B email lists** from Google Maps, for any industry and city. Enter the kinds of business you sell to, such as `marketing agencies` or `manufacturers`, and the cities to cover. It searches Google Maps for every combination, visits each business's website for its emails, and returns **flat, CRM-ready rows** with email, phone, website, address, star rating and review count. Use it to fill your outbound pipeline: cold email, account-based campaigns, partner outreach and market research. Export it as CSV or Excel, or read it from the API.

### What does B2B Email List Builder do?

- **Searches every industry in every location**, from `marketing agencies` to `IT services`, `law firms` or `manufacturers`.
- **Finds emails** on each business's website and puts the first one in an `email` column, with every email found in `emails`.
- **Saves only businesses with an email by default**, so every row is ready for an email campaign, and you don't pay for the rest.
- **Removes duplicates.** A business found by several searches is saved once.
- **Gives flat rows**, one column per field, so the CSV imports straight into a CRM, a cold email tool or a spreadsheet.

### How to build a B2B email list

1. Open the Actor in Apify Console and go to the **Input** tab.
2. Enter your **Locations**, one per line, such as `Denver, CO` or a ZIP code.
3. Enter the **Business types** you sell to, such as `marketing agencies` or `IT services`. Each type is searched in each location.
4. Under **Lead filters**, keep **Only leads with an email** on, and optionally set a minimum rating or number of reviews.
5. Click **Start**. When the run finishes, export the dataset as CSV or Excel from the **Output** tab.

#### Industries that work well

Professional services and B2B suppliers publish an email on their website more often than shops and chains: `marketing agencies`, `IT services`, `accounting firms`, `law firms`, `insurance agencies`, `staffing agencies`, `engineering firms`, `architects`, `manufacturers`, `wholesalers` and `commercial cleaning services`.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `locations` | array of strings | required | Cities, neighborhoods or ZIP codes, such as `Denver, CO`. |
| `businessTypes` | array of strings | required | Kinds of business to find, such as `marketing agencies`. Each is searched in every location. |
| `keywords` | array of strings | `[]` | Extra full Google Maps searches to run as well. |
| `onlyWithEmail` | boolean | `true` | Save only businesses where at least one email was found. |
| `minRating` | number, 0 to 5 | `0` | Skip businesses rated below this. |
| `minReviews` | integer | `0` | Skip businesses with fewer reviews than this. |
| `depth` | integer, 1 or more | `10` | How many times to scroll each search's results list. A higher value returns more businesses but takes longer. The Console form starts at 1 for a quick first run. |
| `maxPlacesPerSearch` | integer | none | Check at most this many places per search, the first ones Google lists. Empty checks every place. The Console form starts at 8 for a quick first run. |
| `language` | string | `en` | Google interface language code, such as `en`, `es`, `de` or `fr`. |

```json
{
    "locations": ["Denver, CO", "Boulder, CO"],
    "businessTypes": ["marketing agencies", "IT services"],
    "minReviews": 5
}
```

### Output

Each business is one item in the dataset. This example is fictional:

```json
{
    "name": "Example Marketing Co.",
    "category": "Marketing agency",
    "phone": "+1 303-555-0109",
    "email": "hello@example.com",
    "emails": ["hello@example.com"],
    "website": "https://www.example.com/",
    "address": "1600 Champa St, Denver, CO 80202, United States",
    "street": "1600 Champa St",
    "city": "Denver",
    "state": "Colorado",
    "postal_code": "80202",
    "country": "US",
    "rating": 4.9,
    "review_count": 64,
    "google_maps_url": "https://www.google.com/maps/place/...",
    "place_id": "ChIJ...",
    "latitude": 39.7473,
    "longitude": -104.9926,
    "query": "marketing agencies in Denver, CO"
}
```

`email` is the first email found on the website, and `emails` lists every one. `rating`, `review_count`, `latitude` and `longitude` are numbers, or `null` when Google has no value.

### How much does it cost?

It costs **$2.50 per 1,000 leads** ($0.0025 per lead saved). With **Only leads with an email** on, businesses without an email aren't saved, so you pay only for leads you can email. Each run also has Apify's standard start fee of $0.00005, and there's no separate charge for compute.

- 2 industries in 2 cities make 4 searches. If they find 320 businesses and 200 have an email, the run costs **$0.50**.
- A list of 1,000 businesses with emails costs **$2.50**.

To cap what a run can cost, set **Maximum cost per run** in the run options (`maxTotalChargeUsd` in the API). When a run reaches the cap, it stops saving leads.

### Send the list to your CRM or email tool

Export the dataset as CSV from the **Output** tab, or from the API with `format=csv`, and import it. Map `email` to the email column, and use `name`, `city` and `review_count` to personalize. To refresh the list on a schedule, use Apify's schedules, or run the Actor from n8n, Make or Zapier with Apify's integrations.

### API

Get your API token in **Apify Console → Settings → API & Integrations**, then start a run:

```bash
curl -X POST "https://api.apify.com/v2/acts/prattsolutions~b2b-email-list/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"businessTypes": ["marketing agencies"], "locations": ["Denver, CO"]}'
```

The response's `data.defaultDatasetId` is the dataset ID. When the run has finished, `GET https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv&token=YOUR_APIFY_TOKEN` returns the leads as CSV.

Python, with the [`apify-client`](https://docs.apify.com/api/client/python) package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("prattsolutions/b2b-email-list").call(
    run_input={"locations": ["Denver, CO"], "businessTypes": ["marketing agencies", "IT services"]}
)
for lead in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(lead["name"], lead["email"], lead["phone"])
```

### FAQ

#### Does it give me decision-makers' personal emails?

It gives the emails each business publishes on its website, usually a general or sales address, and staff addresses when the site shows them. It doesn't guess or verify personal emails. To find named decision-makers, enrich the list in a tool such as Clay.

#### How many businesses will have an email?

Many businesses publish a general or sales email on their website, and many offer only a contact form, which the scraper can't read. Run one city first to see the rate, and turn off **Only leads with an email** if you also want phone-only leads.

#### How are the emails found?

For each business with a website, the scraper loads the page Google links to, usually the home page, and collects the addresses in its `mailto:` links, or else the email addresses written on the page. An email shown only on a separate contact page isn't found.

#### How long does a run take?

Searches run one after another, and visiting each website adds a few seconds per business, so a broad search takes several minutes. Each search is capped at 10 minutes: businesses not reached by then are left out, and the run still succeeds. Use smaller locations, or set **Maximum places per search**, to keep runs short.

#### Why was my first run in a while slow to start?

When nobody has used the scraper for a few weeks, its backend needs a few minutes to wake up. The log shows `Lambda is waking up (...); retrying in 15s.`, and the run then continues normally.

#### Is it legal to send B2B cold email to this list?

The Actor collects only what businesses publish on Google Maps and their own websites. Business emails can still be personal data, and email marketing is regulated: the GDPR and similar laws cover how you store and use the data, and CAN-SPAM and similar laws cover what you send. Collect the data for a legitimate purpose, and check with a lawyer if you're unsure.

# Actor input Schema

## `businessTypes` (type: `array`):

Kinds of businesses to find, one per line, such as "marketing agencies". Each one is searched in every location below as "<type> in <location>".

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

Cities, neighborhoods or ZIP codes to search, one per line, such as "Austin, TX". Smaller areas return more businesses in total, because Google Maps lists around 120 per search.

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

Optional full Google Maps searches to run as well, one per line. Use them for searches that don't fit the business type plus location pattern.

## `onlyWithEmail` (type: `boolean`):

Save only businesses where at least one email was found on their website. You're charged per saved lead, so businesses without an email cost nothing.

## `minRating` (type: `number`):

Skip businesses rated below this, from 1 to 5. 0 keeps every business, including those with no rating yet.

## `minReviews` (type: `integer`):

Skip businesses with fewer Google reviews than this. 0 keeps every business.

## `depth` (type: `integer`):

How many times to scroll each search's results list. Each scroll loads more businesses, so a higher value finds more leads for broad searches but makes each search take longer. The form starts at 1 so a first run finishes quickly. Runs that leave it out use 10.

## `maxPlacesPerSearch` (type: `integer`):

Check at most this many places of each search's results list, the first ones Google lists. Visiting each website takes a few seconds, so a cap keeps runs short and costs predictable. The form starts at 8 for a quick first run. Leave it empty to check every place.

## `language` (type: `string`):

Google interface language code, such as en, es, de or fr. It sets the language of the categories Google returns.

## Actor input object example

```json
{
  "businessTypes": [
    "marketing agencies",
    "IT services",
    "accounting firms",
    "manufacturers"
  ],
  "locations": [
    "Denver, CO",
    "Austin, TX"
  ],
  "keywords": [
    "IT services near downtown Denver"
  ],
  "onlyWithEmail": true,
  "minRating": 0,
  "minReviews": 0,
  "depth": 1,
  "maxPlacesPerSearch": 8,
  "language": "en"
}
```

# Actor output Schema

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

All places in the run's default dataset. Each field is described in the dataset schema.

# 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 = {
    "businessTypes": [
        "marketing agencies"
    ],
    "locations": [
        "Denver, CO"
    ],
    "depth": 1,
    "maxPlacesPerSearch": 8
};

// Run the Actor and wait for it to finish
const run = await client.actor("prattsolutions/b2b-email-list").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 = {
    "businessTypes": ["marketing agencies"],
    "locations": ["Denver, CO"],
    "depth": 1,
    "maxPlacesPerSearch": 8,
}

# Run the Actor and wait for it to finish
run = client.actor("prattsolutions/b2b-email-list").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 '{
  "businessTypes": [
    "marketing agencies"
  ],
  "locations": [
    "Denver, CO"
  ],
  "depth": 1,
  "maxPlacesPerSearch": 8
}' |
apify call prattsolutions/b2b-email-list --silent --output-dataset

```

## MCP server setup

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

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/OpacQ21cjcvffuXQm/builds/PO9WOdoN2d5rlp5Bz/openapi.json
