# My Google Maps Pro (`clever_fashion/my-google-maps-pro`) Actor

Google Maps Leads Scraper 2025 – extracts emails, phones, social links, reviews, photos, hours & GPS from any search. 95%+ email success · Up to 500 reviews · Bulk mode · Auto proxies & CAPTCHA · 99.9% uptime. Perfect for lead gen & local SEO. Pay-per-result or unlimited monthly.

- **URL**: https://apify.com/clever_fashion/my-google-maps-pro.md
- **Developed by:** [Data Farming Team](https://apify.com/clever_fashion) (community)
- **Categories:** Lead generation, E-commerce, Social media
- **Features:** Limited permissions
- **Stats:** 5 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Pro Scraper

Advanced Google Maps scraper built with Playwright and Apify SDK. This Actor scrapes Google Maps place data with the following features:

- ✅ **Proxy Rotation** - Uses Apify residential proxies for scaling and avoiding blocks
- ✅ **CAPTCHA Solving** - Automatic CAPTCHA detection and solving integration
- ✅ **Review Extraction** - Scrolls through and extracts all reviews with ratings and responses
- ✅ **Photo Downloads** - Downloads and stores place photos
- ✅ **Contact Extraction** - Extracts emails and social media links from business websites

### ⚠️ Important Requirements

#### Apify Proxies Required

**Google Maps blocks datacenter IPs.** This actor requires **Apify residential proxies** to function properly:

- ❌ **Will NOT work** on free tier without proxies (timeouts, blocks)
- ✅ **Requires** paid Apify plan with residential proxy access
- 💰 **Cost**: ~$0.50-$1 per 1,000 places scraped (proxy usage)

**Without proxies you will see:**

- `net::ERR_TIMED_OUT` errors
- CAPTCHA challenges
- Zero results

#### Memory Requirements

- **Minimum**: 2GB RAM (4GB recommended)
- **Free tier (1GB)**: Will experience memory overload and timeouts
- **Concurrency**: 1-2 for 2GB, 3-5 for 4GB+

### Features

#### Proxy Rotation

- Automatic proxy rotation using Apify residential proxies
- Configurable proxy groups and country-specific proxies
- Essential for scaling and avoiding IP blocks

#### CAPTCHA Solving

- Automatic reCAPTCHA v2/v3 detection
- Integration with Apify Anti-Captcha Actor
- Retry logic for failed CAPTCHA solving

#### Review Extraction

- Automatic scrolling through all reviews
- Expands "More" buttons to get full review text
- Extracts ratings, authors, dates, and owner responses

#### Photo Downloads

- Extracts photo URLs from place pages
- Downloads and stores photos in key-value store
- Supports high-resolution photo extraction

#### Contact Information

- Extracts email addresses from business websites
- Finds social media links (Facebook, Instagram, Twitter, LinkedIn, etc.)
- Extracts phone numbers

### Getting Started

#### Prerequisites

- Node.js 16+ installed
- Apify CLI installed: `npm install -g apify-cli`
- Apify account (for proxy access and deployment)

#### Installation

1. Install dependencies:

```bash
npm install
```

2. Configure your input in `storage/key_value_stores/default/INPUT.json`:

```json
{
	"searches": [
		{
			"query": "restaurants",
			"location": "New York, NY"
		}
	],
	"maxPlaces": 10,
	"includeReviews": true,
	"maxReviews": 20,
	"downloadPhotos": false,
	"extractContactInfo": false,
	"proxyConfiguration": {
		"useApifyProxy": true,
		"apifyProxyGroups": ["RESIDENTIAL"]
	},
	"captchaConfiguration": {
		"antiCaptchaApiKey": "your-api-key-here",
		"maxRetries": 3
	}
}
```

#### Running Locally

**Option 1: Using Apify CLI (Recommended)**

```bash
apify run
```

**Option 2: Using npm start**

```bash
npm start
```

The scraper will:

1. Read input from `storage/key_value_stores/default/INPUT.json`
2. Scrape Google Maps based on your search queries
3. Save results to `storage/datasets/default/`

#### Input Configuration

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `searches` | Array | List of search queries with location | **Required** |
| `maxPlaces` | Number | Maximum places to scrape per search | 100 |
| `includeReviews` | Boolean | Extract reviews for each place | true |
| `maxReviews` | Number | Maximum reviews per place | 50 |
| `downloadPhotos` | Boolean | Download and store photos | false |
| `extractContactInfo` | Boolean | Extract emails/social from websites | false |
| `proxyConfiguration` | Object | Proxy settings (use Apify proxy editor) | See below |
| `proxyConfiguration.useApifyProxy` | Boolean | Use Apify residential proxies | true |
| `proxyConfiguration.apifyProxyGroups` | Array | Proxy groups (e.g., \["RESIDENTIAL"]) | \["RESIDENTIAL"] |
| `proxyConfiguration.apifyProxyCountry` | String | ISO country code (e.g., "US") | Optional |
| `captchaConfiguration.antiCaptchaApiKey` | String | Anti-Captcha API key | Optional |
| `captchaConfiguration.maxRetries` | Number | Maximum CAPTCHA retry attempts | 3 |
| `maxConcurrency` | Number | Maximum concurrent pages (1-10) | 5 |
| `navigationTimeoutSecs` | Number | Page navigation timeout in seconds | 120 |
| `requestHandlerTimeoutSecs` | Number | Request handler timeout in seconds | 300 |

#### Running Tests

```bash
## Run all tests
npm test

## Run tests in watch mode
npm run test:watch

## Run tests with coverage
npm run test:coverage
```

### Output

The scraper outputs data to the default dataset with the following structure. The dataset schema provides **5 different views** in the Apify Console for easy data exploration:

#### Dataset Views

1. **Overview** - Basic place information (name, address, phone, rating, website)
2. **Detailed View** - Complete information including GPS coordinates and timestamps
3. **With Reviews** - Places with their full review data
4. **Contact Information** - Places with extracted contact details from websites
5. **Export (All Fields)** - All available data for complete export

#### Output Structure

```json
{
	"title": "Place Name",
	"address": "123 Main St, City, State",
	"phone": "+1 555-1234",
	"website": "https://example.com",
	"rating": "4.5",
	"gps": {
		"lat": 40.7128,
		"lng": -74.0060
	},
	"url": "https://www.google.com/maps/place/...",
	"scrapedAt": "2024-01-01T00:00:00.000Z",
	"reviews": [
		{
			"author": "John Doe",
			"rating": 5,
			"text": "Great place!",
			"date": "2 weeks ago",
			"response": {
				"owner": "Business Owner",
				"text": "Thank you!",
				"date": "2 weeks ago"
			}
		}
	],
	"photos": [
		{
			"key": "photo-place-id-0",
			"url": "https://...",
			"thumbnail": "https://...",
			"alt": "Place photo"
		}
	],
	"contactInfo": {
		"emails": ["info@example.com"],
		"socialMedia": {
			"facebook": "https://facebook.com/...",
			"instagram": "https://instagram.com/..."
		},
		"phoneNumbers": ["+1 555-1234"]
	}
}
```

### Deploy to Apify

#### Prerequisites

1. Log in to Apify (you'll need your [Apify API Token](https://console.apify.com/account/integrations)):

```bash
apify login
```

#### Deploy

Deploy your Actor to the Apify Platform:

```bash
apify push
```

Your Actor will be available at [Actors -> My Actors](https://console.apify.com/actors?tab=my).

#### Communicate with Deployed Actor

After deployment, you can interact with your Actor via the Apify API:

##### Check Actor Status

```bash
## Set your credentials
$env:APIFY_TOKEN="your_api_token"
$env:APIFY_USERNAME="your_username"

## Check if Actor is deployed
node check-actor-status.js
```

##### Test the Actor

```bash
## Run a test scrape
node test-actor-api.js
```

See [DEPLOYMENT_GUIDE.md](DEPLOYMENT_GUIDE.md) for complete deployment and API communication instructions.

#### Connect Git Repository (Optional)

1. Go to [Actor creation page](https://console.apify.com/actors/new)
2. Click on **Link Git Repository** button
3. Connect your GitHub/GitLab repository

### Resources

- [Apify SDK for JavaScript documentation](https://docs.apify.com/sdk/js)
- [Crawlee + Apify Platform guide](https://crawlee.dev/docs/guides/apify-platform)
- [PlaywrightCrawler documentation](https://crawlee.dev/api/playwright-crawler/class/PlaywrightCrawler)
- [Apify Platform documentation](https://docs.apify.com/platform)
- [Join our developer community on Discord](https://discord.com/invite/jyEM2PRvMU)

# Actor input Schema

## `searches` (type: `array`):

List of search queries to scrape from Google Maps. Each query can include a specific location for more targeted results.

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

Maximum number of places to scrape for each search query. Lower values = faster scraping, higher values = more comprehensive data.

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

Extract reviews for each place. Reviews include author, rating, text, date, and owner responses. Note: This significantly increases scraping time.

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

Maximum number of reviews to extract for each place. Set to 0 to skip reviews entirely. Higher values increase scraping time.

## `downloadPhotos` (type: `boolean`):

Download and store place photos in the key-value store. Photos are saved with metadata including URLs and thumbnails. Warning: This consumes significant storage and increases scraping time.

## `extractContactInfo` (type: `boolean`):

Extract email addresses and social media links from business websites. The scraper will visit each place's website to find contact information. Warning: This significantly increases scraping time.

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

Proxy settings for scraping. Proxies are essential for avoiding IP blocks and CAPTCHAs when scraping Google Maps at scale.

## `captchaConfiguration` (type: `object`):

CAPTCHA solving settings. Google Maps may show CAPTCHAs during scraping. Provide an Anti-Captcha API key to automatically solve them.

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

Maximum number of pages to process simultaneously. Higher values = faster scraping but higher resource usage. Recommended: 1-2 for 1GB RAM, 3-5 for 4GB+ RAM.

## `navigationTimeoutSecs` (type: `integer`):

Maximum time to wait for page navigation before timing out. Increase if you experience frequent timeout errors.

## `requestHandlerTimeoutSecs` (type: `integer`):

Maximum time to process each page before timing out. Increase if extracting many reviews or photos.

## Actor input object example

```json
{
  "searches": [
    {
      "query": "coffee shops",
      "location": "San Francisco, CA"
    },
    {
      "query": "hotels",
      "location": "Miami, FL"
    }
  ],
  "maxPlaces": 50,
  "includeReviews": true,
  "maxReviews": 20,
  "downloadPhotos": false,
  "extractContactInfo": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "captchaConfiguration": {
    "maxRetries": 3
  },
  "maxConcurrency": 2,
  "navigationTimeoutSecs": 120,
  "requestHandlerTimeoutSecs": 300
}
```

# Actor output Schema

## `overview` (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 = {
    "searches": [
        {
            "query": "coffee shops",
            "location": "San Francisco, CA"
        },
        {
            "query": "hotels",
            "location": "Miami, FL"
        }
    ],
    "maxPlaces": 50,
    "maxReviews": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "captchaConfiguration": {
        "maxRetries": 3
    },
    "maxConcurrency": 2,
    "navigationTimeoutSecs": 120,
    "requestHandlerTimeoutSecs": 300
};

// Run the Actor and wait for it to finish
const run = await client.actor("clever_fashion/my-google-maps-pro").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 = {
    "searches": [
        {
            "query": "coffee shops",
            "location": "San Francisco, CA",
        },
        {
            "query": "hotels",
            "location": "Miami, FL",
        },
    ],
    "maxPlaces": 50,
    "maxReviews": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
    "captchaConfiguration": { "maxRetries": 3 },
    "maxConcurrency": 2,
    "navigationTimeoutSecs": 120,
    "requestHandlerTimeoutSecs": 300,
}

# Run the Actor and wait for it to finish
run = client.actor("clever_fashion/my-google-maps-pro").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 '{
  "searches": [
    {
      "query": "coffee shops",
      "location": "San Francisco, CA"
    },
    {
      "query": "hotels",
      "location": "Miami, FL"
    }
  ],
  "maxPlaces": 50,
  "maxReviews": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "captchaConfiguration": {
    "maxRetries": 3
  },
  "maxConcurrency": 2,
  "navigationTimeoutSecs": 120,
  "requestHandlerTimeoutSecs": 300
}' |
apify call clever_fashion/my-google-maps-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clever_fashion/my-google-maps-pro"
        }
    }
}
```

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/7WgQSFtwzqNmKkvDL/builds/VW8vETI2fxj78ae5M/openapi.json
