# Google Maps Email Scraper (`santamaria-automations/google-maps-email-scraper`) Actor

Search Google Maps by keyword and location. Each place comes with emails and phone numbers found on its website, plus address, rating, reviews count, categories and opening hours. Pay per delivered place.

- **URL**: https://apify.com/santamaria-automations/google-maps-email-scraper.md
- **Developed by:** [NanoScrape](https://apify.com/santamaria-automations) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 place with contacts

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 Scraper

Search Google Maps by keyword and location. For each business you get its place details plus the email addresses and phone numbers listed on its website, in one row.

Typical uses: B2B lead lists, local market research, sales prospecting by city and category.

### What you get

One row per place:

| Field | Description |
|-------|-------------|
| `title` | Business name |
| `place_id`, `cid` | Google place identifiers |
| `category` | First category Google lists for the place, for example "Coffee shop" |
| `categories` | All categories Google lists for the place (the listing order does not mark a primary one) |
| `address` | Full address |
| `phone` | Phone number from the Maps listing |
| `website` | Business website (tracking parameters removed) |
| `latitude` / `longitude` | Coordinates |
| `rating` / `review_count` | Average rating and number of reviews |
| `status` | `OPERATIONAL`, `CLOSED_TEMPORARILY`, `CLOSED_PERMANENTLY` or `UNKNOWN` |
| `open_hours` | Opening hours by weekday, for example `{"Monday": ["11:30-14:30", "18:00-23:00"], "Tuesday": []}` (empty list = closed). `null` when the listing has none |
| `emails_from_website` | Email addresses found on the website, own-domain addresses first (empty list if none) |
| `phones_from_website` | Phone numbers found on the website, one entry per number, international format when the country is known (empty list if none) |
| `maps_url` | Link to the Maps listing |
| `search_query` | The query that returned the place |
| `scraped_at` | ISO timestamp |

A place is returned once per run, even if several queries find it. Not every business publishes an email address, so `emails_from_website` can be empty. If several places share one website, they get the same emails.

In a test on 20 places from two searches (Steuerberater Zürich, dentist Amsterdam; 10 places each), 16 had at least one email address on their website. Results depend on the category and region.

### Input

| Parameter | Default | Description |
|-----------|---------|-------------|
| `searchStrings` | two example queries | Search queries, include the location |
| `maxResults` | 5 | Places per query, 1 to 120 |
| `maxPagesPerWebsite` | 5 | Pages read per website (homepage plus contact, imprint and about pages), 1 to 20 |
| `language` | `en` | Language code for the results |
| `requestDelay` | 500 | Delay between result pages in ms |
| `proxyConfiguration` | default | Optional proxy settings |

Numbers can be given as text ("30"), and queries as a single comma separated string. Empty input runs the two example queries with 5 places each.

#### Example input

```json
{
  "searchStrings": ["Steuerberater Zürich", "dentist Amsterdam"],
  "maxResults": 50,
  "maxPagesPerWebsite": 3
}
```

### Pricing

Pay per result: one charge for each delivered place and a small one-time start charge that is billed only once the first place is delivered (a run with no results costs nothing). Current prices are on the Pricing tab. A run stops before a place that would exceed your maximum total charge.

### Use with AI assistants

Call it from Claude or another MCP client through the Apify MCP server:

> "Use the google-maps-email-scraper to find 30 coffee shops in Amsterdam and list their email addresses"

### Tips

- Put the city in the query: "restaurants Paris", not just "restaurants".
- Set `maxPagesPerWebsite` to 1 for faster runs when homepage emails are enough.
- Use specific categories ("Steuerberater", "dentist") rather than broad ones to get more businesses with a website.

### Data protection

This actor returns only data that is publicly visible on the source pages. Results can include personal data, such as names, phone numbers, email addresses and addresses of private persons, sole traders or contact persons. Where the source labels an entry type, it is included so you can filter the results yourself.

You are responsible for using the data lawfully, including the GDPR/DSGVO, national data-protection laws and unfair-competition rules (e.g. UWG) for marketing and outreach.

# Actor input Schema

## `searchStrings` (type: `array`):

Search queries, one per line. Include the location, for example 'dentists in Amsterdam' or 'Steuerberater Zürich'.

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

Maximum number of places to return per search query (1 to 120). Places already returned for an earlier query are skipped.

## `maxPagesPerWebsite` (type: `integer`):

Maximum number of pages to crawl per business website when extracting emails. Higher values find more emails but take longer.

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

Language code for Maps results (e.g. en, de, fr, nl, es, it, pt). Uses ISO 639-1 codes.

## `requestDelay` (type: `integer`):

Delay between Maps pagination requests in milliseconds.

## `proxyConfiguration` (type: `object`):

Optional proxy settings. Leave the default unless you need results from a specific region.

## Actor input object example

```json
{
  "searchStrings": [
    "coffee shops Amsterdam",
    "dentists in Berlin"
  ],
  "maxResults": 5,
  "maxPagesPerWebsite": 5,
  "language": "en",
  "requestDelay": 500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

One record per Maps result, enriched with emails and phones crawled from the business website

# 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 = {
    "searchStrings": [
        "coffee shops Amsterdam",
        "dentists in Berlin"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/google-maps-email-scraper").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 = { "searchStrings": [
        "coffee shops Amsterdam",
        "dentists in Berlin",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/google-maps-email-scraper").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 '{
  "searchStrings": [
    "coffee shops Amsterdam",
    "dentists in Berlin"
  ]
}' |
apify call santamaria-automations/google-maps-email-scraper --silent --output-dataset

```

## MCP server setup

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

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/DyDPCGyAbEsfJiRpI/builds/2zF6Pkf6I5rg3J3uq/openapi.json
