# Google Maps Business Scraper — Email & Social Enrichment (`aiscraperdev/scrape-google-maps-business-leads`) Actor

Extract Google Maps business listings by search query, location, or custom map area. Get name, address, phone, website, ratings, reviews, and opening hours — plus optional email and social media enrichment by crawling each business's website. No login required.

- **URL**: https://apify.com/aiscraperdev/scrape-google-maps-business-leads.md
- **Developed by:** [Randeep Dhillon](https://apify.com/aiscraperdev) (community)
- **Categories:** Lead generation, SEO tools, Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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 Local Business Scraper

Scrape Google Maps business listings at scale by search query, free-text location, or geographic boundary. Automatically extract place metadata, ratings, reviews, contact details, and perform secondary website enrichment for email addresses and social media links.

---

### What does Google Maps Local Business Scraper do?

Google Maps is the world's largest repository of local business information. This Apify Actor uses browser automation with **PlaywrightCrawler** to extract detailed business profiles directly from Google Maps.

- **Geographic Subdivision**: Bypasses Google Maps' native ~120 result per viewport cap using recursive polygon grid subdivision.
- **Rich Business Data**: Title, address breakdown, phone numbers, websites, star ratings, review distribution, price brackets, and opening hours.
- **Website Enrichment (Secondary Hop)**: Optionally visits each business's website to discover contact email addresses, social media links (Facebook, Instagram, TikTok, X), and key staff members.
- **Review Extraction**: Extract detailed customer review texts and star ratings.

---

### How to use

#### Step 1 — Define your search queries

You can search by:
1. **Search Terms**: e.g., `["restaurants in Austin"]`, `["gyms in Miami"]`.
2. **Location Query**: Provide an explicit location (e.g. `Austin, TX`) to combine with search terms.
3. **Geographic Polygon / Search Area**: Pass a GeoJSON geometry (`Polygon`, `MultiPolygon`, or `Point` + `radiusMeters`) to automatically trigger sub-5km geographic grid subdivision.

#### Step 2 — Configure options

- **Max Crawled Places Per Search**: Cap results per query (default: `120`).
- **Include Website Enrichment**: Enable secondary crawl of business websites for emails & social links.
- **Include Reviews**: Extract customer review text and ratings.

#### Step 3 — Run & Export

Click **Start** and export clean, structured datasets in **JSON, CSV, or Excel** format.

---

### Input Example

```json
{
  "searchStringsArray": ["restaurants in Austin"],
  "locationQuery": "Austin, TX",
  "maxCrawledPlacesPerSearch": 120,
  "language": "en",
  "includeWebsiteEnrichment": true,
  "includeReviews": false,
  "proxyConfiguration": { "useApifyProxy": true }
}
````

***

### Output Sample

```json
{
  "placeId": "ChIJ_restaurants_30.2672_-97.7431",
  "title": "Terry Black's BBQ",
  "categoryName": "Barbecue restaurant",
  "permanentlyClosed": false,
  "temporarilyClosed": false,
  "address": {
    "street": "1003 Barton Springs Rd",
    "city": "Austin",
    "state": "TX",
    "countryCode": "US",
    "postalCode": "78704",
    "plusCode": ""
  },
  "location": {
    "lat": 30.2598,
    "lng": -97.7548
  },
  "phone": "+1 512-394-5899",
  "website": "https://www.terryblacksbbq.com/",
  "openingHours": [
    { "day": "Monday", "hours": "9 AM–5 PM" }
  ],
  "popularTimes": {
    "live": null,
    "histogram": {}
  },
  "priceBracket": "$$",
  "totalScore": 4.7,
  "reviewsCount": 12500,
  "reviewsDistribution": { "1": 0, "2": 0, "3": 0, "4": 0, "5": 0 },
  "reviews": [],
  "questionsAndAnswers": [],
  "enrichment": {
    "emails": ["info@terryblacksbbq.com"],
    "socialLinks": {
      "facebook": "https://www.facebook.com/terryblacksbbq",
      "instagram": "https://www.instagram.com/terryblacksbbq",
      "tiktok": null,
      "x": null
    },
    "employees": [],
    "enrichmentStatus": "ok"
  },
  "scrapedAt": "2026-07-21T18:49:25.000Z"
}
```

***

### Pay-Per-Event (PPE) Monetization

This Actor uses Apify's **Pay-Per-Event (PPE)** pricing model:

- **Base Place Record**: $1.50 per 1,000 scraped listings.
- **Website Enrichment Hop**: $1.50 per 1,000 enriched records.
- **Review Extraction**: $0.30 per 1,000 extracted reviews.
- **Actor Start Floor**: $0.05 per run.

***

### Data Quality Guarantees

- **No duplicate `placeId` rows**: Automatic cross-grid deduplication.
- **Strict schema adherence**: Missing keys return `null` or `[]` (never omitted).
- **Clean URLs**: All website URLs normalized to full `https://` (Google redirects stripped).
- **ISO Timestamps & Upper Case Country Codes**.

# Actor input Schema

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

Array of search queries to execute on Google Maps (e.g., 'restaurants in Austin', 'gyms in Miami').

## `locationQuery` (type: `string`):

Optional location name appended to search terms if searchArea is not specified.

## `searchArea` (type: `object`):

Optional GeoJSON geometry (Polygon, MultiPolygon, or Point with radius) to bound search results via geographic subdivision.

## `maxCrawledPlacesPerSearch` (type: `integer`):

Maximum number of business listings to extract per search query (0 = unlimited).

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

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

## `includeWebsiteEnrichment` (type: `boolean`):

Triggers a secondary hop to visit the business's website and extract emails, social media links, and team members.

## `includeReviews` (type: `boolean`):

Extract customer review texts, star ratings, and review distribution stats.

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

Maximum number of customer reviews to extract per place listing (only if includeReviews is true).

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

Apify Proxy settings to avoid IP blocks and geographic restrictions.

## Actor input object example

```json
{
  "searchStringsArray": [
    "restaurants in Austin"
  ],
  "locationQuery": "Austin, TX",
  "searchArea": {},
  "maxCrawledPlacesPerSearch": 50,
  "language": "en",
  "includeWebsiteEnrichment": false,
  "includeReviews": false,
  "maxReviews": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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": [
        "restaurants in Austin"
    ],
    "locationQuery": "Austin, TX",
    "searchArea": {},
    "maxCrawledPlacesPerSearch": 50,
    "language": "en",
    "includeWebsiteEnrichment": false,
    "includeReviews": false,
    "maxReviews": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("aiscraperdev/scrape-google-maps-business-leads").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": ["restaurants in Austin"],
    "locationQuery": "Austin, TX",
    "searchArea": {},
    "maxCrawledPlacesPerSearch": 50,
    "language": "en",
    "includeWebsiteEnrichment": False,
    "includeReviews": False,
    "maxReviews": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("aiscraperdev/scrape-google-maps-business-leads").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 '{
  "searchStringsArray": [
    "restaurants in Austin"
  ],
  "locationQuery": "Austin, TX",
  "searchArea": {},
  "maxCrawledPlacesPerSearch": 50,
  "language": "en",
  "includeWebsiteEnrichment": false,
  "includeReviews": false,
  "maxReviews": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call aiscraperdev/scrape-google-maps-business-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=aiscraperdev/scrape-google-maps-business-leads",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Business Scraper — Email & Social Enrichment",
        "description": "Extract Google Maps business listings by search query, location, or custom map area. Get name, address, phone, website, ratings, reviews, and opening hours — plus optional email and social media enrichment by crawling each business's website. No login required.",
        "version": "0.0",
        "x-build-id": "TDpdoZBkBc26zKuea"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/aiscraperdev~scrape-google-maps-business-leads/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-aiscraperdev-scrape-google-maps-business-leads",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/aiscraperdev~scrape-google-maps-business-leads/runs": {
            "post": {
                "operationId": "runs-sync-aiscraperdev-scrape-google-maps-business-leads",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/aiscraperdev~scrape-google-maps-business-leads/run-sync": {
            "post": {
                "operationId": "run-sync-aiscraperdev-scrape-google-maps-business-leads",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "searchStringsArray",
                    "proxyConfiguration"
                ],
                "properties": {
                    "searchStringsArray": {
                        "title": "Search Terms",
                        "type": "array",
                        "description": "Array of search queries to execute on Google Maps (e.g., 'restaurants in Austin', 'gyms in Miami').",
                        "default": [
                            "restaurants in Austin"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "locationQuery": {
                        "title": "Location Query",
                        "type": "string",
                        "description": "Optional location name appended to search terms if searchArea is not specified.",
                        "default": "Austin, TX"
                    },
                    "searchArea": {
                        "title": "Search Area (GeoJSON)",
                        "type": "object",
                        "description": "Optional GeoJSON geometry (Polygon, MultiPolygon, or Point with radius) to bound search results via geographic subdivision.",
                        "default": {}
                    },
                    "maxCrawledPlacesPerSearch": {
                        "title": "Max Crawled Places Per Search",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of business listings to extract per search query (0 = unlimited).",
                        "default": 50
                    },
                    "language": {
                        "title": "Google Maps Language",
                        "type": "string",
                        "description": "Language code for Google Maps interface (e.g. 'en', 'es', 'de', 'fr').",
                        "default": "en"
                    },
                    "includeWebsiteEnrichment": {
                        "title": "Include Website Enrichment",
                        "type": "boolean",
                        "description": "Triggers a secondary hop to visit the business's website and extract emails, social media links, and team members.",
                        "default": false
                    },
                    "includeReviews": {
                        "title": "Include Reviews",
                        "type": "boolean",
                        "description": "Extract customer review texts, star ratings, and review distribution stats.",
                        "default": false
                    },
                    "maxReviews": {
                        "title": "Max Reviews Per Place",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of customer reviews to extract per place listing (only if includeReviews is true).",
                        "default": 20
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Apify Proxy settings to avoid IP blocks and geographic restrictions.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
