# Google Maps Scraper: Places, Contacts & Reviews (`aiscraperdev/google-maps-comprehensive-scraper`) Actor

Extract highly detailed data from Google Maps at high speed. Scrape business names, direct website URLs, phone numbers, opening hours, star ratings, and exact geographic coordinates.

- **URL**: https://apify.com/aiscraperdev/google-maps-comprehensive-scraper.md
- **Developed by:** [Randeep Dhillon](https://apify.com/aiscraperdev) (community)
- **Categories:** Lead generation, SEO tools, Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $4.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 Scraper: Places, Contacts & Reviews 📍

The most robust and clean Google Maps data extractor on the market. Built for speed and accuracy, this scraper bypasses Google's UI artifacts and tracking redirects to deliver pristine, ready-to-use JSON data for your CRM, lead generation, or local SEO analysis.

### 🔥 Key Features

* **Universal Extraction:** Seamlessly scrapes data across different Google Maps layouts (Restaurants, Hotels, Plumbers, Retail, etc.).
* **Clean Data Guarantee:** Automatically strips out hidden Google icon fonts and UI artifacts.
* **Direct URLs:** Bypasses Google's `/url?q=` tracking redirects to give you the actual, direct website and menu links.
* **Granular Location Data:** Parses full addresses into City, State, and Zip, and extracts exact Latitude/Longitude coordinates.
* **Opening Hours:** Delivers a cleanly formatted array of daily opening hours.
* **High-Speed & Resource Efficient:** Optimized to block unnecessary heavy image and map tile rendering, saving you compute time.

### 🎯 Use Cases

* **B2B Lead Generation:** Build hyper-targeted lists of local businesses with direct phone numbers and websites.
* **Local SEO & Reputation Management:** Track review counts and average star ratings for competitors in specific neighborhoods.
* **Market Research & Real Estate:** Map out the density of specific business categories (e.g., "coffee shops in Brooklyn") using exact geographic coordinates.
* **Travel & Hospitality Aggregation:** Extract hotel star ratings and descriptions effortlessly.

### 📥 Input Configuration

| Field | Type | Description |
| ----- | ---- | ----------- |
| `searchStringsArray` | Array | The keywords you want to search for (e.g., `["restaurant", "plumber"]`). |
| `locationQuery` | String | The geographic area to search within (e.g., `"New York, USA"`, `"London"`). |
| `maxCrawledPlacesPerSearch` | Number | Limit the number of results per search keyword. |
| `language` | String | Two-letter language code (e.g., `en`, `es`). |

### 📤 Sample Output

The scraper provides highly structured JSON output perfect for immediate database ingestion.

```json
{
  "title": "Gramercy Tavern",
  "categoryName": "New American restaurant",
  "address": "42 E 20th St, New York, NY 10003",
  "city": "New York",
  "state": "NY",
  "postalCode": "10003",
  "location": {
    "lat": 40.7384555,
    "lng": -73.9885064
  },
  "phone": "(212) 477-0777",
  "phoneUnformatted": "2124770777",
  "website": "[https://www.gramercytavern.com/](https://www.gramercytavern.com/)",
  "totalScore": 4.6,
  "reviewsCount": 4882,
  "price": "$100+",
  "openingHours": [
    {
      "day": "Monday",
      "hours": "11:30 AM–10:30 PM"
    }
  ]
}

# Actor input Schema

## `searchStringsArray` (type: `array`):

Array of keywords to search (e.g., 'restaurant', 'laundromat').
## `locationQuery` (type: `string`):

City, State, or Area to search within.
## `language` (type: `string`):

Two-letter language code for the Google Maps interface (e.g., 'en', 'es').
## `maxCrawledPlacesPerSearch` (type: `integer`):

Maximum number of places to scrape per search query.
## `scrapeContacts` (type: `boolean`):

Enable to extract emails and phone numbers if a website is provided.
## `scrapeSocialMediaProfiles` (type: `object`):

Toggle which social media profiles to attempt to scrape from the business.
## `includeWebResults` (type: `boolean`):

Include related web search results from Google.
## `scrapeReviewsPersonalData` (type: `boolean`):

Include personal reviewer data (names, profile links) in the output.

## Actor input object example

```json
{
  "searchStringsArray": [
    "restaurant"
  ],
  "locationQuery": "New York, USA",
  "language": "en",
  "maxCrawledPlacesPerSearch": 50,
  "scrapeContacts": false,
  "scrapeSocialMediaProfiles": {
    "facebooks": false,
    "instagrams": false,
    "tiktoks": false,
    "twitters": false,
    "youtubes": false
  },
  "includeWebResults": false,
  "scrapeReviewsPersonalData": true
}
````

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "searchStringsArray": [
        "restaurant"
    ],
    "locationQuery": "New York, USA"
};

// Run the Actor and wait for it to finish
const run = await client.actor("aiscraperdev/google-maps-comprehensive-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 = {
    "searchStringsArray": ["restaurant"],
    "locationQuery": "New York, USA",
}

# Run the Actor and wait for it to finish
run = client.actor("aiscraperdev/google-maps-comprehensive-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 '{
  "searchStringsArray": [
    "restaurant"
  ],
  "locationQuery": "New York, USA"
}' |
apify call aiscraperdev/google-maps-comprehensive-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Scraper: Places, Contacts & Reviews",
        "description": "Extract highly detailed data from Google Maps at high speed. Scrape business names, direct website URLs, phone numbers, opening hours, star ratings, and exact geographic coordinates.",
        "version": "0.0",
        "x-build-id": "4DvRngBe2FQh2QerG"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/aiscraperdev~google-maps-comprehensive-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-aiscraperdev-google-maps-comprehensive-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/aiscraperdev~google-maps-comprehensive-scraper/runs": {
            "post": {
                "operationId": "runs-sync-aiscraperdev-google-maps-comprehensive-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/aiscraperdev~google-maps-comprehensive-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-aiscraperdev-google-maps-comprehensive-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": [
                    "searchStringsArray",
                    "locationQuery"
                ],
                "properties": {
                    "searchStringsArray": {
                        "title": "Search Terms",
                        "type": "array",
                        "description": "Array of keywords to search (e.g., 'restaurant', 'laundromat').",
                        "items": {
                            "type": "string"
                        }
                    },
                    "locationQuery": {
                        "title": "Location Query",
                        "type": "string",
                        "description": "City, State, or Area to search within."
                    },
                    "language": {
                        "title": "Language Code",
                        "type": "string",
                        "description": "Two-letter language code for the Google Maps interface (e.g., 'en', 'es').",
                        "default": "en"
                    },
                    "maxCrawledPlacesPerSearch": {
                        "title": "Max Places Per Search",
                        "type": "integer",
                        "description": "Maximum number of places to scrape per search query.",
                        "default": 50
                    },
                    "scrapeContacts": {
                        "title": "Scrape Contacts",
                        "type": "boolean",
                        "description": "Enable to extract emails and phone numbers if a website is provided.",
                        "default": false
                    },
                    "scrapeSocialMediaProfiles": {
                        "title": "Scrape Social Media Profiles",
                        "type": "object",
                        "description": "Toggle which social media profiles to attempt to scrape from the business.",
                        "default": {
                            "facebooks": false,
                            "instagrams": false,
                            "tiktoks": false,
                            "twitters": false,
                            "youtubes": false
                        }
                    },
                    "includeWebResults": {
                        "title": "Include Web Results",
                        "type": "boolean",
                        "description": "Include related web search results from Google.",
                        "default": false
                    },
                    "scrapeReviewsPersonalData": {
                        "title": "Scrape Reviews Personal Data",
                        "type": "boolean",
                        "description": "Include personal reviewer data (names, profile links) in the output.",
                        "default": 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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
