# Google Reviews Scraper - Ratings, Text & Owner Responses (`lazymac/google-reviews-scraper`) Actor

Scrape Google Maps reviews by place URL or search query. Each row is one review with author, star rating, text, date, owner response, and likes count.

- **URL**: https://apify.com/lazymac/google-reviews-scraper.md
- **Developed by:** [2x lazymac](https://apify.com/lazymac) (community)
- **Categories:** Lead generation
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Reviews Scraper

Scrape Google Maps reviews by place URL or search query.

Each dataset row is one review with: author, star rating, text, date, owner response, and likes count.

### Use cases

- Reputation management: monitor what customers say about your business or competitors
- Sentiment analysis: feed review text into NLP pipelines for tone and topic extraction
- Local SEO: track rating trends over time for a set of locations
- Competitive research: compare review volume and sentiment across rivals

### Input

| Field | Type | Description |
|---|---|---|
| placeUrls | string\[] | Direct Google Maps place URLs |
| searchQueries | string\[] | Search terms to find places (e.g. "coffee shop in Seattle") |
| maxReviewsPerPlace | integer | Reviews per place (default 20) |
| language | string | Google Maps language code (default "en") |
| countryCode | string | Region code for results (default "US") |
| maxConcurrency | integer | Parallel browser tabs (default 3) |

Leave all fields empty to run a quick demo on a sample place (5 reviews).

### Output columns

| Column | Description |
|---|---|
| placeName | Business name from the Maps listing |
| placeUrl | Canonical Google Maps URL |
| reviewId | Unique review identifier from Google |
| author | Name of the reviewer |
| rating | Star rating (1–5) |
| text | Full review text |
| reviewDate | Date string as shown on Google Maps |
| ownerResponse | Owner reply text, or null |
| likesCount | Number of "helpful" votes, or null |
| scrapedAt | ISO timestamp of when the row was collected |

### Pricing

Pay-per-event:

- INIT: $0.02 per run (one charge on start)
- REVIEW: $0.001 per review row saved

A 100-review run costs roughly $0.12.

### Notes

- A residential proxy is recommended. Google actively blocks datacenter IPs on Maps.
- Review panel selectors may drift over time with Google UI updates.
- Owner responses and likes counts are best-effort (not all reviews show them).

# Actor input Schema

## `placeUrls` (type: `array`):

Google Maps place URLs to scrape reviews from (e.g. https://www.google.com/maps/place/...). Takes priority over searchQueries.

## `searchQueries` (type: `array`):

Search terms to find places and then scrape their reviews (e.g. 'coffee shop in Seattle'). Top results are visited.

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

Maximum number of reviews to collect from each place.

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

Language code for Google Maps interface (e.g. en, de, fr).

## `countryCode` (type: `string`):

Country/region code for localized results (e.g. US, GB, DE).

## `maxConcurrency` (type: `integer`):

Number of browser tabs to run in parallel.

## `proxyConfiguration` (type: `object`):

Proxy settings. Residential proxy strongly recommended to avoid Google blocks.

## Actor input object example

```json
{
  "placeUrls": [],
  "searchQueries": [],
  "maxReviewsPerPlace": 20,
  "language": "en",
  "countryCode": "US",
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "placeUrls": [],
    "searchQueries": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lazymac/google-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 = {
    "placeUrls": [],
    "searchQueries": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("lazymac/google-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 '{
  "placeUrls": [],
  "searchQueries": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call lazymac/google-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lazymac/google-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/lKpVtVNK5N9b2425P/builds/IrY5oX7JxbjduenlR/openapi.json
