# Google Maps Leads Scraper | Places, Contacts & Reviews (`apexdata/google-maps-leads-scraper`) Actor

Extract Google Maps leads, business details, contacts, and reviews with a fast request-based scraper.

- **URL**: https://apify.com/apexdata/google-maps-leads-scraper.md
- **Developed by:** [Alex](https://apify.com/apexdata) (community)
- **Categories:** Lead generation, SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0001 / result

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 Leads Scraper | City, ZIP & Country Search

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 560" role="img" aria-label="Google Maps Leads Scraper hero" style="width:100%;max-width:1200px;display:block;border-radius:20px;overflow:hidden">
  <defs>
    <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
      <stop offset="0%" stop-color="#08111f"/>
      <stop offset="50%" stop-color="#0d1f33"/>
      <stop offset="100%" stop-color="#08293d"/>
    </linearGradient>
    <linearGradient id="glow" x1="0" y1="0" x2="1" y2="1">
      <stop offset="0%" stop-color="#2fe0d3" stop-opacity="0.95"/>
      <stop offset="100%" stop-color="#ff8b4a" stop-opacity="0.95"/>
    </linearGradient>
    <filter id="blur">
      <feGaussianBlur stdDeviation="10"/>
    </filter>
  </defs>
  <rect width="1200" height="560" fill="url(#bg)"/>
  <g opacity="0.16" stroke="#88d6ff" stroke-width="1">
    <path d="M40 80H1160M40 140H1160M40 200H1160M40 260H1160M40 320H1160M40 380H1160M40 440H1160M40 500H1160"/>
    <path d="M80 40V520M180 40V520M280 40V520M380 40V520M480 40V520M580 40V520M680 40V520M780 40V520M880 40V520M980 40V520M1080 40V520"/>
  </g>
  <circle cx="315" cy="250" r="110" fill="#2fe0d3" opacity="0.16" filter="url(#blur)"/>
  <circle cx="825" cy="285" r="140" fill="#ff8b4a" opacity="0.12" filter="url(#blur)"/>
  <path d="M250 355C320 325 355 235 435 220S585 230 645 190 760 130 855 175" fill="none" stroke="url(#glow)" stroke-width="8" stroke-linecap="round"/>
  <g fill="#c9f7ff" stroke="#0b1324" stroke-width="6">
    <path d="M288 232c0-27 22-49 49-49s49 22 49 49c0 40-49 86-49 86s-49-46-49-86z" fill="#2fe0d3"/>
    <circle cx="337" cy="232" r="16" fill="#08111f" stroke="none"/>
    <path d="M721 194c0-27 22-49 49-49s49 22 49 49c0 40-49 86-49 86s-49-46-49-86z" fill="#ff8b4a"/>
    <circle cx="770" cy="194" r="16" fill="#08111f" stroke="none"/>
    <path d="M912 316c0-27 22-49 49-49s49 22 49 49c0 40-49 86-49 86s-49-46-49-86z" fill="#76c7ff"/>
    <circle cx="961" cy="316" r="16" fill="#08111f" stroke="none"/>
  </g>
  <g transform="translate(615 96)">
    <rect x="0" y="0" rx="22" ry="22" width="410" height="110" fill="#0e1f33" stroke="#2de0d1" stroke-opacity="0.28"/>
    <rect x="22" y="22" rx="14" ry="14" width="120" height="28" fill="#2fe0d3" opacity="0.85"/>
    <rect x="22" y="62" rx="10" ry="10" width="160" height="16" fill="#8ecdf3" opacity="0.65"/>
    <rect x="200" y="22" rx="10" ry="10" width="86" height="28" fill="#ff8b4a" opacity="0.9"/>
    <rect x="200" y="62" rx="10" ry="10" width="174" height="16" fill="#8ecdf3" opacity="0.45"/>
  </g>
  <g transform="translate(640 240)">
    <rect x="0" y="0" rx="22" ry="22" width="320" height="104" fill="#0f1a2b" stroke="#8ecdf3" stroke-opacity="0.18"/>
    <rect x="20" y="20" rx="12" ry="12" width="90" height="16" fill="#2fe0d3" opacity="0.8"/>
    <rect x="20" y="48" rx="10" ry="10" width="240" height="14" fill="#8ecdf3" opacity="0.4"/>
    <rect x="20" y="72" rx="10" ry="10" width="180" height="14" fill="#8ecdf3" opacity="0.3"/>
  </g>
  <g transform="translate(760 390)">
    <rect x="0" y="0" rx="22" ry="22" width="280" height="88" fill="#0f1a2b" stroke="#ff8b4a" stroke-opacity="0.2"/>
    <circle cx="32" cy="28" r="9" fill="#ff8b4a"/>
    <rect x="52" y="20" rx="8" ry="8" width="120" height="14" fill="#ffffff" opacity="0.8"/>
    <rect x="52" y="48" rx="8" ry="8" width="190" height="12" fill="#8ecdf3" opacity="0.36"/>
  </g>
</svg>

Search Google Maps by city, ZIP code, country, or custom location and extract leads, business details, contacts, and reviews without running a browser.

This actor uses Google Maps request endpoints directly, so it stays lighter than a browser-based scraper while still returning structured results at scale.

### 🚀 What it does

- Search Google Maps by query and location
- Support city, ZIP/postal code, country, or custom location text
- Collect place IDs, names, addresses, coordinates, ratings, categories, contacts, and websites
- Keep the public form focused on query, location, and place count
- Review collection is controlled internally for operators

### ⚙️ How it works

- `query` is the business keyword you want
- `locationType` tells the actor whether `location` is a city, ZIP/postal code, country, or custom text
- `location` is the actual search area
- The public actor always returns business details
- Review collection is optional and controlled by operator defaults

### 🧾 Input

- `query`: search phrase to run in Google Maps
- `locationType`: choose `city`, `zip`, `country`, or `custom`
- `location`: city name, ZIP/postal code, country, or custom text
- `maxPlaces`: number of places to collect

### 📦 Output

- One dataset item per place
- Compact overview rows in the Apify Console dataset view
- Nested `reviews` array only when reviews are enabled
- A run summary stored in `OUTPUT`

### ✨ Examples

```json
{
  "query": "restaurants",
  "locationType": "city",
  "location": "New York",
  "maxPlaces": 20
}
````

```json
{
  "query": "dentists",
  "locationType": "zip",
  "location": "78701",
  "maxPlaces": 10
}
```

```json
{
  "query": "hotels",
  "locationType": "country",
  "location": "United States",
  "maxPlaces": 15
}
```

```json
{
  "query": "coffee shops",
  "locationType": "custom",
  "location": "Brooklyn near Prospect Park",
  "maxPlaces": 10
}
```

### 🛠️ Notes

- Concurrency, pacing, language, country defaults, review limits, and map-center fallback settings are handled internally for operators.
- This actor uses undocumented Google Maps request endpoints and positional-array responses.
- Google can change those payloads without notice, so some maintenance may be required over time.

# Actor input Schema

## `query` (type: `string`):

Business or place keyword to search in Google Maps.

## `locationType` (type: `string`):

Choose how to interpret the location value.

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

City name, ZIP/postal code, country, or custom area text depending on the selected location type.

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

Maximum number of places to collect from the search results.

## Actor input object example

```json
{
  "query": "restaurants",
  "locationType": "city",
  "location": "New York",
  "maxPlaces": 20
}
```

# Actor output Schema

## `places` (type: `string`):

Place records emitted to the default dataset.

## `summary` (type: `string`):

JSON summary stored in the default key-value store under OUTPUT.

# 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 = {
    "query": "restaurants",
    "locationType": "city",
    "location": "New York",
    "maxPlaces": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("apexdata/google-maps-leads-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 = {
    "query": "restaurants",
    "locationType": "city",
    "location": "New York",
    "maxPlaces": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("apexdata/google-maps-leads-scraper").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 '{
  "query": "restaurants",
  "locationType": "city",
  "location": "New York",
  "maxPlaces": 20
}' |
apify call apexdata/google-maps-leads-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Leads Scraper | Places, Contacts & Reviews",
        "description": "Extract Google Maps leads, business details, contacts, and reviews with a fast request-based scraper.",
        "version": "0.1",
        "x-build-id": "6O3t1Yu7iqi0KMmoy"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/apexdata~google-maps-leads-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-apexdata-google-maps-leads-scraper",
                "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/apexdata~google-maps-leads-scraper/runs": {
            "post": {
                "operationId": "runs-sync-apexdata-google-maps-leads-scraper",
                "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/apexdata~google-maps-leads-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-apexdata-google-maps-leads-scraper",
                "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": [
                    "query"
                ],
                "properties": {
                    "query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Business or place keyword to search in Google Maps.",
                        "default": "restaurants"
                    },
                    "locationType": {
                        "title": "Location type",
                        "enum": [
                            "city",
                            "zip",
                            "country",
                            "custom"
                        ],
                        "type": "string",
                        "description": "Choose how to interpret the location value.",
                        "default": "city"
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "City name, ZIP/postal code, country, or custom area text depending on the selected location type."
                    },
                    "maxPlaces": {
                        "title": "Max places",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of places to collect from the search results.",
                        "default": 20
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
