# 📍 Enrich Google Maps Dataset with Contacts (`simpleapi/enrich-google-maps-dataset-with-contacts`) Actor

📍 Enrich Google Maps Dataset with Contacts to add verified phone numbers, emails & business details. 🚀 Perfect for lead gen, B2B sales, market research & outreach—boost accuracy and speed with smarter location-based data.

- **URL**: https://apify.com/simpleapi/enrich-google-maps-dataset-with-contacts.md
- **Developed by:** [SimpleAPI](https://apify.com/simpleapi) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 📍 Enrich Google Maps Dataset with Contacts

Turn plain Google Maps search queries into a **ready-to-use lead list**. This
Actor discovers businesses on Google Maps and then crawls each one's website to
harvest **emails, phone numbers and social-media profiles** — all in a single
run, with no Google API key required.

> Search `restaurants in New York, NY` → get back every place **plus** its
> emails, phones, Instagram, Facebook, X/Twitter, LinkedIn, YouTube, TikTok and
> Pinterest links.

### 🤔 Why Choose This Actor?

- **Places + contacts in one pass** — no need to chain two separate scrapers.
- **No API key, no quota** — talks to Google Maps' own internal endpoint.
- **Smart anti-blocking** — starts direct and only escalates to datacenter, then
  residential proxies when needed, then sticks there. You never overpay for
  proxies you don't need.
- **Clean, strict extraction** — CDN junk, asset hashes and tracking domains are
  filtered out of emails; social links are validated against per-network rules.
- **Live results** — every place is saved the moment it is enriched, organised
  into five tidy table views.

### ✨ Key Features

| Feature | Detail |
|---------|--------|
| 🔎 Multi-query search | Bulk Google Maps queries, paginated automatically |
| ✨ Contact enrichment | Homepage + contact/about/imprint pages crawled |
| 📧 Emails | Strict pattern, junk-domain & asset filtering |
| 📞 Phones | Confirmed (`tel:`) and best-effort detected numbers |
| 📱 Socials | Instagram, Facebook, X, LinkedIn, YouTube, TikTok, Pinterest |
| 🗺️ Geo data | Address parsing, plus codes, lat/lng |
| 🛡️ Proxy ladder | direct → datacenter → residential (sticky) |

### ⚙️ Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchStrings` | array | — | **Required.** Google Maps queries (include the location). |
| `maxPlaces` | integer | `40` | Max places per query. |
| `enrichContacts` | boolean | `true` | Crawl websites for contacts. |
| `maxPagesPerWebsite` | integer | `5` | Homepage + up to N-1 sub-pages. |
| `language` | string | `en` | Google UI language (`hl`). |
| `countryCode` | string | `us` | Country (`gl`) + residential geo-target. |
| `concurrency` | integer | `8` | Parallel website crawls. |
| `requestDelay` | number | `1.2` | Seconds between result pages. |
| `proxyConfiguration` | object | Apify Proxy | Proxy settings / fallback source. |

#### Example input

```json
{
  "searchStrings": ["restaurants in New York, NY", "coffee shops in Austin, TX"],
  "maxPlaces": 40,
  "enrichContacts": true,
  "maxPagesPerWebsite": 5,
  "language": "en",
  "countryCode": "us",
  "concurrency": 8,
  "requestDelay": 1.2,
  "proxyConfiguration": { "useApifyProxy": true }
}
````

### 📤 Output

Each dataset item is one place. Example (trimmed):

```json
{
  "title": "Manhatta",
  "categoryName": "New American restaurant",
  "address": "28 Liberty St 60th floor, New York, NY 10005",
  "city": "New York",
  "state": "New York",
  "postalCode": "10005",
  "countryCode": "US",
  "plusCode": "PX5R+5C New York",
  "website": "https://www.manhattarestaurant.com/restaurant-menu/",
  "phone": "(212) 230-5788",
  "totalScore": 4.7,
  "location": { "lat": 40.707997, "lng": -74.008882 },
  "placeId": "ChIJoTXWl8dbwokRpKA2BJFVsGA",
  "cid": "0x89c25bc797d635a1:0x60b055910436a0a4",
  "categories": ["New American restaurant", "Fine dining restaurant"],
  "media": ["https://lh3.googleusercontent.com/..."],
  "contactDetails": {
    "emails": [],
    "phones": ["(212) 230-5788"],
    "phonesUncertain": [],
    "instagrams": ["https://www.instagram.com/manhatta_nyc/"],
    "facebooks": ["https://www.facebook.com/ManhattaRestaurant/"],
    "twitters": ["https://twitter.com/manhatta_nyc"],
    "linkedIns": [], "youtubes": [], "tiktoks": [], "pinterests": []
  }
}
```

Results are grouped into five table views: **🏢 Overview**, **📍 Location**,
**✉️ Contacts**, **📱 Social media**, and **🖼️ Media & IDs**.

### 🚀 How to Use (Apify Console)

1. Log in at <https://console.apify.com> → **Actors**.
2. Open **Enrich Google Maps Dataset with Contacts**.
3. Enter one or more **Search queries** (include the location).
4. Optionally tune max places, enrichment and proxy.
5. Click **Start** and watch results stream into the log in real time.
6. Open the **Output** tab and export to JSON / CSV / XLSX.

### 🤖 Use via API

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"searchStrings":["restaurants in New York, NY"],"maxPlaces":20}'
```

### 💡 Best Use Cases

- Building local-business **lead lists** for outreach.
- **Market research** on a category in a city.
- Enriching an existing place list with **contact + social** data.

### 💳 Pricing

Pay-per-event: you are billed per **enriched place** delivered to the dataset,
plus the standard Actor start. Disable `enrichContacts` for lighter,
places-only runs.

### ❓ FAQ

**Do I need a Google API key?** No. The Actor uses Google Maps' own internal
endpoint, so there are no API keys or quotas to manage.

**Why are some emails empty?** Many businesses publish only social links or a
contact form. We never invent data — empty means none was found on the site.

**Will I get blocked?** The Actor starts without a proxy and only escalates to
datacenter then residential proxies if Google or a website pushes back, then
stays on residential for the rest of the run.

### ⚖️ Legal

Only publicly available data is collected. You are responsible for complying
with GDPR/CCPA, anti-spam laws and target-site terms when using the results.

### 📬 Support

Found a bug or want a new field? Open an issue on the Actor's **Issues** tab.

# Actor input Schema

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

One or more Google Maps search queries. Always include the location in the text, e.g. "restaurants in New York, NY" or "dentists in Austin, TX".

## `maxPlaces` (type: `integer`):

Maximum number of places to collect for each search query.

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

Homepage + up to N-1 contact / about / imprint pages crawled per business website.

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

Google interface language (hl).

## `countryCode` (type: `string`):

Two-letter country code used by Google (gl) and for residential geo-targeting.

## `enrichContacts` (type: `boolean`):

Crawl each place's website for emails, phones and social-media profiles. Turn off for a faster places-only run.

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

Proxy used for residential geo-targeting and fallbacks. The actor starts direct (no proxy) and automatically escalates to datacenter, then residential, only if the target blocks requests.

## Actor input object example

```json
{
  "searchStrings": [
    "restaurants in New York, NY"
  ],
  "maxPlaces": 10,
  "maxPagesPerWebsite": 5,
  "language": "en",
  "countryCode": "us",
  "enrichContacts": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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": [
        "restaurants in New York, NY"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("simpleapi/enrich-google-maps-dataset-with-contacts").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": ["restaurants in New York, NY"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("simpleapi/enrich-google-maps-dataset-with-contacts").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "restaurants in New York, NY"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call simpleapi/enrich-google-maps-dataset-with-contacts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=simpleapi/enrich-google-maps-dataset-with-contacts",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "📍 Enrich Google Maps Dataset with Contacts",
        "description": "📍 Enrich Google Maps Dataset with Contacts to add verified phone numbers, emails & business details. 🚀 Perfect for lead gen, B2B sales, market research & outreach—boost accuracy and speed with smarter location-based data.",
        "version": "0.1",
        "x-build-id": "gZJfvSCTxchUJ4Snp"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/simpleapi~enrich-google-maps-dataset-with-contacts/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-simpleapi-enrich-google-maps-dataset-with-contacts",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/simpleapi~enrich-google-maps-dataset-with-contacts/runs": {
            "post": {
                "operationId": "runs-sync-simpleapi-enrich-google-maps-dataset-with-contacts",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/simpleapi~enrich-google-maps-dataset-with-contacts/run-sync": {
            "post": {
                "operationId": "run-sync-simpleapi-enrich-google-maps-dataset-with-contacts",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "searchStrings"
                ],
                "properties": {
                    "searchStrings": {
                        "title": "🔎 Search queries",
                        "minItems": 1,
                        "type": "array",
                        "description": "One or more Google Maps search queries. Always include the location in the text, e.g. \"restaurants in New York, NY\" or \"dentists in Austin, TX\".",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPlaces": {
                        "title": "🎯 Max places per query",
                        "minimum": 1,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Maximum number of places to collect for each search query.",
                        "default": 10
                    },
                    "maxPagesPerWebsite": {
                        "title": "📄 Max pages per website",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Homepage + up to N-1 contact / about / imprint pages crawled per business website.",
                        "default": 5
                    },
                    "language": {
                        "title": "🗣️ Language",
                        "enum": [
                            "en",
                            "es",
                            "fr",
                            "de",
                            "it",
                            "pt",
                            "nl",
                            "pl",
                            "ru",
                            "ja",
                            "zh-CN"
                        ],
                        "type": "string",
                        "description": "Google interface language (hl).",
                        "default": "en"
                    },
                    "countryCode": {
                        "title": "🌍 Country",
                        "enum": [
                            "us",
                            "gb",
                            "ca",
                            "au",
                            "de",
                            "fr",
                            "es",
                            "it",
                            "nl",
                            "in",
                            "br",
                            "mx",
                            "jp"
                        ],
                        "type": "string",
                        "description": "Two-letter country code used by Google (gl) and for residential geo-targeting.",
                        "default": "us"
                    },
                    "enrichContacts": {
                        "title": "✨ Enrich contacts from websites",
                        "type": "boolean",
                        "description": "Crawl each place's website for emails, phones and social-media profiles. Turn off for a faster places-only run.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "🛡️ Proxy configuration",
                        "type": "object",
                        "description": "Proxy used for residential geo-targeting and fallbacks. The actor starts direct (no proxy) and automatically escalates to datacenter, then residential, only if the target blocks requests.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
