# Google Maps Scraper (`lentic_clockss/google-maps-scraper`) Actor

Scrape Google Maps businesses with reviews, ratings, phone numbers, websites, and opening hours. Uses hybrid architecture for speed and reliability.

- **URL**: https://apify.com/lentic\_clockss/google-maps-scraper.md
- **Developed by:** [kane liu](https://apify.com/lentic_clockss) (community)
- **Categories:** Lead generation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

Extract business data from Google Maps at scale — names, addresses, phone numbers, websites, ratings, opening hours, photos, and full customer reviews.

### Architecture

Two-phase hybrid approach:

1. **Playwright search** — opens Google Maps, extracts all results from `APP_INITIALIZATION_STATE[3]` (embedded protobuf-over-JSON, ~270KB per search)
2. **HTTP RPC** — uses `curl_cffi` with TLS fingerprint impersonation to fetch details (`/maps/preview/place`) and reviews (`/maps/rpc/listugcposts`) via Google's internal endpoints. 10x faster than browser-based scraping.

### Features

- Full business profiles (name, address, phone, website, coordinates, category, price, hours, photos)
- Customer reviews with metadata (text, rating, reviewer, photos, dining ratings, owner replies)
- Geographic grid mode — subdivide any area into cells for complete coverage beyond the 120-result limit
- Residential proxy support with geo-targeting
- Anti-detection: TLS fingerprint rotation, randomized delays, cookie reuse from browser sessions

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `searchQuery` | string | *required* | What to search (e.g. "restaurants in Tokyo") |
| `maxResults` | integer | 100 | Max places to scrape (1-10000) |
| `includeReviews` | boolean | true | Scrape customer reviews |
| `maxReviewsPerPlace` | integer | 10 | Max reviews per place (0 = unlimited) |
| `language` | string | "en" | Language code (en, ja, de, fr...) |
| `country` | string | "" | Proxy country code (US, JP, DE). Empty = no proxy |
| `gridBbox` | string | "" | Bounding box: "min_lat,min_lng,max_lat,max_lng" |
| `gridCellSizeKm` | number | 1.0 | Grid cell size in km (0.1-10.0) |

### Output

```json
{
  "place_id": "0x60188b78f26a7357:0x15ec7c200a23c52a",
  "name": "Matsue Sushi",
  "category": "Sushi restaurant",
  "address": "2-24-12 Shibuya, Tokyo",
  "phone": "+81 3-6452-6338",
  "website": "https://example.com",
  "latitude": 35.6583,
  "longitude": 139.7021,
  "rating": 4.9,
  "review_count": 287,
  "price_level": "$$$$",
  "opening_hours": ["Mon: 11AM-3PM, 5PM-11PM"],
  "photos": ["https://lh3.googleusercontent.com/..."],
  "reviews": [
    {
      "reviewer_name": "Albert Huang",
      "rating": 5,
      "relative_date": "a month ago",
      "text": "I enjoyed the Rin course for dinner...",
      "language": "en",
      "meal_type": "Dinner",
      "price_per_person": "¥7,000-8,000",
      "food_rating": 5,
      "service_rating": 5,
      "atmosphere_rating": 5
    }
  ]
}
````

### Usage Examples

**Basic search:**

```json
{"searchQuery": "Italian restaurants in Manhattan", "maxResults": 50, "includeReviews": false}
```

**With reviews:**

```json
{"searchQuery": "coworking spaces in Berlin", "maxResults": 30, "includeReviews": true, "maxReviewsPerPlace": 20, "language": "de", "country": "DE"}
```

**Grid mode for full coverage:**

```json
{"searchQuery": "coffee shops", "maxResults": 500, "gridBbox": "35.658,139.698,35.665,139.710", "gridCellSizeKm": 0.5}
```

### Cost

| Scenario | Places | Reviews | Est. Cost |
|----------|--------|---------|-----------|
| Basic, no reviews | 20 | 0 | ~$0.05 |
| With reviews | 50 | 10/place | ~$0.30 |
| Grid mode | 200 | 5/place | ~$1.00 |

### Limitations

- Single search returns 20-60 results. Use grid mode for more.
- Google may rate-limit heavy usage. Built-in delays help, but very large runs may need proxies.
- Protobuf-over-JSON structure can change without notice.

### Related

Need to verify these businesses? Try [Global Company Search](https://apify.com/lentic_clockss/global-company-search) — check company registration across 40+ country registries.

# Actor input Schema

## `searchQuery` (type: `string`):

What to search on Google Maps (e.g. 'sushi restaurants in Tokyo', 'plumbers in Chicago', 'hotels near Central Park').

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

Maximum number of places to scrape. Google Maps typically returns 20-60 results per search. Use grid mode for larger coverage.

## `includeReviews` (type: `boolean`):

Whether to scrape customer reviews for each place.

## `maxReviewsPerPlace` (type: `integer`):

Maximum number of reviews to scrape per place (0 = no limit). Reviews are sorted by relevance by default.

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

Language code for results (e.g. 'en', 'ja', 'de', 'fr'). Affects review text, place names, and categories.

## `country` (type: `string`):

ISO-2 country code for residential proxy (e.g. 'US', 'JP', 'DE'). Leave empty for automatic selection.

## `gridBbox` (type: `string`):

Bounding box for grid-based scraping: 'min\_lat,min\_lng,max\_lat,max\_lng' (e.g. '35.65,139.69,35.68,139.72' for Shibuya). Subdivides the area into cells and searches each one for more complete coverage.

## `gridCellSizeKm` (type: `number`):

Size of each grid cell in kilometers. Smaller cells = more searches = more results but higher cost. Only used when gridBbox is set.

## Actor input object example

```json
{
  "searchQuery": "sushi restaurants in Shibuya Tokyo",
  "maxResults": 100,
  "includeReviews": true,
  "maxReviewsPerPlace": 10,
  "language": "en",
  "country": "",
  "gridBbox": "",
  "gridCellSizeKm": 1
}
```

# Actor output Schema

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

Place records with full details, reviews, and contact information.

## `runSummary` (type: `string`):

Summary of the scraping run with counts and timing.

# 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 = {
    "searchQuery": "sushi restaurants in Shibuya Tokyo"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lentic_clockss/google-maps-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 = { "searchQuery": "sushi restaurants in Shibuya Tokyo" }

# Run the Actor and wait for it to finish
run = client.actor("lentic_clockss/google-maps-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 '{
  "searchQuery": "sushi restaurants in Shibuya Tokyo"
}' |
apify call lentic_clockss/google-maps-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Scraper",
        "description": "Scrape Google Maps businesses with reviews, ratings, phone numbers, websites, and opening hours. Uses hybrid architecture for speed and reliability.",
        "version": "0.1",
        "x-build-id": "3mXLEa2TnGfuUHfSC"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/lentic_clockss~google-maps-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-lentic_clockss-google-maps-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/lentic_clockss~google-maps-scraper/runs": {
            "post": {
                "operationId": "runs-sync-lentic_clockss-google-maps-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/lentic_clockss~google-maps-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-lentic_clockss-google-maps-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": [
                    "searchQuery"
                ],
                "properties": {
                    "searchQuery": {
                        "title": "Search query",
                        "minLength": 1,
                        "maxLength": 500,
                        "type": "string",
                        "description": "What to search on Google Maps (e.g. 'sushi restaurants in Tokyo', 'plumbers in Chicago', 'hotels near Central Park')."
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of places to scrape. Google Maps typically returns 20-60 results per search. Use grid mode for larger coverage.",
                        "default": 100
                    },
                    "includeReviews": {
                        "title": "Include reviews",
                        "type": "boolean",
                        "description": "Whether to scrape customer reviews for each place.",
                        "default": true
                    },
                    "maxReviewsPerPlace": {
                        "title": "Max reviews per place",
                        "minimum": 0,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of reviews to scrape per place (0 = no limit). Reviews are sorted by relevance by default.",
                        "default": 10
                    },
                    "language": {
                        "title": "Language",
                        "minLength": 2,
                        "maxLength": 5,
                        "type": "string",
                        "description": "Language code for results (e.g. 'en', 'ja', 'de', 'fr'). Affects review text, place names, and categories.",
                        "default": "en"
                    },
                    "country": {
                        "title": "Proxy country (optional)",
                        "maxLength": 2,
                        "type": "string",
                        "description": "ISO-2 country code for residential proxy (e.g. 'US', 'JP', 'DE'). Leave empty for automatic selection.",
                        "default": ""
                    },
                    "gridBbox": {
                        "title": "Grid bounding box (optional)",
                        "type": "string",
                        "description": "Bounding box for grid-based scraping: 'min_lat,min_lng,max_lat,max_lng' (e.g. '35.65,139.69,35.68,139.72' for Shibuya). Subdivides the area into cells and searches each one for more complete coverage.",
                        "default": ""
                    },
                    "gridCellSizeKm": {
                        "title": "Grid cell size (km)",
                        "minimum": 0.1,
                        "maximum": 10,
                        "type": "number",
                        "description": "Size of each grid cell in kilometers. Smaller cells = more searches = more results but higher cost. Only used when gridBbox is set.",
                        "default": 1
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
