# Google Maps Lead Extractor (`morkerr/google-maps-lead-extractor`) Actor

Extract business leads from Google Maps — names, phones, addresses, websites, ratings, and reviews. Export to CSV, JSON, Excel. Built by morkerr.com

- **URL**: https://apify.com/morkerr/google-maps-lead-extractor.md
- **Developed by:** [morkerr](https://apify.com/morkerr) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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/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

## Google Maps Lead Extractor

Extract business leads from Google Maps — names, phones, emails, addresses, websites, ratings, reviews, and more. Export to CSV, JSON, Excel.

### What It Does

Searches Google Maps for any keyword + location, scrolls through all results, opens each listing's detail page, and extracts structured business data. Optionally visits business websites to collect contact emails.

### Features

- **Multi-keyword search** — run multiple search terms in one go, with automatic deduplication
- **Full detail extraction** — phone, website, email, address, category, rating, reviews, price range, hours, description
- **Email collection** — optionally visits each business website to find contact emails via mailto links, meta tags, and page text
- **Concurrent extraction** — configurable parallel page loading (1–5) for faster scraping
- **Residential proxy support** — built-in Apify proxy integration to avoid blocking
- **Professional output** — clean structured data ready for CRM import, outreach, or analysis

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `searchTerms` | `string[]` | Yes | `["restaurant"]` | Keywords to search on Google Maps (e.g. `dentist`, `plumber`) |
| `location` | `string` | Yes | `"New York"` | City, region, or area to search in |
| `maxResults` | `integer` | No | `100` | Maximum places to extract (0 = unlimited) |
| `concurrency` | `integer` | No | `3` | Detail pages to open in parallel (1–5, recommended: 3) |
| `extractEmails` | `boolean` | No | `false` | Visit business websites to find contact emails (slower) |
| `language` | `string` | No | `"en"` | Google Maps language (`en`, `de`, `fr`, `es`, etc.) |
| `proxyConfiguration` | `object` | No | — | Residential proxy recommended for reliable scraping |

### Output Fields

| Field | Description |
|-------|-------------|
| `title` | Business name |
| `phone` | Phone number |
| `email` | Contact email (from website) |
| `address` | Street address |
| `description` | Business description |
| `hours` | Opening hours |
| `priceLevel` | Price range (e.g. `$10-$20`) |
| `rating` | Star rating (1–5) |
| `reviews` | Number of reviews |
| `category` | Business category |
| `searchTerm` | Which search term found this result |
| `url` | Google Maps listing URL |
| `website` | Business website URL |
| `scrapedAt` | ISO timestamp of extraction |
| `placeId` | Google Maps Place ID |

### Example Usage

**Simple search:**
```json
{
  "searchTerms": ["coffee shop"],
  "location": "Los Angeles, CA",
  "maxResults": 50
}
````

**Multi-keyword with email collection:**

```json
{
  "searchTerms": ["dentist", "orthodontist", "dental clinic"],
  "location": "Chicago, IL",
  "maxResults": 200,
  "concurrency": 3,
  "extractEmails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

### Proxy Configuration

Google Maps actively blocks automated access. **Residential proxies are strongly recommended.** Without proxies, you may get blocked after 20–50 results.

```json
"proxyConfiguration": {
  "useApifyProxy": true,
  "apifyProxyGroups": ["RESIDENTIAL"]
}
```

### How It Works

1. **Search** — opens Google Maps, enters your search term + location
2. **Scroll** — scrolls through the results feed, collecting listing URLs
3. **Extract** — opens each listing's detail page in parallel batches
4. **Enrich** — (optional) visits business websites to scrape emails
5. **Export** — pushes structured data to Apify dataset (CSV, JSON, Excel)

### Limitations

- Google Maps may block scraping without residential proxies
- Email extraction depends on the business having a website with visible email addresses
- Some fields (description, hours, price) may be empty if not listed on Google Maps
- Rate limits may apply — use concurrency of 3 for best balance of speed and reliability

### Built By

[Morkerr](https://morkerr.com)

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords to search on Google Maps (e.g. dentist, plumber, restaurant). Multiple terms run separate searches and deduplicate results.

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

City, region, or area to search in (e.g. New York, Brooklyn, London)

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

Maximum number of places to extract (0 = unlimited)

## `concurrency` (type: `integer`):

Number of detail pages to open in parallel. Higher = faster but more likely to trigger rate limits. Recommended: 3

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

Only include places with at least this star rating (0-5)

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

Only include places with at least this many reviews

## `extractPhones` (type: `boolean`):

Open detail pages to extract phone numbers (slower but richer data)

## `extractWebsites` (type: `boolean`):

Extract business website URLs from detail pages

## `extractEmails` (type: `boolean`):

Visit business websites to find contact email addresses (significantly slower)

## `extractOpeningHours` (type: `boolean`):

Extract business hours from detail pages

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

Google Maps language code (en, de, fr, es, etc.)

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

Use Apify's rotating proxies to avoid blocking. Residential proxies recommended for Google Maps.

## Actor input object example

```json
{
  "searchTerms": [
    "dentist",
    "orthodontist",
    "dental clinic"
  ],
  "location": "New York, NY",
  "maxResults": 100,
  "concurrency": 3,
  "minRating": 0,
  "minReviews": 0,
  "extractPhones": true,
  "extractWebsites": true,
  "extractEmails": false,
  "extractOpeningHours": false,
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `title` (type: `string`):

Business name

## `phone` (type: `string`):

Phone number

## `email` (type: `string`):

Contact email from website

## `address` (type: `string`):

Street address

## `description` (type: `string`):

Business description

## `hours` (type: `string`):

Opening hours

## `priceLevel` (type: `string`):

Price range (e.g. $10-$20)

## `rating` (type: `string`):

Star rating (1-5)

## `reviews` (type: `string`):

Number of reviews

## `category` (type: `string`):

Business category

## `searchTerm` (type: `string`):

Search keyword used

## `url` (type: `string`):

Google Maps listing URL

## `website` (type: `string`):

Website URL

## `scrapedAt` (type: `string`):

ISO timestamp of extraction

## `placeId` (type: `string`):

Google Maps 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 = {
    "searchTerms": [
        "dentist",
        "orthodontist",
        "dental clinic"
    ],
    "location": "New York, NY",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("morkerr/google-maps-lead-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 = {
    "searchTerms": [
        "dentist",
        "orthodontist",
        "dental clinic",
    ],
    "location": "New York, NY",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("morkerr/google-maps-lead-extractor").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 '{
  "searchTerms": [
    "dentist",
    "orthodontist",
    "dental clinic"
  ],
  "location": "New York, NY",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call morkerr/google-maps-lead-extractor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Lead Extractor",
        "description": "Extract business leads from Google Maps — names, phones, addresses, websites, ratings, and reviews. Export to CSV, JSON, Excel. Built by morkerr.com",
        "version": "1.0",
        "x-build-id": "u0sRCtuvIkxkDwoFZ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/morkerr~google-maps-lead-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-morkerr-google-maps-lead-extractor",
                "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/morkerr~google-maps-lead-extractor/runs": {
            "post": {
                "operationId": "runs-sync-morkerr-google-maps-lead-extractor",
                "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/morkerr~google-maps-lead-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-morkerr-google-maps-lead-extractor",
                "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": [
                    "searchTerms",
                    "location"
                ],
                "properties": {
                    "searchTerms": {
                        "title": "Search terms",
                        "type": "array",
                        "description": "Keywords to search on Google Maps (e.g. dentist, plumber, restaurant). Multiple terms run separate searches and deduplicate results.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "City, region, or area to search in (e.g. New York, Brooklyn, London)"
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of places to extract (0 = unlimited)",
                        "default": 100
                    },
                    "concurrency": {
                        "title": "Concurrent detail pages",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Number of detail pages to open in parallel. Higher = faster but more likely to trigger rate limits. Recommended: 3",
                        "default": 3
                    },
                    "minRating": {
                        "title": "Minimum rating",
                        "minimum": 0,
                        "maximum": 5,
                        "type": "number",
                        "description": "Only include places with at least this star rating (0-5)",
                        "default": 0
                    },
                    "minReviews": {
                        "title": "Minimum reviews",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only include places with at least this many reviews",
                        "default": 0
                    },
                    "extractPhones": {
                        "title": "Extract phone numbers",
                        "type": "boolean",
                        "description": "Open detail pages to extract phone numbers (slower but richer data)",
                        "default": true
                    },
                    "extractWebsites": {
                        "title": "Extract websites",
                        "type": "boolean",
                        "description": "Extract business website URLs from detail pages",
                        "default": true
                    },
                    "extractEmails": {
                        "title": "Extract emails (from websites)",
                        "type": "boolean",
                        "description": "Visit business websites to find contact email addresses (significantly slower)",
                        "default": false
                    },
                    "extractOpeningHours": {
                        "title": "Extract opening hours",
                        "type": "boolean",
                        "description": "Extract business hours from detail pages",
                        "default": false
                    },
                    "language": {
                        "title": "Language",
                        "enum": [
                            "en",
                            "de",
                            "fr",
                            "es",
                            "it",
                            "nl",
                            "pt",
                            "ar",
                            "zh",
                            "ja",
                            "ko"
                        ],
                        "type": "string",
                        "description": "Google Maps language code (en, de, fr, es, etc.)",
                        "default": "en"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Use Apify's rotating proxies to avoid blocking. Residential proxies recommended for Google Maps."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
