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

Powerful Google Maps scraper, collect up to 5000 place results per time, with flexible search options, language support. Perfect for market research, local business discovery, and geospatial data collection. 🗺️🔍

- **URL**: https://apify.com/easyapi/google-maps-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Lead generation
- **Stats:** 600 total users, 5 monthly users, 100.0% runs succeeded, 9 bookmarks
- **User rating**: 1.59 out of 5 stars

## Pricing

from $5.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/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 🗺️🔍

Effortlessly scrape data from Google Maps with this powerful and flexible Actor! 🚀

### Features ✨

- 🌍 Scrape places, businesses, and locations from Google Maps
- 🔢 Retrieve up to 5000 results per run
- 🌐 Support for multiple countries and languages
- 💾 Results saved directly to your Apify dataset

### Use Cases 💡

- 📊 Market research and competitor analysis
- 🏙️ Local business discovery
- 🗺️ Geospatial data collection
- 🏨 Hotel and restaurant information gathering
- 🚗 Transportation and logistics planning

### How It Works 🛠️

1. Set your search parameters in the input
2. Results are processed and saved to your Apify dataset
3. Repeat until the desired number of results is reached or all available data is collected

### Input Parameters 📝

- `maxItems`: Maximum number of results to collect (20-5000)
- `query`: Your search term
- `gl`: Google country code (e.g., "us" for United States)
- `hl`: Interface language (e.g., "en" for English)
- `nfpr`: No auto-correction of spelling (0 or 1)

### Output 📊

The Actor provides detailed information about each place, including:

- Name
- Address
- Rating
- Number of reviews
- Phone number
- Website
- And more!

Get started with Google Maps Scraper today and unlock valuable location-based insights for your projects! 🚀🗺️

#### Input Example

A full explanation of an input example in JSON.

```
{
    "maxItems": 100,
    "query": "pizza"
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
	{
        "title": "Wild Pepper Pizza",
        "data_cid": "2781359009394505507",
        "gps_coordinates": {
            "latitude": 40.752412199999995,
            "longitude": -111.8879737
        },
        "address": "Salt Lake City, UT",
        "sponsored": false,
        "extensions": [
            "Wild Pepper Pizza",
            "3.6(609)",
            "$10–20",
            "Pizza",
            "Salt Lake City, UT",
            "Dine-in",
            "Takeout",
            "No-contact delivery"
        ],
        "rating": 3.6,
        "reviews": 609,
        "category": "Pizza",
        "position": 1
    },
    {
        "title": "Big Daddy's Pizza",
        "data_cid": "3321921044144921491",
        "gps_coordinates": {
            "latitude": 40.7516776,
            "longitude": -111.8859464
        },
        "address": "Salt Lake City, UT",
        "sponsored": false,
        "extensions": [
            "Big Daddy's Pizza",
            "4.0(1.4K)",
            "$10–20",
            "Pizza",
            "Salt Lake City, UT",
            "Take-out & delivery spot with late hours"
        ],
        "rating": 4,
        "reviews": 14000,
        "category": "Pizza",
        "position": 2
    },
    ...
]
```

# Actor input Schema

## `maxItems` (type: `integer`):

Maximum number of search results to retrieve

## `query` (type: `string`):

The search term to use

## `gl` (type: `string`):

The Google country to use for the query

## `hl` (type: `string`):

The Google UI language to return results

## `nfpr` (type: `integer`):

Exclude results from auto-corrected queries (0 or 1)

## Actor input object example

```json
{
  "maxItems": 1000,
  "query": "pizza"
}
```

# 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 = {
    "maxItems": 1000,
    "query": "pizza"
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/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 = {
    "maxItems": 1000,
    "query": "pizza",
}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/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 '{
  "maxItems": 1000,
  "query": "pizza"
}' |
apify call easyapi/google-maps-scraper --silent --output-dataset

```

## MCP server setup

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