# Google Maps Reviews (`stable_crawl/google-maps-reviews`) Actor

Scrap Google maps reviews with the place detail information.

- **URL**: https://apify.com/stable\_crawl/google-maps-reviews.md
- **Developed by:** [Jin Bae](https://apify.com/stable_crawl) (community)
- **Categories:** Social media, AI, Automation
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.40 / 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 Reviews Scraper

Extract place details, ratings, and customer reviews from any Google Maps location. Export clean, flat data to CSV, JSON, or Excel.

- Scrape **place details**: name, rating, address, coordinates, contact info, categories, and more
- Collect **customer reviews**: text, rating, reviewer profile, photos, business responses
- Bulk scrape via **URLs, Place IDs, CIDs, or CID strings**
- **CSV-friendly flat output** by default, no nested objects

### How it works

1. **Add places** - Paste Google Maps URLs, enter Place IDs, CIDs, or CID strings
2. **Configure** - Choose scrape mode, review sorting, and filters
3. **Run** - Get structured data in your preferred format

### Input

#### Places to scrape

Provide places using any combination of these methods:

| Field | Description |
|-------|-------------|
| **Google Maps URLs** | Paste one or more place URLs from your browser |
| **Place IDs** | Enter Google Maps Place IDs (e.g., `ChIJLwiGVMKifDURzGJnUMCMSx8`) |
| **CIDs** | Enter Google Maps decimal CIDs (e.g., `16813526255109441016`) |
| **CID strings** | Enter Google Maps `cid_str` values (e.g., `0x357ca2eb421c44ad:0xe955a50c118085f8`) |

#### Options

| Field | Default | Description |
|-------|---------|-------------|
| **Scrape mode** | `Place + Reviews` | What to collect: place details only, reviews only, or both |
| **Review sort order** | `Newest first` | How to sort reviews: newest, most relevant, highest/lowest rating |
| **Max reviews per place** | *(all)* | Limit the number of reviews per place |
| **Reviews since date** | *(none)* | Only collect reviews after this date (requires sort = Newest) |
| **Language** | `English` | Language for place details and review translations |
| **Output format** | `Flat` | Flat (CSV-friendly) or Nested (JSON objects) |

#### Example input

```json
{
  "scrapeMode": "all",
  "places": {
    "startUrls": [
      { "url": "https://www.google.com/maps/place/Gwanghwamun+Square/@37.5723718,126.9767087,17z/" }
    ],
    "cids": ["16813526255109441016"]
  },
  "sort": "newest",
  "maxReviews": 100,
  "language": "en"
}
````

### Output

#### Flat format (default)

Each row is a self-contained record with all fields at the top level. Place fields use a `place_` prefix. This format exports cleanly to CSV and Excel.

```json
{
  "place_name": "Gwanghwamun Square",
  "place_rating": 4.6,
  "place_review_count": 12847,
  "place_address": "161 Sejong-daero, Jongno-gu, Seoul, South Korea",
  "place_lat": 37.5723718,
  "place_lng": 126.9767087,
  "place_cid": 16808063476328097272,
  "place_cid_str": "0xe955a50c118085f8",
  "place_place_id": "ChIJrUQcQutYezURGICADEylVek",
  "place_category": "Plaza",
  "place_categories": "Plaza | Tourist attraction",
  "place_website": "https://www.seoul.go.kr/",
  "place_phone": "+82-2-120",
  "review_id": "ChdDSUhNMG9nS0VJQ0...",
  "rating": 5,
  "text": "Beautiful open space in the heart of Seoul...",
  "published_at": "2025-03-15T09:30:00Z",
  "reviewer_name": "John D.",
  "reviewer_is_local_guide": true,
  "scraped_at": "2025-04-06T12:00:00Z"
}
```

#### Nested format

When output format is set to `Nested (JSON)`, data is grouped under `place` and `review` objects:

```json
{
  "input": { "url": "https://...", "language": "en" },
  "place": {
    "name": "Gwanghwamun Square",
    "rating": 4.6,
    "review_count": 12847,
    "address": "161 Sejong-daero, Jongno-gu, Seoul, South Korea",
    "lat": 37.5723718,
    "lng": 126.9767087
  },
  "review": {
    "review_id": "ChdDSUhNMG9nS0VJQ0...",
    "rating": 5,
    "text": "Beautiful open space...",
    "reviewer": { "name": "John D.", "is_local_guide": true }
  },
  "hasReviews": true,
  "scrapedAt": "2025-04-06T12:00:00Z"
}
```

#### Place fields

| Field | Type | Description |
|-------|------|-------------|
| `place_name` | string | Place name |
| `place_lat` / `place_lng` | float | Coordinates |
| `place_cid` | integer | Google CID (integer) |
| `place_cid_str` | string | CID in 0x hex format |
| `place_place_id` | string | Google Place ID |
| `place_rating` | float | Average rating |
| `place_review_count` | integer | Total review count |
| `place_category` | string | Primary category |
| `place_categories` | string | All categories (pipe-separated in flat mode) |
| `place_address` | string | Full address |
| `place_street` | string | Street address |
| `place_city` | string | City |
| `place_state` | string | State/Province |
| `place_postal_code` | string | Postal code |
| `place_country_code` | string | Country code |
| `place_website` | string | Website URL |
| `place_phone` | string | Phone number |
| `place_timezone` | string | Timezone |
| `place_thumbnail` | string | Thumbnail image URL |
| `place_business_status` | string | Business status |

#### Review fields

| Field | Type | Description |
|-------|------|-------------|
| `review_id` | string | Review unique ID |
| `rating` | float | Review rating |
| `text` | string | Review text (original) |
| `text_translated` | string | Translated review text |
| `published_at` | string | Publication date (ISO 8601) |
| `modified_at` | string | Last modified date |
| `time_display` | string | Relative time (e.g., "3 months ago") |
| `language_code` | string | Original language code |
| `likes` | integer | Number of likes |
| `review_url` | string | Direct review URL |
| `reviewer_name` | string | Reviewer name |
| `reviewer_profile_url` | string | Reviewer profile URL |
| `reviewer_total_reviews` | integer | Reviewer's total reviews |
| `reviewer_is_local_guide` | boolean | Local Guide status |
| `platform_name` | string | Review platform name |
| `media` | string | Attached media (JSON array in flat mode) |
| `business_response_text` | string | Business owner's response |

### Tips

#### How to find a Google Maps URL

1. Open [Google Maps](https://maps.google.com)
2. Search for a place and click on it
3. Copy the URL from your browser's address bar

#### How to find a Place ID

Look for the `1s` parameter in a Google Maps URL:

```
https://www.google.com/maps/place/...data=...!1sChIJLwiGVMKifDURzGJnUMCMSx8...
```

The value after `!1s` is the Place ID: `ChIJLwiGVMKifDURzGJnUMCMSx8`

#### How to find a CID or cid\_str

Look for these values in a Google Maps URL or in a previously scraped dataset row:

- `cid`: decimal identifier such as `16813526255109441016`
- `cid_str`: hex pair such as `0x357ca2eb421c44ad:0xe955a50c118085f8`

#### Reviews since date

The "Reviews since date" filter only works when review sort order is set to **Newest first**. This is because the scraper stops paginating when it reaches reviews older than the specified date, which only works correctly in chronological order.

### Actor address

`stable_crawl/google-maps-reviews`

### Local development

```bash
apify run --input-file test-input.json
```

Results are saved to `storage/`. Deploy to the Apify platform for cloud runs and dataset export.

# Actor input Schema

## `scrapeMode` (type: `string`):

Choose what data to collect from each place.

## `places` (type: `object`):

Provide places via URLs, Place IDs, decimal CIDs, or CID strings. You can combine these methods.

## `sort` (type: `string`):

How to sort the reviews before collecting them.

## `maxReviews` (type: `integer`):

Maximum number of reviews to collect per place. Leave empty to collect all available reviews.

## `reviewsSince` (type: `string`):

Only collect reviews published on or after this date. This filter only works when review sort order is set to 'Newest first'.

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

Language for place details and review translations. For unlisted languages, use the JSON input editor to enter any BCP-47 code (e.g., 'th', 'vi', 'pl').

## `outputFormat` (type: `string`):

Flat format puts all fields at the top level, ideal for CSV and Excel export. Nested format groups fields under 'place' and 'review' objects, better for JSON processing.

## Actor input object example

```json
{
  "scrapeMode": "all",
  "places": {},
  "sort": "newest",
  "language": "en",
  "outputFormat": "flat"
}
```

# Actor output Schema

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

Dataset items produced by the run.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("stable_crawl/google-maps-reviews").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("stable_crawl/google-maps-reviews").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 '{}' |
apify call stable_crawl/google-maps-reviews --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Reviews",
        "description": "Scrap Google maps reviews with the place detail information.",
        "version": "0.5",
        "x-build-id": "kyzNFmt1lAQ0vMiHh"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/stable_crawl~google-maps-reviews/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-stable_crawl-google-maps-reviews",
                "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/stable_crawl~google-maps-reviews/runs": {
            "post": {
                "operationId": "runs-sync-stable_crawl-google-maps-reviews",
                "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/stable_crawl~google-maps-reviews/run-sync": {
            "post": {
                "operationId": "run-sync-stable_crawl-google-maps-reviews",
                "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",
                "properties": {
                    "scrapeMode": {
                        "title": "Scrape mode",
                        "enum": [
                            "place",
                            "reviews",
                            "all"
                        ],
                        "type": "string",
                        "description": "Choose what data to collect from each place.",
                        "default": "all"
                    },
                    "places": {
                        "title": "Places to scrape",
                        "type": "object",
                        "description": "Provide places via URLs, Place IDs, decimal CIDs, or CID strings. You can combine these methods.",
                        "properties": {
                            "startUrls": {
                                "title": "Google Maps URLs",
                                "type": "array",
                                "description": "Add one or more Google Maps place URLs. You can paste URLs directly from your browser's address bar.",
                                "editor": "requestListSources",
                                "prefill": [
                                    {
                                        "url": "https://www.google.com/maps/place/Gwanghwamun+Square/@37.5723718,126.9767087,17z/data=!4m6!3m5!1s0x357ca2eb421c44ad:0xe955a50c118085f8!8m2!3d37.5723718!4d126.9767087!16s%2Fg%2F11bwg77qn1"
                                    }
                                ]
                            },
                            "placeIds": {
                                "title": "Place IDs",
                                "type": "array",
                                "description": "Add Google Maps Place IDs, one per line. Example: ChIJLwiGVMKifDURzGJnUMCMSx8. You can find a place's ID in its Google Maps URL after the '1s' parameter.",
                                "editor": "stringList",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "cids": {
                                "title": "CIDs",
                                "type": "array",
                                "description": "Add Google Maps decimal CIDs, one per line. Example: 16813526255109441016.",
                                "editor": "stringList",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "cidStrs": {
                                "title": "CID strings (cid_str)",
                                "type": "array",
                                "description": "Add Google Maps cid_str values, one per line. Example: 0x357ca2eb421c44ad:0xe955a50c118085f8.",
                                "editor": "stringList",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "default": {}
                    },
                    "sort": {
                        "title": "Review sort order",
                        "enum": [
                            "relevant",
                            "newest",
                            "highest_rating",
                            "lowest_rating"
                        ],
                        "type": "string",
                        "description": "How to sort the reviews before collecting them.",
                        "default": "newest"
                    },
                    "maxReviews": {
                        "title": "Max reviews per place",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of reviews to collect per place. Leave empty to collect all available reviews."
                    },
                    "reviewsSince": {
                        "title": "Reviews since date",
                        "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
                        "type": "string",
                        "description": "Only collect reviews published on or after this date. This filter only works when review sort order is set to 'Newest first'."
                    },
                    "language": {
                        "title": "Language",
                        "enum": [
                            "en",
                            "ko",
                            "ja",
                            "zh-CN",
                            "zh-TW",
                            "es",
                            "fr",
                            "de",
                            "pt",
                            "it",
                            "ru",
                            "ar",
                            "hi",
                            "tr",
                            "nl"
                        ],
                        "type": "string",
                        "description": "Language for place details and review translations. For unlisted languages, use the JSON input editor to enter any BCP-47 code (e.g., 'th', 'vi', 'pl').",
                        "default": "en"
                    },
                    "outputFormat": {
                        "title": "Output format",
                        "enum": [
                            "flat",
                            "nested"
                        ],
                        "type": "string",
                        "description": "Flat format puts all fields at the top level, ideal for CSV and Excel export. Nested format groups fields under 'place' and 'review' objects, better for JSON processing.",
                        "default": "flat"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
