# Google Maps Scraper – Places & Reviews Extractor (`barz.f.hussein/google-maps-scraper`) Actor

Scrape Google Maps search results, places, contact details, coordinates, opening hours, and reviews with reliable deduplication and pagination.

- **URL**: https://apify.com/barz.f.hussein/google-maps-scraper.md
- **Developed by:** [Barz F Hussein](https://apify.com/barz.f.hussein) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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/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 – Places & Reviews Extractor

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-orange?logo=apify)](https://apify.com)
[![Version](https://img.shields.io/badge/version-1.0-blue.svg)](https://apify.com)
[![TypeScript](https://img.shields.io/badge/TypeScript-5-blue?logo=typescript)](https://www.typescriptlang.org/)
[![License](https://img.shields.io/badge/license-Apache--2.0-green)](LICENSE)

A commercial-grade, high-performance **Google Maps Scraper** designed to extract detailed business listings, contact information, geographic coordinates, opening hours, and customer reviews from Google Maps at scale.

Whether you need **B2B lead generation**, **local market intelligence**, **competitor analysis**, or **sentiment research**, this Actor delivers clean, structured, and deduplicated data directly into CSV, Excel, JSON, or Google Sheets.

***

### 🌟 Why Use Google Maps Scraper?

- **Multi-Query Searching:** Run dozens of localized search queries in parallel (e.g., *"Dentists in Miami"*, *"Plumbers in Austin"*, *"Hotels in Chicago"*).
- **Direct Maps URL Support:** Paste any Google Maps search or place URL directly.
- **Rich Place Details (35+ Fields):** Extracts verified Google Place IDs (`ChIJ...`), decimal CIDs, hex CIDs, phone numbers, websites, root domains, full addresses, coordinates, categories, ratings, review counts, price levels, and weekly opening hours.
- **Deep Customer Reviews:** Collect complete review text (with automatic expansion of truncated text), star ratings, author profiles, and separate owner responses.
- **Smart 5-Tier Deduplication:** Automatically merges duplicates across overlapping searches while preserving separate franchise branches of the same chain.
- **Multiple Output Views:** Pre-configured console views for **Overview**, **Leads & Contacts**, and **Full Place Details**.
- **No Hallucinated Data:** Strict null safety. If a business does not list a website or phone number, it remains `null` rather than fabricated.
- **Residential Proxy Ready:** Seamlessly works with Apify Datacenter and Residential proxies to handle high-volume scraping without blocks.

***

### 📋 Extracted Data Fields

Each scraped place listing includes up to 35+ structured attributes:

| Category | Available Fields |
|---|---|
| **Identifiers** | `placeId` (True Google Place ID `ChIJ...`), `cid` (Decimal Customer ID), `hexCid` (0x... hex CID), `featureId` (`cell_id:cid` pair) |
| **Business Info** | `title`, `categoryName`, `categories` (full list), `priceLevel` (`$`, `$$`, `$$$`), `description` |
| **Contact Details** | `phone`, `internationalPhoneNumber`, `website`, `websiteDomain` (clean root domain) |
| **Location & Address** | `address` (full formatted), `street`, `neighborhood`, `city`, `state`, `postalCode`, `country`, `countryCode`, `plusCode` |
| **Geographic Coordinates**| `latitude`, `longitude`, `location` (`{ lat, lng }` object rounded to 6 decimal places) |
| **Ratings & Reviews** | `rating` (1.0 - 5.0), `reviewsCount` (total count of public reviews) |
| **Operating Hours** | `businessStatus` (`OPERATIONAL`, `CLOSED_TEMPORARILY`, `CLOSED_PERMANENTLY`), `permanentlyClosed`, `temporarilyClosed`, `currentOpeningStatus`, `openingHours` (full weekly Monday–Sunday schedule) |
| **Media & URLs** | `googleMapsUrl` (canonical link), `images` (high-resolution photo URLs) |
| **Metadata** | `searchQuery`, `discoveredInSearches` (cross-query tracking), `scrapedAt` (ISO-8601 timestamp) |

***

### 🚀 Quick Start

1. Open the Actor on [Apify Console](https://console.apify.com/actors).
2. Enter your search queries in **Search queries** (e.g. `["Italian restaurants in London"]`) or add **Start URLs**.
3. Choose your maximum results per search and total limits.
4. (Optional) Toggle **Scrape customer reviews** to collect reviews into the `reviews` dataset.
5. Click **Save & Start**.
6. View and export your data in the **Output** tab in **Table**, **JSON**, **CSV**, or **Excel** format.

***

### ⚙️ Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchStringsArray` | `array` | `["Coffee shops in London"]` | List of search queries to execute on Google Maps. |
| `startUrls` | `array` | `[]` | List of direct Google Maps search or place URLs. |
| `maxResults` | `integer` | `100` | Maximum total place records to export across all searches (1 – 5,000). |
| `maxResultsPerSearch` | `integer` | `50` | Maximum place records to collect per individual query (1 – 1,000). |
| `language` | `string` | `"en"` | Language code for search results (e.g., `en`, `es`, `fr`, `de`, `it`). |
| `countryCode` | `string` | `null` | Optional two-letter country code (e.g., `us`, `gb`, `de`, `fr`). |
| `scrapePlaceDetails` | `boolean` | `true` | When enabled, extracts comprehensive in-depth details (phone, website, hours). |
| `scrapeReviews` | `boolean` | `false` | When enabled, extracts customer reviews into the `reviews` named dataset. |
| `maxReviews` | `integer` | `10` | Maximum number of reviews to extract per place (1 – 500). |
| `reviewsSort` | `string` | `"most_relevant"` | Review sort order: `most_relevant`, `newest`, `highest_rating`, `lowest_rating`. |
| `deduplicateResults` | `boolean` | `true` | Eliminates duplicate records across queries using Place ID, CID, and coordinates. |
| `includeImages` | `boolean` | `true` | Extracts public image and photo URLs. |
| `includeOpeningHours` | `boolean` | `true` | Extracts weekly opening hours schedule and current status. |
| `maxConcurrency` | `integer` | `2` | Maximum concurrent browser contexts or tabs (1 – 10). |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Apify Proxy settings. Recommended for high-volume or cloud runs. |

***

### 💡 Practical Input Examples

#### 1. Multi-City B2B Lead Generation

Scrape local businesses across multiple cities and export their phone numbers and websites:

```json
{
  "searchStringsArray": [
    "Digital marketing agencies in Austin",
    "Digital marketing agencies in Dallas",
    "Digital marketing agencies in Houston"
  ],
  "maxResults": 300,
  "maxResultsPerSearch": 100,
  "scrapePlaceDetails": true,
  "scrapeReviews": false,
  "deduplicateResults": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### 2. Direct Search and Place URLs

Scrape specific places or curated search URLs directly:

```json
{
  "startUrls": [
    { "url": "https://www.google.com/maps/search/luxury+hotels+in+dubai" },
    { "url": "https://www.google.com/maps/place/Big+Ben/@51.5007292,-0.1246254,17z/" }
  ],
  "maxResults": 50,
  "scrapePlaceDetails": true
}
```

#### 3. Competitor Sentiment & Review Extraction

Extract places along with verified customer reviews for sentiment and reputation analysis:

```json
{
  "searchStringsArray": [
    "Boutique hotels in Paris"
  ],
  "maxResults": 20,
  "maxResultsPerSearch": 20,
  "scrapePlaceDetails": true,
  "scrapeReviews": true,
  "maxReviews": 25,
  "reviewsSort": "newest",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### 4. High-Volume Production Run with Residential Proxies

For massive lead generation campaigns running thousands of records:

```json
{
  "searchStringsArray": [
    "Real estate agents in Manhattan",
    "Real estate agents in Brooklyn",
    "Real estate agents in Queens"
  ],
  "maxResults": 1000,
  "maxResultsPerSearch": 300,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

***

### 📊 Output Presentation & Formats

#### 1. Default Dataset (Places)

Every extracted business record is pushed to the default dataset:

```json
{
  "placeId": "ChIJ2dGMjMMEdkgRqVqkuXQkj7c",
  "cid": "13226830714359798441",
  "hexCid": "0xb78f2474b9a45aa9",
  "featureId": "0x487604c38c8cd1d9:0xb78f2474b9a45aa9",
  "title": "Big Ben",
  "categoryName": "Cultural landmark",
  "categories": [
    "Cultural landmark",
    "Historical landmark",
    "Tourist attraction"
  ],
  "address": "London SW1A 0AA, United Kingdom",
  "neighborhood": null,
  "street": null,
  "city": "London",
  "state": null,
  "postalCode": "SW1A 0AA",
  "country": "United Kingdom",
  "countryCode": null,
  "plusCode": "GV2G+74 London, United Kingdom",
  "latitude": 51.500729,
  "longitude": -0.124625,
  "location": {
    "lat": 51.500729,
    "lng": -0.124625
  },
  "googleMapsUrl": "https://www.google.com/maps/place/Big+Ben/@51.5007292,-0.1246254,17z/data=!3m1!4b1!4m6!3m5!1s0x487604c38c8cd1d9:0xb78f2474b9a45aa9!8m2!3d51.5007292!4d-0.1246254!16zL20vMDI2eWRj",
  "website": "https://www.parliament.uk/bigben",
  "websiteDomain": "parliament.uk",
  "phone": "+44 20 7219 4272",
  "internationalPhoneNumber": "+44 20 7219 4272",
  "rating": 4.6,
  "reviewsCount": 99369,
  "priceLevel": null,
  "businessStatus": "OPERATIONAL",
  "permanentlyClosed": false,
  "temporarilyClosed": false,
  "currentOpeningStatus": "Open · Closes 5 PM",
  "openingHours": [
    { "day": "Monday", "hours": "9:00 AM – 5:00 PM" },
    { "day": "Tuesday", "hours": "9:00 AM – 5:00 PM" },
    { "day": "Wednesday", "hours": "9:00 AM – 5:00 PM" },
    { "day": "Thursday", "hours": "9:00 AM – 5:00 PM" },
    { "day": "Friday", "hours": "9:00 AM – 5:00 PM" },
    { "day": "Saturday", "hours": "Closed" },
    { "day": "Sunday", "hours": "Closed" }
  ],
  "description": "16-storey Gothic clocktower and national symbol at the Eastern end of the Houses of Parliament.",
  "images": [
    "https://lh3.googleusercontent.com/p/AF1QipN..."
  ],
  "searchQuery": "Big Ben London",
  "discoveredInSearches": [
    "Big Ben London",
    "Top London Sights"
  ],
  "scrapedAt": "2026-11-19T13:06:32.518Z"
}
```

#### 2. Named Dataset (`reviews`)

When `scrapeReviews` is enabled, customer reviews are saved to the dedicated `reviews` dataset to maintain a clean tabular view for places:

```json
{
  "placeId": "ChIJ2dGMjMMEdkgRqVqkuXQkj7c",
  "placeTitle": "Big Ben",
  "reviewId": "Ci9DQUlRQUNvZENodHljRjlvT21Vd0xXSkdZVGR0TWt0TGFqbGpjaTFQZWt4TllsRRAB",
  "reviewerName": "Thilina Samarathunga",
  "reviewerProfileUrl": "https://www.google.com/maps/contrib/102930557072947413940/reviews?hl=en",
  "reviewerPhotoUrl": "https://lh3.googleusercontent.com/a-/ALV-UjWS3BS...",
  "rating": 5,
  "reviewText": "Seeing Big Ben in person was one of those rare moments that genuinely lived up to every expectation. Standing beneath it and seeing it up close for the first time was breathtaking. The architecture is magnificent and hearing the famous chimes literally gives you chills.",
  "reviewDate": "4 months ago",
  "reviewTimestamp": null,
  "ownerResponse": null,
  "ownerResponseDate": null,
  "scrapedAt": "2026-11-19T12:10:24.741Z"
}
```

***

### 🖥️ Custom Dataset Views in Apify Console

When viewing results in the Apify Console, switch between tabs tailored to your workflow:

1. **Overview View (`overview`):** Ideal for a quick look. Displays Place Name, Category, Rating, Reviews Count, Phone, Website (clickable), Address, City, Country, and Maps Link.
2. **Leads & Contacts View (`leads`):** Built for CRM enrichment and sales outreach. Displays Business Name, Category, Local Phone, International Phone, Website, Root Domain, Street, City, Postal Code, and Country.
3. **Full Place Details View (`details`):** Complete technical view displaying all identifiers (`placeId`, `cid`, `hexCid`, `featureId`), coordinates, operational status, and scrape timestamps.

***

### 💻 API & Integration Usage

You can automate and trigger this Actor via the Apify API or official SDKs:

#### Node.js (JavaScript / TypeScript)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({
    token: 'YOUR_APIFY_TOKEN',
});

const run = await client.actor('barz.f.hussein/google-maps-scraper').call({
    searchStringsArray: ['Coffee shops in Soho London'],
    maxResults: 50,
    scrapePlaceDetails: true,
    scrapeReviews: false,
    proxyConfiguration: { useApifyProxy: true },
});

// Fetch all extracted places from the default dataset
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} places!`);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient('YOUR_APIFY_TOKEN')

run = client.actor('barz.f.hussein/google-maps-scraper').call(run_input={
    'searchStringsArray': ['Dentists in Chicago', 'Chiropractors in Chicago'],
    'maxResults': 100,
    'scrapePlaceDetails': True,
    'scrapeReviews': False,
    'proxyConfiguration': {'useApifyProxy': True},
})

## Iterate over extracted records
for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item['title'], item['phone'], item['website'])
```

#### Export Formats

You can directly download results via URL:

- **JSON:** `https://api.apify.com/v2/datasets/{DATASET_ID}/items?format=json`
- **CSV:** `https://api.apify.com/v2/datasets/{DATASET_ID}/items?format=csv`
- **Excel (XLSX):** `https://api.apify.com/v2/datasets/{DATASET_ID}/items?format=xlsx`

***

### ❓ Frequently Asked Questions (FAQ)

#### How can I scrape more than 120 results for a city?

Google Maps web client naturally caps infinite scrolling at approximately 120 – 200 places per search query. To extract thousands of businesses across a large city or region, **divide your searches geographically**:

- By borough or neighborhood: `["Restaurants in Soho London", "Restaurants in Covent Garden London", "Restaurants in Camden London"]`
- By postal code / zip code: `["Plumbers 90210", "Plumbers 90001", "Plumbers 90002"]`
- By subcategory: `["Italian restaurant London", "Japanese restaurant London", "French restaurant London"]`

Because the Actor includes **automatic cross-query deduplication**, overlapping results will be automatically merged without duplicate records!

#### Why are some phone numbers or websites null?

We follow an uncompromising **zero-hallucination data quality standard**. If a business has not published a telephone number or website on its Google Maps listing, the field is returned as `null`. We never estimate, guess, or fabricate contact data.

#### How does deduplication work?

The Actor utilizes a 5-stage priority matching algorithm:

1. Google Place ID (`placeId`)
2. Decimal Customer ID (`cid`)
3. Hexadecimal CID (`hexCid`)
4. Feature ID composite pair (`featureId`)
5. Canonical URL
6. Diacritic-normalized title + geographic proximity ($\le 35$ meters)

Distinct branches of franchise chains (e.g., Starbucks at two different street corners) are **safely preserved** as separate entries because of their differing coordinates and Place IDs.

#### Do I need proxies?

For small runs (1 – 50 places), datacenter proxies or direct connections often suffice. For production runs or scraping multiple queries, **Apify Residential Proxies** (`apifyProxyGroups: ["RESIDENTIAL"]`) are strongly recommended to prevent rate limits or 429 status codes from Google.

***

### ⚖️ Compliance & Responsible Usage

- This Actor automates access to publicly available information on Google Maps.
- Users are responsible for complying with Google's Terms of Service, applicable local privacy regulations (GDPR, CCPA), and laws regarding data collection, commercial communication, and cold outreach.
- Do not use extracted contact information for unlawful spam, harassment, or abusive communications.
- The Actor does not attempt to defeat CAPTCHA systems or exploit unauthorized private internal APIs.

***

### 💬 Support & Feedback

If you encounter any issues, need a custom feature, or have suggestions for improvements, please reach out via the **Issues** tab in the Apify Console or contact support.

# Actor input Schema

## `searchStringsArray` (type: `array`):

List of Google Maps search queries (e.g., 'Restaurants in London', 'Coffee shops in Manchester').

## `startUrls` (type: `array`):

Direct Google Maps search or place URLs to scrape.

## `maxResults` (type: `integer`):

Maximum total places to extract across all queries.

## `maxResultsPerSearch` (type: `integer`):

Maximum places to extract for each individual search query.

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

Language for Google Maps results (e.g., 'en', 'es', 'fr', 'de').

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

Optional two-letter country code (e.g., 'us', 'gb', 'fr').

## `scrapePlaceDetails` (type: `boolean`):

Whether to navigate to and extract detailed place pages (phone, website, hours, amenities).

## `scrapeReviews` (type: `boolean`):

Whether to extract public customer reviews for each place into the 'reviews' dataset.

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

Maximum number of reviews to extract per place listing (when review extraction is enabled).

## `reviewsSort` (type: `string`):

Order to sort customer reviews.

## `deduplicateResults` (type: `boolean`):

Prevent duplicate place records when the same place appears across multiple search queries.

## `includeImages` (type: `boolean`):

Extract image and photo URLs when available.

## `includeOpeningHours` (type: `boolean`):

Extract weekly opening hours and current status.

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

Maximum number of parallel browser tabs or contexts to use.

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

Proxy settings. Using Apify Proxy (RESIDENTIAL or datacenter) is strongly recommended for large-scale Google Maps scraping.

## Actor input object example

```json
{
  "searchStringsArray": [
    "Coffee shops in London"
  ],
  "maxResults": 100,
  "maxResultsPerSearch": 50,
  "language": "en",
  "scrapePlaceDetails": true,
  "scrapeReviews": false,
  "maxReviews": 10,
  "reviewsSort": "most_relevant",
  "deduplicateResults": true,
  "includeImages": true,
  "includeOpeningHours": true,
  "maxConcurrency": 2
}
```

# Actor output Schema

## `places` (type: `string`):

Default dataset containing extracted places with contact details, ratings, and addresses.

## `allPlaces` (type: `string`):

Complete dataset of places with all structured attributes, IDs, and metadata.

## `executionSummary` (type: `string`):

Run metrics, deduplication count, discovered places, and duration.

# 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 = {
    "searchStringsArray": [
        "Coffee shops in London"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("barz.f.hussein/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 = { "searchStringsArray": ["Coffee shops in London"] }

# Run the Actor and wait for it to finish
run = client.actor("barz.f.hussein/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 '{
  "searchStringsArray": [
    "Coffee shops in London"
  ]
}' |
apify call barz.f.hussein/google-maps-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,barz.f.hussein/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/8lTwL0X4xtUSTvhNu/builds/ZnejqV0nLpJoLqORu/openapi.json
