# Fast Google Maps Bulk Business Extractor (`prattsolutions/google-maps-data-extractor`) Actor

Extract Google Maps business listings in bulk, fast. Every search runs at every map point you give, five at a time, and returns name, address, phone, website, rating, review count, opening hours and coordinates. $1 per 1,000 places.

- **URL**: https://apify.com/prattsolutions/google-maps-data-extractor.md
- **Developed by:** [John Pratt](https://apify.com/prattsolutions) (community)
- **Categories:** Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 place scrapeds

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/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

Fast Google Maps Bulk Business Extractor pulls **Google Maps business listings in bulk, fast**. Give it what to search, such as `coffee shops`, and the map points to search around. Every search runs at every point, five at a time, without a browser, and returns **name, category, address, phone, website, star rating, review count, opening hours and coordinates** for up to 20 places near each point. Export the data as CSV, Excel or JSON, or read it from the API. It costs **$1 per 1,000 places**.

### What does the Fast Google Maps Data Extractor do?

- **Extracts Google Maps data in bulk.** Several queries times many map points add up to thousands of businesses in one run.
- **Runs five searches at a time.** Each search is one request to Google Maps with no browser, spread over 15 workers in AWS, Google Cloud and Azure regions.
- **Covers whole cities.** Put map points across the area you want, and each business found from more than one point is saved once.
- **Keeps only places near each point**, within the radius you set.
- **Costs less than a full scraper**, because it reads Google's search results directly instead of opening every place page.

### How to extract data from Google Maps in bulk

1. Open the Actor in Apify Console and go to the **Input** tab.
2. Enter what to look for in **Search queries**, such as `coffee shops` and `bakeries`.
3. Enter the **Map points** to search around, one `latitude,longitude` per line. Right-click any spot in Google Maps to copy its coordinates.
4. Set the **Search radius** to the distance between your points, so their circles overlap.
5. Click **Start**, then open the **Output** tab or export the dataset when the run finishes.

#### How to cover a whole city

Each search returns up to 20 places, so a big area needs many points. Place them in a grid about 2 km apart, set **Search radius** to `2000` and **Map zoom** to `15`, and add one line per point. Dense downtown areas need points closer together, about 1 km apart, because 20 places fill up quickly there.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `keywords` | array of strings | required | What to search, one query per item. The map points set where, so queries don't need a location. |
| `coordinates` | array of strings | required | Map points, one `"latitude,longitude"` per item. Every query runs at every point. |
| `radiusMeters` | integer | `5000` | Keep only places within this distance of the point that found them. |
| `zoom` | integer, 1 to 21 | `15` | Google Maps zoom level for each search. |
| `language` | string | `en` | Google interface language code, such as `en`, `es`, `de` or `fr`. |

```json
{
    "keywords": ["coffee shops", "bakeries"],
    "coordinates": ["30.2672,-97.7431", "30.3072,-97.7559", "30.2500,-97.7500"],
    "radiusMeters": 2000,
    "zoom": 15
}
```

That input runs 6 searches: two queries at three points.

### Output

Each place is one item in the dataset. This example is fictional and shortened:

```json
{
    "query": "coffee shops",
    "title": "Example Coffee Bar",
    "category": "Coffee shop",
    "address": "300 Congress Ave, Austin, TX 78701, United States",
    "phone": "+1512-555-0167",
    "website": "https://www.example.com/",
    "review_rating": "4.600000",
    "review_count": "842",
    "open_hours": { "Monday": ["7 AM–6 PM"], "Saturday": ["8 AM–4 PM"] },
    "latitude": "30.266170",
    "longitude": "-97.742910",
    "plus_code": "862476FV+FW",
    "timezone": "America/Chicago",
    "data_id": "0x8644b5a1b2c3d4e5:0x1a2b3c4d5e6f7a8b"
}
```

Fast mode fills in name, category, address, phone, website, rating, review count, opening hours, status, coordinates, Plus Code, time zone and Google's data ID. The other fields, such as the Google Maps link, Place ID, popular times, reviews and photos, are empty. For those, use [Google Maps Scraper](https://apify.com/prattsolutions/google-maps-scraper), which opens every place page.

Numbers come as text: `review_rating`, `review_count`, `latitude` and `longitude` are strings.

### How much does it cost?

It costs **$1 per 1,000 places** ($0.001 per place saved). A place found from several points is saved and charged once. Each run also has Apify's standard start fee of $0.00005, and there's no separate charge for compute.

- 2 queries at 50 map points make 100 searches. At up to 20 places each, that's at most 2,000 places, or **$2**, before duplicates are removed.
- 10,000 places cost **$10**.

To cap what a run can cost, set **Maximum cost per run** in the run options (`maxTotalChargeUsd` in the API). When a run reaches the cap, it stops saving places.

### Google Maps extractor API

Run the Actor and read its results with the [Apify API](https://docs.apify.com/api/v2). Get your API token in **Apify Console → Settings → API & Integrations**. A small run usually finishes in under a minute, so the endpoint that starts a run and returns its items in one request works well. Apify ends that request with HTTP `408` after 300 seconds:

```bash
curl -X POST "https://api.apify.com/v2/acts/prattsolutions~google-maps-data-extractor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN&format=csv" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["coffee shops"], "coordinates": ["30.2672,-97.7431"]}'
```

Python, with the [`apify-client`](https://docs.apify.com/api/client/python) package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("prattsolutions/google-maps-data-extractor").call(run_input={
    "keywords": ["coffee shops", "bakeries"],
    "coordinates": ["30.2672,-97.7431", "30.3072,-97.7559"],
})
for place in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(place["title"], place["phone"], place["review_rating"])
```

### FAQ

#### Why do I get at most 20 places per search?

Google Maps returns up to 20 places for a search at a single map point. Add more points to get more places.

#### How is this different from Google Maps Scraper?

[Google Maps Scraper](https://apify.com/prattsolutions/google-maps-scraper) opens every place page, so it returns all 37 fields, including reviews and the Google Maps link, but takes minutes per search. This Actor reads only the search results, so it's much faster and cheaper, with fewer fields.

#### Do I need a location in my search queries?

No. The map points set the location, so `plumbers` is enough. A location in the query, such as `plumbers in Austin`, can pull results away from your point.

#### What happens if a search fails?

No new searches start, the searches already running finish, and the run is marked as failed. Places from finished searches stay in the dataset.

#### Why was my first run in a while slow to start?

When nobody has used the scraper for a few weeks, its backend needs a few minutes to wake up. The log shows `Lambda is waking up (...); retrying in 15s.`, and the run then continues normally.

#### Is it legal to extract data from Google Maps?

The Actor collects only business details that Google Maps shows publicly. Some, such as a sole trader's name and phone number, can be personal data under laws like the GDPR. Use the data for a legitimate purpose, and check with a lawyer if you're unsure.

# Actor input Schema

## `keywords` (type: `array`):

What to search on Google Maps, one query per line, such as "coffee shops" or "car repair". The map points below set where, so the queries don't need a location.

## `coordinates` (type: `array`):

The points to search around, one "latitude,longitude" per line, for example "30.2672,-97.7431" for downtown Austin, TX. Each query runs at each point, so 3 queries and 10 points make 30 searches. A business found by several searches is saved once.

## `radiusMeters` (type: `integer`):

Keep only places within this distance of the point that found them.

## `zoom` (type: `integer`):

Google Maps zoom level for each search, from 1 (whole world) to 21 (single building). Higher zoom finds places closer to the point.

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

Google interface language code, such as en, es, de or fr. It sets the language of the text Google returns, such as categories and opening hours.

## Actor input object example

```json
{
  "keywords": [
    "coffee shops",
    "bakeries"
  ],
  "coordinates": [
    "30.2672,-97.7431",
    "30.3072,-97.7559"
  ],
  "radiusMeters": 5000,
  "zoom": 15,
  "language": "en"
}
```

# Actor output Schema

## `results` (type: `string`):

All places in the run's default dataset. Each field is described in the dataset schema.

# 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 = {
    "keywords": [
        "coffee shops"
    ],
    "coordinates": [
        "30.2672,-97.7431",
        "30.3072,-97.7559"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("prattsolutions/google-maps-data-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 = {
    "keywords": ["coffee shops"],
    "coordinates": [
        "30.2672,-97.7431",
        "30.3072,-97.7559",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("prattsolutions/google-maps-data-extractor").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 '{
  "keywords": [
    "coffee shops"
  ],
  "coordinates": [
    "30.2672,-97.7431",
    "30.3072,-97.7559"
  ]
}' |
apify call prattsolutions/google-maps-data-extractor --silent --output-dataset

```

## MCP server setup

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

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/VrsaSTDe1ZLudyDIZ/builds/tItNk0aPRT6X6Oe60/openapi.json
