# Google Maps Business Data Extractor (`rambunctious_fingerprint/google-maps-business-extractor`) Actor

Extract business listings from Google Maps by location and keyword. Get name, address, phone, website, rating, reviews, and more.

- **URL**: https://apify.com/rambunctious\_fingerprint/google-maps-business-extractor.md
- **Developed by:** [Casey Marsh](https://apify.com/rambunctious_fingerprint) (community)
- **Categories:** Lead generation, Real estate, Automation
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 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.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.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/platform/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 Business Data Extractor

[![Built with Apify](https://img.shields.io/badge/Apify-Actor-blue)](https://apify.com)

Extract business listings from **Google Maps** by location and keyword. Get detailed business information including name, address, phone number, website URL, rating, number of reviews, business category, operating hours, and GPS coordinates.

### Features

- 🔍 **Search by keyword & location** — Find businesses in any area by category or keyword (e.g., "plumber in Chicago", "restaurant in London")
- 📍 **Multi-location support** — Search across multiple cities or regions in a single run
- 📊 **Rich business data** — Extract name, address, phone, website, rating, reviews count, category, hours, and coordinates
- 🔄 **Infinite scroll pagination** — Automatically scrolls through search results to capture all available listings
- 🛡️ **Anti-blocking measures** — Uses realistic browser fingerprints, proper user agents, and human-like interaction patterns
- 📋 **Structured output** — Data is saved to a clean Apify dataset, ready for CSV/JSON export or API access

### Input

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `searchKeywords` | string | ✅ | — | Business category or keyword to search (e.g., "plumber", "restaurant", "dentist"). Comma-separated for multiple keywords. |
| `locations` | array of strings | ✅ | — | List of cities/areas to search in (e.g., `["New York", "Los Angeles"]`). |
| `maxResults` | integer | ❌ | `50` | Maximum businesses to extract per keyword-location combination (max 500). |
| `maxConcurrency` | integer | ❌ | `5` | Number of concurrent browser pages (max 20). |

#### Example Input

```json
{
  "searchKeywords": "plumber, electrician",
  "locations": ["Chicago", "Houston"],
  "maxResults": 100,
  "maxConcurrency": 5
}
````

### Output

Each extracted business is a JSON object in the dataset with the following fields:

| Field | Type | Description |
|-------|------|-------------|
| `businessName` | string | Business name |
| `address` | string | Street address |
| `phone` | string | Phone number |
| `website` | string | Website URL |
| `rating` | number | Star rating (0–5) |
| `reviewsCount` | number | Number of reviews |
| `category` | string | Business category/type |
| `hours` | string | Operating hours (if available) |
| `lat` | number | Latitude coordinate |
| `lng` | number | Longitude coordinate |
| `searchKeyword` | string | The keyword used to find this business |
| `location` | string | The location searched |
| `googleMapsUrl` | string | Direct Google Maps URL for the business |

#### Example Output

```json
{
  "businessName": "Joe's Plumbing Services",
  "address": "123 Main St, Chicago, IL 60601",
  "phone": "(312) 555-0123",
  "website": "https://joesplumbing.example.com",
  "rating": 4.5,
  "reviewsCount": 127,
  "category": "Plumber",
  "hours": "Mon-Fri: 8AM–6PM, Sat: 9AM–3PM",
  "lat": 41.8826,
  "lng": -87.6226,
  "searchKeyword": "plumber",
  "location": "Chicago",
  "googleMapsUrl": "https://www.google.com/maps/place/..."
}
```

### Use Cases

- **Lead Generation** — Build a database of businesses in specific industries for cold outreach
- **Market Research** — Analyze the competitive landscape in a given area
- **Sales Prospecting** — Find potential customers by category and location
- **Data Enrichment** — Add phone numbers, websites, and ratings to existing business lists
- **Real Estate Analysis** — Map businesses and services available in target neighborhoods
- **SEO & Local Listings** — Audit competitor presence on Google Maps

### Pricing

This actor uses browser automation (Playwright) and incurs compute costs based on:

- Number of keyword × location combinations
- `maxResults` setting (more results = more page interactions)
- `maxConcurrency` setting (higher concurrency = faster but more resource-intensive)

For typical usage (5 locations × 2 keywords × 50 results each), expect modest Apify platform usage within standard compute units.

### Configuration Notes

- **Rate limiting**: Google Maps may show CAPTCHAs or rate-limit requests if too many searches are performed in quick succession. Reduce `maxConcurrency` to 2–3 for large multi-location runs.
- **Data freshness**: Google Maps data may vary slightly by region and time of day. Results are as accurate as what is publicly displayed on the search page.
- **Dedup**: The actor deduplicates businesses by name + address within a single search combination.
- **Location specificity**: For best results, use city-level locations (e.g., "San Francisco" rather than "California").

### FAQ

**Q: How many results can I get per run?**\
A: Up to 500 per keyword-location combination. The number of results depends on what Google Maps displays for that search.

**Q: Can I search for multiple keywords at once?**\
A: Yes! Use comma-separated values in the `searchKeywords` field, e.g., `"dentist, orthodontist, oral surgeon"`.

**Q: Does it handle pagination?**\
A: Yes — the actor automatically scrolls the search results to trigger infinite loading. It stops when no new results appear or when `maxResults` is reached.

**Q: What if a business has no website listed?**\
A: The `website` field will be an empty string. Not all businesses list their website on Google Maps.

**Q: Can I get email addresses?**\
A: Google Maps does not publicly display email addresses in search results, so this actor does not extract them.

**Q: How do I export the data?**\
A: Data is saved to the Apify dataset. You can export as JSON, CSV, Excel, or XML from the Apify console, or access it via the Apify API.

### Technical Details

- **Runtime**: Node.js 20 on Playwright with Chrome
- **Framework**: [Crawlee](https://crawlee.dev) PlaywrightCrawler
- **Platform**: Apify (actor-node-playwright-chrome base image)
- **Deployment**: `apify push`

***

*Built with ❤️ for the Apify Store*

# Actor input Schema

## `searchKeywords` (type: `string`):

The business category or keyword to search for (e.g., 'plumber', 'restaurant', 'dentist').

## `locations` (type: `array`):

List of cities or areas to search in (e.g., \['New York', 'Los Angeles']).

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

Maximum number of business listings to extract per location-keyword combination.

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

Maximum number of concurrent browser pages to use.

## Actor input object example

```json
{
  "searchKeywords": "plumber",
  "locations": [
    "New York"
  ],
  "maxResults": 50,
  "maxConcurrency": 5
}
```

# 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 = {
    "searchKeywords": "plumber",
    "locations": [
        "New York"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rambunctious_fingerprint/google-maps-business-extractor").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 = {
    "searchKeywords": "plumber",
    "locations": ["New York"],
}

# Run the Actor and wait for it to finish
run = client.actor("rambunctious_fingerprint/google-maps-business-extractor").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 '{
  "searchKeywords": "plumber",
  "locations": [
    "New York"
  ]
}' |
apify call rambunctious_fingerprint/google-maps-business-extractor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Business Data Extractor",
        "description": "Extract business listings from Google Maps by location and keyword. Get name, address, phone, website, rating, reviews, and more.",
        "version": "1.0",
        "x-build-id": "cnqJUlKHdUcEMcC2p"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/rambunctious_fingerprint~google-maps-business-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-rambunctious_fingerprint-google-maps-business-extractor",
                "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/rambunctious_fingerprint~google-maps-business-extractor/runs": {
            "post": {
                "operationId": "runs-sync-rambunctious_fingerprint-google-maps-business-extractor",
                "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/rambunctious_fingerprint~google-maps-business-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-rambunctious_fingerprint-google-maps-business-extractor",
                "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": [
                    "searchKeywords",
                    "locations"
                ],
                "properties": {
                    "searchKeywords": {
                        "title": "Search Keywords",
                        "type": "string",
                        "description": "The business category or keyword to search for (e.g., 'plumber', 'restaurant', 'dentist')."
                    },
                    "locations": {
                        "title": "Locations",
                        "type": "array",
                        "description": "List of cities or areas to search in (e.g., ['New York', 'Los Angeles']).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of business listings to extract per location-keyword combination.",
                        "default": 50
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of concurrent browser pages to use.",
                        "default": 5
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
