# Google Maps Reviews Scraper (`poidata/google-maps-reviews-scraper`) Actor

Extract Google Maps reviews with ease! Scrape reviews from any Google Maps listing using Place IDs or URLs. Get ratings, text, photos, timestamps, and user data. Perfect for market research, sentiment analysis, and business intelligence. Supports bulk processing and flexible sorting options.

- **URL**: https://apify.com/poidata/google-maps-reviews-scraper.md
- **Developed by:** [PoiData](https://apify.com/poidata) (community)
- **Categories:** E-commerce
- **Security:** Full permissions
- **Stats:** 42 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 📝 Google Maps Reviews Scraper - Apify Actor

[![Apify](https://img.shields.io/badge/Apify-Actor-blue.svg)](https://apify.com)
[![Python](https://img.shields.io/badge/Python-3.8+-green.svg)](https://python.org)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

> **Extract Google Maps reviews with ease** - A powerful Apify actor that scrapes reviews from Google Maps listings using Place IDs or URLs. Perfect for market research, sentiment analysis, and business intelligence.

### 🚀 Features

- **🔍 Multiple Input Methods**: Use Google Maps Place IDs or URLs directly
- **📊 Rich Data Extraction**: Get comprehensive review data including ratings, text, photos, and metadata
- **🔒 Privacy Compliant**: Optional personal data exclusion for GDPR compliance
- **⚡ High Performance**: Efficient scraping with progress tracking and error handling
- **🔄 Flexible Sorting**: Sort by relevance, newest, highest, or lowest ratings
- **📈 Scalable**: Handle multiple Place IDs/URLs in a single run
- **🎯 Customizable Limits**: Set review limits from 1 to 99,999 per listing

### 📋 Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| **Place ID(s)** | Array | Either Place ID or URL | Google Maps Place ID(s) to scrape (e.g., `0x0:0x2fc6687f46f682d5`) |
| **URL(s)** | Array | Either Place ID or URL | Google Maps URL(s) - Place IDs will be automatically extracted |
| **maxReviews** | Integer | ✅ Required | Maximum reviews per listing (1-99,999, default: 10) |
| **sorting** | String | Optional | Sort method: `relevant`, `newest`, `highest`, `lowest` |
| **includePersonalData** | Boolean | Optional | Include user names, IDs, and photos (default: true) |

### 📊 Output Data

Each review record contains:

#### Core Review Data

- **rank**: Review position in results
- **rating**: Star rating (1-5)
- **review**: Full review text
- **timestamp**: Human-readable date/time
- **photos**: Array of photo URLs
- **review_language**: Language code (e.g., "en")
- **review_source**: Source platform

#### User Information (when enabled)

- **user_name**: Reviewer's name
- **user_id**: Unique user identifier
- **profile_photo**: User's profile picture URL
- **total_reviews**: User's total review count

### 🎯 Use Cases

#### Business Intelligence

- **Competitor Analysis**: Monitor competitor reviews and ratings
- **Market Research**: Understand customer sentiment across locations
- **Brand Monitoring**: Track your business reputation
- **Product Research**: Analyze customer feedback for product improvements

#### Data Analysis

- **Sentiment Analysis**: Process review text for sentiment insights
- **Trend Analysis**: Track rating changes over time
- **Geographic Analysis**: Compare performance across locations
- **Customer Insights**: Understand customer preferences and pain points

#### SEO & Marketing

- **Content Research**: Find trending topics and keywords
- **Local SEO**: Analyze local business performance
- **Review Management**: Monitor and respond to customer feedback
- **Market Positioning**: Understand your market position

### 🚀 Quick Start

#### 1. Using Google Maps Place IDs

```json
{
  "gid": ["0x0:0x2fc6687f46f682d5"],
  "maxReviews": 100,
  "sorting": "newest",
  "includePersonalData": true
}
```

#### 2. Using Google Maps URLs

```json
{
  "url": ["https://maps.google.com/place/..."],
  "maxReviews": 50,
  "sorting": "highest",
  "includePersonalData": false
}
```

#### 3. Multiple Inputs

```json
{
  "gid": ["0x0:0x2fc6687f46f682d5", "0x0:0x1234567890abcdef"],
  "url": ["https://maps.google.com/place/..."],
  "maxReviews": 25,
  "sorting": "relevant"
}
```

### 🔧 Advanced Usage

#### Privacy-Compliant Scraping

For GDPR compliance or privacy-sensitive applications:

```json
{
  "gid": ["0x0:0x2fc6687f46f682d5"],
  "maxReviews": 1000,
  "includePersonalData": false
}
```

This will replace personal information with `[REDACTED]` placeholders.

#### Large-Scale Scraping

For comprehensive data collection:

```json
{
  "gid": ["0x0:0x2fc6687f46f682d5"],
  "maxReviews": 99999,
  "sorting": "newest"
}
```

#### Sorting Options

- **`relevant`**: Most relevant reviews (default)
- **`newest`**: Latest reviews first
- **`highest`**: Highest rated reviews first
- **`lowest`**: Lowest rated reviews first

### 📈 Performance & Limits

- **Processing Speed**: ~100-500 reviews per minute
- **Concurrent Requests**: Optimized for Apify platform
- **Error Handling**: Automatic retries with exponential backoff
- **Progress Tracking**: Real-time progress updates
- **Memory Efficient**: Streams data to avoid memory issues

### 🔍 Finding Google Maps Place IDs

#### Method 1: From URL

1. Open Google Maps
2. Search for a business
3. Copy the URL
4. The Place ID is in the URL path (e.g., `0x89c25d065dde934f:0x1233b8bb69c049e8`)

#### Method 2: Using Place ID

1. Use Place ID

### 📊 Output Formats

#### Apify Dataset

- **Format**: JSON records
- **Export**: CSV, JSON, Excel, XML formats

#### Sample Output Record

```json
{
    "rank": 2,
    "rating": 4,
    "review": "The burger was great served medium. The fries were delicious too. Perfect serving size. I wish the pickle was thinly sliced to easily add to the burger though.\n\nI love creme brûlée so I was very disappointed when mine came out very poorly. The consistency was all wrong.\n\nOther than that, the atmosphere was great.",
    "photos": [
      "https://lh3.googleusercontent.com/geougc-cs/AB3l90AIUgXvyFrhBAmPi0qKOCLv0t-tStVoARoDouQ1NxXi6jZlrCmJJLsrtWKeCboqp2Gp0PyYQE7RIf6SN0MvPwHsfIotDKYszwll-NMTpd0TI359ETNVM8pNlplhuI7CUxGIG1TUwRwK-VE",
      "https://lh3.googleusercontent.com/geougc-cs/AB3l90BBi2cDSuzS1aspVxePBP__gele0Me2jqj0TWDwlZGff4kEPEglzrclexED8hCO8OckO13Vaj8r_D0BwPCIExq6vTy7X3HnJmWxlpAMPjc6TpyF7IaT4siM6NWtY699jbmWVyYjuYKBDpU"
    ],
    "time": "2025-08-02 21:54:01",
    "review_language": "en",
    "review_source": "Google",
    "review_likes": 0,
    "review_url": "https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sCi9DQUlRQUNvZENodHljRjlvT2psTVRIaHlTVFp6VldkblFtMUxSeTFZVWxOdFlWRRAB!2m1!1s0x0:0x2fc6687f46f682d5!3m1!1s2@1:CAIQACodChtycF9oOjlMTHhySTZzVWdnQm1LRy1YUlNtYVE|0cYcZXqDoqZ|?hl=en",
    "placeId": "0x89c259a1ec5f5573:0x2fc6687f46f682d5",
    "user_total_reviews": 52,
    "scraped_at": 1755027683.4377072,
    "user_id": "109613240555692913673",
    "user_name": "Siphiwe Muze",
    "profile_photo": "https://lh3.googleusercontent.com/a-/ALV-UjXTsZIaxLBtGc-0nlPjyNSqxWzIyPEuRYTp_JKf5XRtDUUjD0wB=s120-c-rp-mo-ba4-br100"
  },
```

### 🔒 Privacy & Compliance

#### GDPR Compliance

- **Personal Data Control**: Optional inclusion/exclusion of personal data
- **Data Minimization**: Only collect necessary information
- **Transparency**: Clear data processing information
- **User Rights**: Respect user privacy preferences

#### Data Security

- **Secure Transmission**: HTTPS encryption
- **No Data Storage**: Actor doesn't store data permanently
- **API Security**: Secure API key handling
- **Access Control**: Apify platform security

### 🆘 Troubleshooting

#### Common Issues

**"Schema validation failed"**

- Ensure all required fields are provided
- Check data types match expected schema
- Verify Place ID format is correct

**"No reviews found"**

- Verify Place ID/URL is correct
- Check if business has reviews
- Try different sorting options

**"API request failed"**

- Check internet connection
- Verify API key is valid
- Wait and retry (rate limiting)

#### Error Messages

| Error | Solution |
|-------|----------|
| `No GID or URL provided` | Provide either Place ID or URL in input |
| `Invalid GID format` | Check Place ID format (0x...:0x...) |
| `API rate limit exceeded` | Wait and retry later |
| `Business not found` | Verify Place ID/URL is correct |

````

### 📈 Changelog

#### v0.1.0 (2025-08-12)
- ✨ Initial release
- 🔍 Place ID and URL input support
- 📊 Rich review data extraction
- 🔒 Privacy compliance features
- ⚡ Performance optimizations
- 📈 Progress tracking and logging

---

**Made with ❤️ by POIData.io**

*Transform your Google Maps data into actionable insights with our powerful scraping solution.*



# Actor input Schema

## `placeId` (type: `array`):

Google Maps Place ID(s) to scrape reviews from. You can provide multiple Place IDs. Examples: 0x0:0x2fc6687f46f682d5. Either Place ID or URL is required.
## `url` (type: `array`):

Google Maps URL(s) to scrape reviews from. The Actor will automatically extract Place IDs from URLs. Either Place ID or URL is required.
## `sorting` (type: `string`):

How to sort the reviews
## `maxReviews` (type: `integer`):

Max number of reviews per place to scrape. If you fill in 0 or nothing, no reviews will be scraped. For all reviews, just put 99999.
## `includePersonalData` (type: `boolean`):

Include personal data such as User ID, name, and profile photo. Set to false to exclude personal information for privacy compliance.

## Actor input object example

```json
{
  "placeId": [
    "0x89c259a1ec5f5573:0x2fc6687f46f682d5"
  ],
  "sorting": "relevant",
  "maxReviews": 10,
  "includePersonalData": true
}
````

# 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("poidata/google-maps-reviews-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("poidata/google-maps-reviews-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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 poidata/google-maps-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,poidata/google-maps-reviews-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/nhbZRICHcXgK29NmM/builds/JEx3nuSt73wpmPoYb/openapi.json
