# Google Maps Scraper — Places, Ratings, Reviews, Contact (`yugenox/google-maps-scraper`) Actor

Scrape Google Maps places for any city + search terms: title, rating, reviews, category, phone, website, full address, coordinates, place ID. Coordinate-tiled for full coverage.

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

## Pricing

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

**Bulk-extract business & place data from Google Maps for an entire city — thousands of results per run, not the ~120 Google shows you on screen.**

Point this actor at a city and a list of search terms (`restaurant`, `dentist`, `gym`, `plumber`…) and it returns a clean, structured record for every matching place: name, category, average rating, review count, phone, website, full address, exact coordinates, Google Place ID, a photo, and the top reviews for each place. It's fast, reliable, and built to run at scale — one run gives you one clean, structured dataset.

Unlike a normal Google Maps search, which caps out at roughly 120 results for any single area no matter how far you scroll, this actor covers the whole city. That means you can pull **thousands of unique places for a single city in one run**, then export them to Excel, JSON, or feed them straight into your CRM. Results are kept within the city's real boundary, so you don't get places bleeding in from neighbouring towns.

Built for growth teams, agencies, analysts, and founders who need real, current local-business data at volume.

***

### 🎯 Use cases

- **Lead generation** — Build targeted prospect lists of local businesses (restaurants, gyms, dentists, contractors…) complete with phone numbers, websites, and addresses, ready for sales outreach and cold calling.
- **Competitor & market mapping** — Pull every competitor in a category across a metro area, with ratings, review counts, and price tiers, to see who's winning and where the gaps are.
- **Local SEO & directories** — Populate niche directories, citation databases, or "best of" listicles with accurate name-address-phone data and Google Place IDs.
- **Multi-city market research** — Run the same search terms across many cities to size markets, compare density and quality, and benchmark saturation before you expand.
- **Sentiment sampling** — Grab the top reviews per place to get a fast read on what customers love and complain about across a whole category.

***

### 📦 What data you get

One structured record **per place**, grouped here for clarity:

**🏷️ Identity**

- `title` — business / place name
- `categoryName` — primary category (e.g. "Italian restaurant")
- `categories` — all categories, as an array
- `description` — short place description (when available)
- `placeId` — Google Place ID (`ChI…`)
- `fid` / `cid` — Google's stable internal place identifiers

**📞 Contact**

- `phone` — display-formatted phone number
- `phoneUnformatted` — clean E.164-style digits (e.g. `+14165550132`)
- `website` — the business's website URL

**📍 Location**

- `street`, `city`, `state`, `postalCode` — parsed address parts
- `address` — full formatted address
- `latitude`, `longitude` — exact coordinates
- `url` — direct Google Maps link to the place

**⭐ Ratings & reviews**

- `totalScore` — average star rating
- `reviewsCount` — total number of reviews on Google
- `price` — price level (e.g. `$$`) when available
- `reviews` — an array of the **top / most-relevant reviews** for the place (reviewer, rating, date, text)

**🖼️ Media**

- `imageUrl` — a representative photo of the place

**🧭 Run context**

- `searchTerm` — which of your search terms surfaced this place
- `location` — the city you searched
- `scrapedAt` — ISO timestamp of the run

***

### ⚙️ Input

| Field | Type | Default | Description |
|---|---|---|---|
| `location` | string | `"Toronto, Ontario"` | **Required.** The city to cover — e.g. `"Toronto, Ontario"`, `"Austin, TX"`. Resolved to the city automatically for full coverage. |
| `searchTerms` | array of strings | `["restaurant"]` | **Required.** What to look for — e.g. `["restaurant", "cafe", "gas station"]`. The actor runs one full pass per term. |
| `maxPlaces` | integer | *(empty = all)* | Cap the total number of unique places returned. Leave empty to get everything found in the city. |
| `proxyConfiguration` | proxy | `{ "useApifyProxy": true }` | Proxy settings. Apify Proxy is recommended and enabled by default for reliable access to Google. |

**Minimal example input:**

```json
{
  "location": "Toronto, Ontario",
  "searchTerms": ["restaurant", "cafe"],
  "maxPlaces": 1000,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

***

### 📤 Output

Each result is one place object. Results stream into your dataset as they're found, so you can watch them arrive live and export at any point — as **JSON, CSV, Excel, or XML** — from the Apify Console or via the API.

```json
{
  "title": "Terroni Adelaide",
  "totalScore": 4.4,
  "reviewsCount": 3187,
  "categoryName": "Italian restaurant",
  "categories": ["Italian restaurant", "Pizza restaurant", "Wine bar"],
  "price": "$$",
  "phone": "(416) 203-3093",
  "phoneUnformatted": "+14162033093",
  "website": "https://www.terroni.com/",
  "street": "57 Adelaide St E",
  "city": "Toronto",
  "state": "ON",
  "postalCode": "M5C 1K6",
  "address": "57 Adelaide St E, Toronto, ON M5C 1K6, Canada",
  "latitude": 43.6497021,
  "longitude": -79.3766142,
  "fid": "0x89d4cb2f9a1b2c3d:0x4e5f6a7b8c9d0e1f",
  "cid": "5647382910564738291",
  "placeId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
  "description": "Classic Southern Italian dishes served in a lively, high-ceilinged room.",
  "imageUrl": "https://lh3.googleusercontent.com/places/terroni-adelaide-photo.jpg",
  "url": "https://www.google.com/maps/search/?api=1&query=Terroni%20Adelaide&query_place_id=ChIJN1t_tDeuEmsRUsoyG83frY4",
  "searchTerm": "restaurant",
  "location": "Toronto, Ontario",
  "scrapedAt": "2026-07-08T14:22:07.913Z",
  "reviews": [
    {
      "reviewer": "Jordan M.",
      "rating": 5,
      "date": "2026-05-30",
      "text": "Best Southern Italian in the city. The spaghettini al limone is unreal and the room has amazing energy."
    },
    {
      "reviewer": "Priya S.",
      "rating": 4,
      "date": "2026-04-11",
      "text": "Great pizza and wine list. Gets loud and busy on weekends, so book ahead."
    }
  ]
}
```

**Field reference:**

| Field | Type | Description |
|---|---|---|
| `title` | string | Business / place name |
| `totalScore` | number | Average star rating |
| `reviewsCount` | integer | Total number of reviews on Google |
| `categoryName` | string | Primary category |
| `categories` | array | All categories assigned to the place |
| `price` | string | Price level (e.g. `$$`), when available |
| `phone` | string | Display-formatted phone number |
| `phoneUnformatted` | string | Phone number as clean digits (E.164 style) |
| `website` | string | Business website URL |
| `street` | string | Street portion of the address |
| `city` | string | City |
| `state` | string | State / province code |
| `postalCode` | string | Postal / ZIP code |
| `address` | string | Full formatted address |
| `latitude` | number | Latitude coordinate |
| `longitude` | number | Longitude coordinate |
| `fid` | string | Google internal feature ID |
| `cid` | string | Google customer ID (numeric) |
| `placeId` | string | Google Place ID (`ChI…`) |
| `description` | string | Short place description, when available |
| `imageUrl` | string | URL of a representative photo |
| `url` | string | Direct Google Maps link to the place |
| `searchTerm` | string | The search term that surfaced this place |
| `location` | string | The city that was searched |
| `scrapedAt` | string | ISO 8601 timestamp of the run |
| `reviews` | array | Top reviews for the place — each with `reviewer`, `rating`, `date`, `text` |

***

### 🔧 Why you get more than 120 results

A normal Google Maps search only ever hands back about 120 results for one location, no matter how many businesses are actually there. This actor covers the **entire city** and merges everything into one clean dataset — so a single run surfaces **thousands of unique places** instead of a capped handful.

Results are kept **inside the city's real boundary**, so you don't get places bleeding in from neighbouring cities like Mississauga or Vaughan, and every business appears **once** — cleanly de-duplicated — even if it would otherwise show up more than once.

***

### ❓ FAQ

**How many places can I get per city?**
Far more than a standard Google Maps search. Because the actor covers the whole city rather than a single on-screen view, one run routinely returns **thousands of unique places** for a busy category in a large city. Use `maxPlaces` if you want to cap the total.

**Does it get reviews?**
Yes — it attaches the **top / most-relevant reviews** for each place (typically around 8–9), each with the reviewer name, star rating, date, and text. This is the highlighted-review set, not a place's entire review history — if you need **every review** for specific places, use the companion **Google Maps Reviews Scraper**, which is purpose-built to pull a place's complete review history.

**Can I scrape multiple search terms and multiple cities?**
Multiple search terms, yes — pass several in `searchTerms` and the actor runs one full pass per term in a single run, tagging every result with the `searchTerm` that surfaced it. For multiple cities, run the actor once per city (each run takes one `location`); this keeps each city's results cleanly filtered to its own boundary. You can schedule or batch these runs on Apify, and since the output format is identical, results merge cleanly.

**What export formats are supported?**
All of Apify's standard formats — you can download or access your results as **JSON, CSV, Excel, or XML**, from the Apify Console or programmatically via the Apify API and dataset endpoints.

**Do I need a proxy?**
Apify Proxy is recommended and enabled by default for dependable access to Google. You can adjust it in the `proxyConfiguration` field.

**Is it legal to scrape Google Maps?**
This Actor only collects publicly available data: business listings, and their public reviews, that anyone can see on Google Maps without signing in. Collecting publicly available data is generally legal, but you're responsible for how you use it. Results can include reviewers' public display names, and that counts as personal data. You must follow privacy laws such as GDPR, PIPEDA and CCPA, as well as Google's terms. If you're unsure, check with a lawyer. More on this: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

**Does it access any private data?**
No. Everything comes from pages Google Maps shows to any visitor without logging in. It never uses a login, never touches private or restricted accounts, and never reaches password-protected areas.

# Actor input Schema

## `location` (type: `string`):

City to cover — e.g. "Toronto, Ontario", "Austin, TX". Resolved to the city automatically for full coverage.

## `searchTerms` (type: `array`):

What to find, e.g. \["restaurant", "cafe", "gas station"]. One pass per term.

## `reviewKeyword` (type: `string`):

Only return places that have a review containing this word/phrase (case-insensitive) — e.g. "racist". Scans the top reviews of every place found and keeps just the matches (with the matching reviews). Leave empty to return all places.

## `maxPlaces` (type: `integer`):

Cap places SCANNED (leave empty for all). With a review keyword, output = only the matching places.

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

Apify Proxy (recommended for Google).

## Actor input object example

```json
{
  "location": "Toronto, Ontario",
  "searchTerms": [
    "restaurant"
  ],
  "proxyConfiguration": {
    "useApifyProxy": 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 = {
    "location": "Toronto, Ontario",
    "searchTerms": [
        "restaurant"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/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 = {
    "location": "Toronto, Ontario",
    "searchTerms": ["restaurant"],
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/google-maps-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 '{
  "location": "Toronto, Ontario",
  "searchTerms": [
    "restaurant"
  ]
}' |
apify call yugenox/google-maps-scraper --silent --output-dataset

```

## MCP server setup

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