# Google Maps Email Extractor & Contact Scraper (`prattsolutions/google-maps-email-extractor`) Actor

Find business emails on Google Maps. Search by business type and location, and the scraper visits each business's website and returns the emails on it with name, phone, address, website and rating. Pay only for places with an email.

- **URL**: https://apify.com/prattsolutions/google-maps-email-extractor.md
- **Developed by:** [John Pratt](https://apify.com/prattsolutions) (community)
- **Categories:** Lead generation, Marketing
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 place scrapeds

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

Google Maps Email Extractor finds **business emails from Google Maps listings**. Search the way you would in Google Maps, such as `dentists in Austin, TX`. The scraper opens every place on the list, visits the website each place gives, and returns the **emails on it with the full listing**: name, phone, website, address, category, star rating, review count, opening hours, coordinates and Google Place ID. Export the contacts as CSV, Excel or JSON, or read them from the API.

### What does Google Maps Email Extractor do?

- **Extracts emails from business websites.** Google Maps doesn't show emails, but most businesses list a website, and many websites show an email. The scraper reads them for you.
- **Returns the whole Google Maps listing with each email:** phone, website, full address and its parts, category, rating, review count, opening hours, popular times, a sample of reviews and Google's place IDs.
- **Saves only places with an email by default**, so you pay only for contacts you can use.
- **Saves each business once per run**, even when several of your searches find it.
- **Runs on the Apify platform:** start it from Apify Console or the API, schedule runs, get a webhook when a run finishes, and connect the results to Apify integrations.

### How does it find emails on Google Maps?

1. It runs your search on Google Maps and opens every place on the results list.
2. For each place with a website, it loads the website's home page.
3. It collects the addresses in the page's `mailto:` links. When there are none, it collects the email addresses written anywhere on the page.
4. It saves the place with its `emails` list.

Websites on Facebook, Instagram or Twitter are skipped, because those pages don't show emails without a login. Only the page Google links to is read, usually the home page, so an email that appears only on a separate contact page isn't found.

### How to extract emails from Google Maps

1. Open the Actor in Apify Console and go to the **Input** tab.
2. Enter your searches in **Search queries**, one per line: a business type plus a location, such as `plumbers in Denver, CO`.
3. Leave **Only places with emails** on to skip places without one, or turn it off to get every place.
4. Click **Start**.
5. When the run finishes, open the **Output** tab. The **Contacts** view shows name, emails, phone, website and address. Export the dataset as CSV, Excel or JSON.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `keywords` | array of strings | required | Google Maps searches, one per item. A business type plus a location returns the places Google lists for it. A business name plus its address returns that one listing. |
| `onlyWithEmail` | boolean | `true` | Save only places where at least one email was found. |
| `depth` | integer, 1 or more | `10` | How many times to scroll each search's results list. A higher value returns more places for broad searches 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
{
    "keywords": ["dentists in Austin, TX", "orthodontists in Round Rock, TX"],
    "onlyWithEmail": true,
    "depth": 10,
    "language": "en"
}
```

#### Tips for getting more emails

- **Search small areas.** Google Maps lists around 120 places per search, so search one neighborhood or ZIP code at a time to cover a city.
- **Pick industries that publish emails.** Professional services, clinics, agencies, contractors and B2B suppliers list an email on their website far more often than restaurants and shops.
- **Turn off Only places with emails** when you also want the phone numbers of businesses without an email.

### Output

Each place is one item in the dataset, with every field of the Google Maps listing plus `emails`. This example is shortened, and the business is fictional:

```json
{
    "query": "dentists in Austin, TX",
    "title": "Example Dental Studio",
    "category": "Dentist",
    "emails": ["hello@example.com", "appointments@example.com"],
    "phone": "+1 512-555-0142",
    "website": "https://www.example.com/",
    "address": "100 Main St, Austin, TX 78701, United States",
    "review_rating": "4.800000",
    "review_count": "212",
    "complete_address": {
        "street": "100 Main St",
        "city": "Austin",
        "postal_code": "78701",
        "state": "Texas",
        "country": "US"
    },
    "latitude": "30.267153",
    "longitude": "-97.743057",
    "place_id": "ChIJ...",
    "link": "https://www.google.com/maps/place/..."
}
```

- **`emails` is a list**, in the order found. It's empty for a place with no website or no email on it (saved only when **Only places with emails** is off).
- **Numbers come as text.** `review_rating`, `review_count`, `latitude` and `longitude` are strings.
- **Every field is described** in the Actor's dataset schema, which Apify shows to API clients and AI agents.

### How much does it cost to extract emails from Google Maps?

It costs **$2.50 per 1,000 places** ($0.0025 per place saved). With **Only places with emails** on, places without an email aren't saved, so you pay only for places that have one. Each run also has Apify's standard start fee of $0.00005. There's no separate charge for compute.

- A search that finds 60 dentists, 35 of them with an email, costs **$0.09**.
- 1,000 places with emails cost **$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 places.

### Use the Google Maps Email Extractor API

Run the Actor and read its results with the [Apify API](https://docs.apify.com/api/v2). Get your API token in **Apify Console → Settings → API & Integrations**.

Start a run and get the places in one request. Apify ends this request with HTTP `408` after 300 seconds, so use it for a few businesses, and the client libraries below for broad searches:

```bash
curl -X POST "https://api.apify.com/v2/acts/prattsolutions~google-maps-email-extractor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["Example Dental Studio, 100 Main St, Austin, TX"]}'
```

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/google-maps-email-extractor").call(
    run_input={"keywords": ["dentists in Austin, TX"]}
)
for place in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(place["title"], place["emails"], place["phone"])
```

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

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('prattsolutions/google-maps-email-extractor').call({
    keywords: ['dentists in Austin, TX'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const place of items) console.log(place.title, place.emails.join(', '));
```

### FAQ

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

It depends on the industry. Businesses that sell to other businesses and professional services publish an email on their home page much more often than restaurants, shops and chains. Run one search first to see the rate for your niche.

#### Why did a place with a website come back without an email?

The website shows no email on the page Google links to, it shows one only on a separate contact page or in a contact form, it hides it in an image, or the site didn't load.

#### How long does a run take?

Searches run one after another. Visiting each website adds a few seconds per place, so a broad search takes several minutes. Each search is capped at 10 minutes: places not reached by then are left out, and the run still succeeds. Split big areas into smaller searches to stay under the cap, or set **Maximum places per search** to check only the first places of each list.

#### Can I extract the email of one specific business?

Yes. Search for the business name plus its address, such as `Example Dental Studio, 100 Main St, Austin, TX`, to get that one listing and its emails.

#### 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 extract emails from Google Maps?

The Actor collects only what businesses publish on Google Maps and on their own websites. Business emails can still be personal data, for example when a sole trader uses their own name, and laws like the GDPR and CAN-SPAM regulate how you store them and send them marketing. Collect them only for a legitimate purpose, and check with a lawyer if you're unsure.

# Actor input Schema

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

What to search on Google Maps, one query per line, worded as you would type it into Google Maps. Use a business type plus a location ("dentists in Austin, TX") to get the places Google lists for it, or a business name plus its address to get that single listing. Queries run one after another, and each result is tagged with the query that found it.

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

Save only places where at least one email was found. You're charged per saved place, so places without an email cost nothing. Turn it off to also get the places without one.

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

How many times to scroll each query's results list. Each scroll loads more places, so a higher value returns more businesses for broad queries but makes each query 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 text Google returns, such as categories and opening hours.

## Actor input object example

```json
{
  "keywords": [
    "dentists in Austin, TX",
    "Katz's Delicatessen, 205 E Houston St, New York"
  ],
  "onlyWithEmail": true,
  "depth": 10,
  "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 = {
    "keywords": [
        "dentists in Austin, TX"
    ],
    "depth": 1,
    "maxPlacesPerSearch": 8
};

// Run the Actor and wait for it to finish
const run = await client.actor("prattsolutions/google-maps-email-extractor").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 = {
    "keywords": ["dentists in Austin, TX"],
    "depth": 1,
    "maxPlacesPerSearch": 8,
}

# Run the Actor and wait for it to finish
run = client.actor("prattsolutions/google-maps-email-extractor").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 '{
  "keywords": [
    "dentists in Austin, TX"
  ],
  "depth": 1,
  "maxPlacesPerSearch": 8
}' |
apify call prattsolutions/google-maps-email-extractor --silent --output-dataset

```

## MCP server setup

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

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/Jgp5p1hLssxuqm88F/builds/Gluu7xz43BaRdMgHo/openapi.json
