# Google Maps Reviews Scraper & AI Sentiment Analyzer (`strange-advanced-marketing/google-maps-reviews-analyzer`) Actor

Scrape Google Maps reviews for any business or search query. Extracts individual reviews with ratings, dates, and text. Analyzes sentiment, identifies common themes, flags negative patterns, and generates actionable insights. Perfect for reputation monitoring, competitor analysis, and local SEO.

- **URL**: https://apify.com/strange-advanced-marketing/google-maps-reviews-analyzer.md
- **Developed by:** [S.A.M.](https://apify.com/strange-advanced-marketing) (community)
- **Categories:** Lead generation
- **Stats:** 9 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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 Maps Reviews Scraper & AI Sentiment Analyzer

Scrape and analyze Google Maps reviews for any business or search query. Get individual reviews with ratings, dates, and full text, plus AI-powered sentiment analysis, theme detection, and actionable insights.

### What It Does

1. **Scrapes Reviews** — Extracts reviewer name, rating, date, full review text, and business owner responses
2. **Analyzes Sentiment** — Scores each review from -1 (negative) to +1 (positive), scored by a DistilBERT neural model (SST-2 fine-tuned), with keyword fallback
3. **Detects Themes** — Identifies what reviewers talk about: pricing, service quality, timeliness, cleanliness, reliability
4. **Extracts Keywords** — Finds the most common words in positive and negative reviews separately
5. **Flags Red Flags** — Highlights 1-2 star reviews for immediate attention
6. **Rating Distribution** — Shows the breakdown of star ratings

### Use Cases

- **Reputation Monitoring** — Track what customers say about your business
- **Competitor Analysis** — Compare review sentiment across competitors
- **Local SEO** — Identify themes that drive positive reviews
- **Marketing Agencies** — Audit client reputation before onboarding
- **Lead Generation** — Find businesses with poor reviews (they need help!)

### Input Options

| Field | Description | Default |
|-------|-------------|---------|
| searchQuery | Google Maps search or direct place URL | Required |
| maxBusinesses | How many businesses to analyze | 5 |
| maxReviewsPerBusiness | Reviews to scrape per business | 50 |
| minRating | Only include businesses above this rating | 1 |
| sortBy | Sort reviews: newest, highest, lowest, relevant | newest |
| analyzeSentiment | Run sentiment & theme analysis | true |

### Output

Each business includes:

- Basic info (name, rating, review count, address, phone)
- Individual reviews with sentiment scores and themes
- Analysis summary with:
  - Average sentiment score
  - Positive/negative/neutral review counts
  - Rating distribution
  - Top themes mentioned
  - Most common keywords (overall, positive, negative)
  - Red flag samples (worst reviews)

### Built By

**Strange Advanced Marketing (S.A.M.)** — AI-powered marketing for trade contractors.

Also check out our other tools:

- [Google Maps Lead Generator](https://apify.com/strange-advanced-marketing/google-maps-lead-generator) — Find leads with email & social enrichment
- [Instagram Profile Scraper](https://apify.com/strange-advanced-marketing/instagram-profile-scraper)
- [TikTok Profile Scraper](https://apify.com/strange-advanced-marketing/tiktok-profile-scraper)
- [Business Website Analyzer](https://apify.com/strange-advanced-marketing/business-website-analyzer)

# Actor input Schema

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

Either a Google Maps search query (e.g., 'plumbers in Dallas TX') or a direct Google Maps place URL. When using a search query, reviews are scraped for each business found.

## `maxBusinesses` (type: `integer`):

Maximum number of businesses to scrape reviews from (when using search query). Ignored for direct place URLs.

## `maxReviewsPerBusiness` (type: `integer`):

Maximum number of reviews to extract per business. More reviews = better analysis but longer run time.

## `minRating` (type: `number`):

Only include businesses with this minimum star rating (1-5). Set to 1 to include all.

## `sortBy` (type: `string`):

How to sort reviews before scraping.

## `analyzeSentiment` (type: `boolean`):

Run keyword extraction, sentiment scoring, and theme analysis on collected reviews. Adds insights but increases processing time.

## Actor input object example

```json
{
  "searchQuery": "turf installers in Miami FL",
  "maxBusinesses": 5,
  "maxReviewsPerBusiness": 50,
  "minRating": 1,
  "sortBy": "newest",
  "analyzeSentiment": 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 = {
    "searchQuery": "turf installers in Miami FL"
};

// Run the Actor and wait for it to finish
const run = await client.actor("strange-advanced-marketing/google-maps-reviews-analyzer").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": "turf installers in Miami FL" }

# Run the Actor and wait for it to finish
run = client.actor("strange-advanced-marketing/google-maps-reviews-analyzer").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": "turf installers in Miami FL"
}' |
apify call strange-advanced-marketing/google-maps-reviews-analyzer --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Uun813PmxBxB1FR1S/builds/8bcJuM3s6UKytkycd/openapi.json
