# Google Maps Scraper (`harsh719/google-maps-scraper`) Actor

Scrape Google Maps places and reviews. Extract business name, website, phone, rating, address, city, country, and reviews at scale.

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

## Pricing

from $3.00 / 1,000 scraped places

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?

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 Scraper

Scrape Google Maps places, reviews, emails, and social media links at scale. Extract business name, category, website, phone number, email addresses, social profiles, rating, address, city, and country from any search query. The most complete local business data extraction tool on Apify.

### Features

- **Business details**: name, category, website, phone, rating, address, city, country
- **Email extraction**: find email addresses from business websites automatically
- **Social media links**: extract Facebook, Instagram, Twitter/X, LinkedIn, YouTube, TikTok profiles
- **Reviews extraction**: reviewer name, rating, text, date
- **Website filter**: scrape only businesses with or without a website
- **Scale beyond 120 results**: automatic geo-grid splitting for large queries
- **Anti-detection**: residential proxy rotation, fingerprint generation, resource blocking, random delays
- **Crash recovery**: automatically resumes from where it stopped
- **Deduplication**: no duplicate charges for the same place across geo-grid cells
- **Smart filtering**: junk email and website builder social profile detection

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchQueries` | string\[] | *required* | Search terms (e.g. "restaurants in New York") |
| `maxPlacesPerQuery` | integer | 20 | Max places per query (up to 500) |
| `includeReviews` | boolean | false | Extract reviews for each place |
| `maxReviewsPerPlace` | integer | 10 | Max reviews per place (up to 100) |
| `extractEmails` | boolean | false | Visit business websites to find email addresses |
| `extractSocialLinks` | boolean | false | Extract social media profile URLs |
| `websiteFilter` | string | "all" | Filter: "all", "with\_website", or "without\_website" |
| `language` | string | "en" | Google Maps interface language |
| `maxConcurrency` | integer | 5 | Parallel browser pages (1-10) |
| `proxyConfiguration` | object | Apify Residential | Proxy settings |

### Output

Each dataset item contains:

```json
{
    "name": "Joe's Pizza",
    "category": "Italian restaurant",
    "website": "https://joespizza.com/",
    "phone": "+1 212-555-0123",
    "emails": ["info@joespizza.com", "orders@joespizza.com"],
    "socialLinks": {
        "facebook": "https://www.facebook.com/joespizza",
        "instagram": "https://www.instagram.com/joespizzanyc"
    },
    "rating": 4.5,
    "address": "123 Broadway, New York, NY 10001, United States",
    "city": "New York",
    "country": "United States",
    "reviews": [
        {
            "reviewerName": "John D.",
            "rating": 5,
            "reviewText": "Best pizza in NYC!",
            "date": "2 months ago"
        }
    ],
    "searchQuery": "pizza in New York",
    "url": "https://www.google.com/maps/place/...",
    "scrapedAt": "2026-03-21T10:00:00.000Z"
}
```

### Pricing

Pay only for what you scrape:

| Event | Price |
|-------|-------|
| Place scraped | $0.003 per place |
| Review scraped | $0.0003 per review |
| Email scraped | $0.004 per email found |

**Example costs:**

- 1,000 places (basic): ~$3.00
- 1,000 places + emails: ~$3.00 + $0.004 per email found
- 1,000 places + 10 reviews each: ~$6.00
- 5,000 places + emails + social links: ~$15.00 + email charges

Category and social media links are included free with every place scraped.

### Use Cases

- **Lead generation**: Find local businesses with emails and social profiles for outreach
- **Market research**: Analyze business categories, ratings, and density in any area
- **Competitor analysis**: Track ratings, reviews, and online presence of competitors
- **Web development leads**: Filter for businesses without websites using the website filter
- **SEO/Marketing leads**: Filter for businesses with websites to offer digital marketing services

### Tips for best results

- **Use residential proxies** (default) — Google blocks datacenter IPs aggressively
- **Keep concurrency at 3-5** for stability, increase to 8-10 if you have good proxies
- **Be specific with queries** — "Italian restaurants in Manhattan" yields better results than "restaurants"
- **For large extractions** (>120 places), the scraper automatically splits the search area into a geographic grid
- **Enable email extraction** for lead generation — only charged when emails are actually found
- **Use the website filter** to target your ideal prospects (e.g. "without website" for web dev leads)

### Limitations

- Google Maps DOM structure changes periodically. The scraper uses fallback selectors but may need updates.
- Some places may have partial data (null fields) if Google doesn't display certain information.
- Review dates are relative ("2 months ago") as displayed by Google, not absolute dates.
- Email extraction depends on the business website being accessible and containing visible email addresses.
- Social media links from websites are filtered to exclude website builder profiles (Wix, Squarespace, etc.).

# Actor input Schema

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

List of search terms (e.g. 'restaurants in New York', 'plumbers in London')

## `maxPlacesPerQuery` (type: `integer`):

Maximum number of places to scrape per search query. For more than 120, geo-grid splitting is used automatically.

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

Whether to scrape reviews for each place. Charged separately at $0.0003/review.

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

Maximum number of reviews to extract per place. Only used if 'Include reviews' is enabled.

## `extractEmails` (type: `boolean`):

Visit each business website and extract email addresses. Charged separately at $0.004/email found.

## `extractSocialLinks` (type: `boolean`):

Extract social media profile URLs (Facebook, Instagram, Twitter, LinkedIn, YouTube, TikTok) from the Google Maps page and business website. Included in base price.

## `websiteFilter` (type: `string`):

Filter places by website presence. 'All' returns everything, 'With website' only places that have a website, 'Without website' only places without one.

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

Language for Google Maps interface.

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

Maximum number of browser pages open at once. Higher = faster but more likely to be blocked.

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

Proxy settings. Residential proxies are strongly recommended for Google Maps.

## Actor input object example

```json
{
  "searchQueries": [
    "restaurants in New York"
  ],
  "maxPlacesPerQuery": 20,
  "includeReviews": false,
  "maxReviewsPerPlace": 10,
  "extractEmails": false,
  "extractSocialLinks": false,
  "websiteFilter": "all",
  "language": "en",
  "maxConcurrency": 8,
  "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 = {
    "searchQueries": [
        "restaurants in New York"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

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

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

```

## MCP server setup

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