# Google Maps Leads & Email Extractor (`aimen_ch/google-maps-email-extractor`) Actor

Extract Google Maps business leads with emails, phone numbers, WhatsApp links and social profiles for a whole city, region or country. Goes past the 120-result limit. Pay only for saved leads and emails found, from $3.50 per 1,000.

- **URL**: https://apify.com/aimen_ch/google-maps-email-extractor.md
- **Developed by:** [Aimen Chenomi](https://apify.com/aimen_ch) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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

## Google Maps Leads & Email Extractor

Get business leads from Google Maps **with their emails**, for a whole city, region or country in one run.
Enter a business type and a location. The Actor finds every matching place on Google Maps, visits each business
website, and returns a lead list with emails, phone numbers, WhatsApp links and social media profiles.
You can export it to Excel, CSV or JSON.

**From $3.50 per 1,000 leads.** You pay only for leads saved to your dataset, and only for emails that were actually found. No add-ons, no filter fees.

### What you get for each lead

| | | |
|---|---|---|
| 📌 Business name | 🏷️ Category | ⭐ Rating and review count |
| 📧 **Emails** (from the business website) | 📞 Phone (as shown + international format) | 💬 **WhatsApp link** |
| 🌐 Website | 📘 Facebook · 📸 Instagram · 💼 LinkedIn | 🐦 X/Twitter · 🎵 TikTok · ▶️ YouTube |
| 📍 Address | 🌍 Latitude / longitude | 🔗 Google Maps link + place ID |

### Why use it

- **Whole-area coverage.** Google Maps shows at most ~120 results per search. This Actor looks up the real
  boundary of your location on OpenStreetMap, searches the whole area, and splits busy areas into smaller ones
  again and again. A city with 3,000 dentists returns about 3,000 dentists, not 120.
- **Emails included.** Each website is checked (home page, then contact/about pages if needed). On a typical
  run, **40–60% of leads with a website** get an email.
- **Ask for emails, not places.** Set *Stop after N leads with email* to 500, and the run stops when it has 500
  leads with email. You don't have to guess how many places that takes.
- **Only pay for usable leads.** Turn on *Only save leads with an email*. Leads without an email are left out
  and cost nothing.
- **Clean phone numbers.** Local numbers like `0555 12 34 56` become `+213555123456`, and mobile numbers get a
  ready-to-click WhatsApp link. The country is detected from your location.
- **Fast.** About 1,000 leads with emails in 3 minutes.
- **Leads are saved during the run.** If you stop a run early, the leads found so far are still in your
  dataset.

### How to use it

1. Click **Try for free**.
2. Enter one or more **keywords**, one business type per line (`dentist`, `plumber`, `real estate agency`).
3. Enter a **location**: a city, region or country, e.g. `Austin, Texas` or `Lyon, France`.
4. Set **Max new places** (or *Stop after N leads with email*) and click **Start**.
5. When the run finishes, open the **Output** tab and export to Excel, CSV or JSON.

#### Example input

Find 500 accountants in New York that have an email. Leads without an email aren't saved or charged:

```json
{
  "keywords": ["accountant"],
  "location": "New York, USA",
  "maxEmails": 500,
  "maxResults": 0,
  "onlyWithEmail": true
}
```

#### Tips for keywords

- Write the business type without the location: `dentist`, not `dentist in Austin`.
- Use different keywords, not synonyms. `restaurant, bar, cafe` finds more places. `cafe, coffee shop, coffee`
  mostly finds the same places again and makes the run slower.
- Places found by several keywords are saved once.

### Output example

```json
{
  "name": "Example Dental Clinic",
  "category": "Dentist",
  "phone": "0557 12 34 56",
  "phoneIntl": "+213557123456",
  "whatsapp": "https://wa.me/213557123456",
  "website": "https://www.example-dental.com/",
  "emails": "contact@example-dental.com, dr.amine@example-dental.com",
  "facebook": "https://www.facebook.com/exampledental",
  "instagram": "https://www.instagram.com/exampledental",
  "linkedin": "",
  "twitter": "",
  "tiktok": "",
  "youtube": "",
  "address": "12 Rue Larbi Ben M'hidi, Oran 31000",
  "rating": 4.8,
  "reviews": 63,
  "lat": 35.6965715,
  "lng": -0.6128167,
  "keyword": "dentist",
  "location": "Oran",
  "mapsUrl": "https://www.google.com/maps?ftid=0xd7e89d96d649d89:0xaa16f52f38e788a7",
  "placeId": "0xd7e89d96d649d89:0xaa16f52f38e788a7"
}
```

The **Leads** table view shows the most useful columns. Exports include all fields.

### Pricing

This Actor uses **pay per event** pricing. You pay for results, not for compute time or proxies:

| Event | Price |
|---|---|
| Lead saved to the dataset | $3.50 / 1,000 |
| Extra for a lead with at least one email | $2.50 / 1,000 |

**You pay for emails found, not for emails searched.** Website checks are free. The email price applies only to
leads where an email was actually found. Filters (like keeping only places inside your area) are free too.

**Examples**

- 1,000 places, about half with an email: **≈ $4.75**
- 1,000 places, email finding turned off: **$3.50**
- 1,000 leads that all have an email (*Only save leads with an email* on): **$6.00**. Places without an email
  are searched, checked and left out at no cost.

Platform usage is included. You can set a **maximum cost per run** in the run options. The Actor stops at that
amount and keeps everything it found until then. Apify's free plan includes monthly credit, enough for a few
thousand leads.

### Input options

| Option | What it does |
|---|---|
| Keywords | Business types to search, one per line |
| Location | City, region or country; the whole area is searched |
| Max new places | Stop after this many unique places (0 = no limit) |
| Stop after N leads with email | Stop once this many leads have an email |
| Only save leads with an email | Leave out leads without email (they're not charged) |
| Only keep places inside the location boundary | Drop results Google shows from just outside the area |
| Find emails & social links on websites | Turn website checks off for a faster, cheaper places-only list |
| Default phone country code | Overrides the detected country for local numbers |
| Google Maps language | `en`, `fr`, `ar`… for categories and addresses |

Proxy and speed settings are filled in for you. Leave them as they are unless the log shows many blocked requests.

### FAQ

**Why do some leads have no email?**
Many local businesses don't have a website, or don't show an email on it. Some only have a Facebook or Instagram
page, which can't be read without logging in. Those profile links are still saved in the `facebook` / `instagram`
columns.

**Can I search a whole country?**
Yes. Enter the country name. The area is split automatically. For large countries, combine it with *Max new
places* or *Stop after N leads with email* to control the cost.

**Does it get reviews, photos or opening hours?**
No. This Actor is built for lead generation: complete contact details for every place in your area. It returns the rating and review
count, not the review texts.

**Can I use it through the API, or with Make, Zapier or Google Sheets?**
Yes. Like every Apify Actor, you can run it through the Apify API (Node.js / Python clients), schedule it, or
connect it to Make, Zapier, n8n, Google Sheets and webhooks. See the **API** tab.

**Is it legal to scrape Google Maps?**
This Actor collects business information that is publicly listed on Google Maps and on the businesses' own
websites. Emails and phone numbers can still be personal data (for example, a sole trader's email). If you use
them for outreach, follow the rules that apply to you, such as GDPR in the EU or CAN-SPAM in the US. Use the data
responsibly and only for legitimate purposes.

### Feedback

Found a bug or missing a field? Open an issue in the **Issues** tab. Issues are answered quickly.

# Actor input Schema

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

One business type per line, without the location ("dentist", not "dentist in Oran").

## `location` (type: `string`):

City, region or country, e.g. "Austin, Texas" or "Oran, Algeria". Its real boundary is looked up on OpenStreetMap and the whole area is searched.

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

Stop after this many unique places (0 = no limit). When "Stop after N leads with email" is set, the run stops at whichever comes first; set this to 0 to stop on emails only.

## `maxEmails` (type: `integer`):

Stop once this many leads have an email (0 = off). Maps searches pause while websites are being checked, so the run doesn't keep searching once it has enough places. Turns on email finding automatically.

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

Leave out leads where no email was found. You only pay for the leads that are saved, so leads without an email cost nothing. Turns on email finding automatically.

## `keepInside` (type: `boolean`):

Google also shows some results from just outside the searched area. When on, those are dropped.

## `enrichEmails` (type: `boolean`):

Visits each business website (home + contact/about pages) to find emails, social profiles and WhatsApp links.

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

Used to turn local numbers (0555…) into international ones (+213555…) and WhatsApp links. Leave empty to use the country of your location.

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

Language code for Google Maps (en, fr, ar…). Keep "en" unless you need categories/addresses in another language.

## `searchMethod` (type: `string`):

HTTP: sends Google Maps' own search request directly, no browser. Much cheaper and faster (1 GB memory is enough). Browser: loads real Maps pages; slower and costs more, but keeps working if Google changes the HTTP format. If the HTTP format breaks, the run switches to Browser by itself (see "Switch to Browser automatically").

## `autoFallback` (type: `boolean`):

If Google changes the HTTP search format, continue the run with the Browser method instead of failing. Needs at least 2 GB of memory (4 GB recommended); with less, the run stops with a clear message and keeps the leads found so far.

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

Google blocks datacenter IPs quickly. Residential proxies are strongly recommended. Pick the country of your location for the most relevant results.

## `websiteProxyConfiguration` (type: `object`):

Business websites rarely block scrapers, so by default they are fetched directly (no proxy). Measured: faster and cheaper than going through Apify's datacenter proxy. Turn a proxy on only if many websites fail.

## `mapsConcurrency` (type: `integer`):

Requests/browsers working at the same time, each on its own proxy IP. Default: 20 for HTTP, 8 for Browser (Browser needs ~1 GB memory per 2–3).

## `maxSearchesPerMinute` (type: `integer`):

Overall rate limit across all IPs. Default: 120 for HTTP (each request = 20 results), 60 for Browser (each = one page). Lower it if the log shows many blocked/retried requests.

## Actor input object example

```json
{
  "keywords": [
    "dentist"
  ],
  "location": "New York, USA",
  "maxResults": 100,
  "maxEmails": 0,
  "onlyWithEmail": false,
  "keepInside": true,
  "enrichEmails": true,
  "language": "en",
  "searchMethod": "http",
  "autoFallback": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "websiteProxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `leads` (type: `string`):

One row per Google Maps place: name, category, phone (as shown and international), WhatsApp link, website, emails found on the website, Facebook/Instagram/LinkedIn/X/TikTok/YouTube links, address, rating, review count, coordinates, keyword, Google Maps URL and place ID.

# 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": [
        "dentist"
    ],
    "location": "New York, USA",
    "maxResults": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "websiteProxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("aimen_ch/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": ["dentist"],
    "location": "New York, USA",
    "maxResults": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
    "websiteProxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("aimen_ch/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": [
    "dentist"
  ],
  "location": "New York, USA",
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "websiteProxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call aimen_ch/google-maps-email-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aimen_ch/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/iZC4uwVBdCqRUDlsN/builds/I3E9ZYQaxUaIbrxHG/openapi.json
