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

Scrape Google Maps business data at scale. Extract phone numbers, emails, reviews, ratings, addresses & more from thousands of locations. Enrich results with real-time emails and social links from business websites. Export instantly or automate via API.

- **URL**: https://apify.com/datarava/google-maps-scraper.md
- **Developed by:** [DATARAVA](https://apify.com/datarava) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Security:** Limited permissions
- **Stats:** 695 total users, 9 monthly users, 100.0% runs succeeded, 23 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.70 / 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.
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 Scraper

This Actor helps you scrape detailed business data from Google Maps based on your provided search terms and locations.\
You can enter one or more search terms (e.g., Hotels, Restaurants, Libraries) and specify one or more custom locations like New York, Washington, etc., or choose from predefined US states via a dropdown list, or select the full USA to get data for the entire country.\
If you want to target specific areas, you can provide GPS coordinates for precise area scraping — this overrides location fields. If GPS coordinates are provided, all location fields will be ignored and only GPS coordinates will be used.

Set how many places to extract in total across all search terms and locations, up to 10,000 places per location.\
For example, if you set 1 search term and 3 locations, you can get up to 10,000 results per location (if a single location contains that many places matching the search term), resulting in up to 30,000 records overall if available.\
You have full control over the number of records to scrape by setting how many places to get, and you will only be charged for the data scraped.

Enable enhanced options to enrich your output results by extracting emails and social media links from each place's website and/or real Google Maps reviews per place.\
Configure the number of reviews per place and sorting options to tailor results.\
If ‘Enrich records with emails and social links’ is ON, the Actor fetches each place's website link from Google Maps, opens it, and extracts all available emails and social media links from there inlcuding their homepage and contact-us pages.

Make sure to provide valid search terms and specify either custom locations, predefined location, or GPS coordinates.\
Use the advanced options to gain more granular insights for your research or business intelligence needs inluding emails, social media links and reviews. All the emails and social media links are scraped in real time ensuring you get the best value for your money.

***

### Pricing

| Event                                   | Description                                               | Cost per Unit (USD)    |
|----------------------------------------|-----------------------------------------------------------|-----------------------|
| Actor Start                            | Charged once per Actor run i.e. when you start any scraping session                                | $0.007\*                |
| Single Place Scraping                  | Price per Place scraping without reviews/emails/social enrichment   | $0.0037               |
| Place Enrichment                       | Real-time scraped Emails & social media links per place      | $0.002                |
| Reviews Enrichment                      | Cost of a single review scraping                           | $0.0005               |

**Note**: 0.007$ is charged for Actor started with 1GB RAM. However, recommended is 4GB RAM which costs 0.028$ per Actor Run. Also, These are the base charges. Discounts may apply as per your apify plan.

#### Example costs:

- Scraping 1,000 places without any emails/reviews/social enrichment:\
  `1000 x 0.0037 + 0.007 (actor start cost) = $3.707`
- With social links enrichment for 1,000 places:\
  `1000 x 0.002 = +$2.00`
- Scraping 10 reviews per place with 1,000 places overall:\
  `1000 x 10 x 0.0005 = +$5.00`

**Note**: Only successfully enriched places or reviews are charged. Not all places have reviews and not all places have websites given to enrich with emails and social media links and sometimes, even if the website is given for a place, it does not contain any emails or social links there. so, enrichment cost is always less than the estimated cost due to these reasons

# Actor input Schema

## `search_term` (type: `array`):

Provide the search terms to get data for. like Hotels, Restaurants, Libraries etc.

## `location` (type: `array`):

Provide your custom location to search in. like London, New York etc.

## `predefined_location` (type: `string`):

Select a country or a US state. If you want to use this predefined location then please keep the above manual location value to empty

## `gps_coordinates` (type: `string`):

if GPS Coordinates are provided, Custom and predefined Locations feilds above will be ignored. Actor will get data from this custom location provided through GPS coordinates. The format of this field is lat,long,zoom_level. for example: 51.4980493,-0.2257851,12z. The zoom level starts from 3z to 21z. 3z means full zoom out and 21z means full zoom in. You can search your desired term in Google Maps. then you can find these coordinates in URL bar in this format @lat,long,zoom_level. You can provide these here for precise search. example: 51.4980493,-0.2257851,12z

## `number_of_target_records` (type: `integer`):

Enter how many records do you want to get.

## `enhanced_search` (type: `boolean`):

Scrape Email and Social meida links if available at corresponding record's website

## `enrich_records_with_reviews` (type: `boolean`):

if enabled, Actor will get reviews from Google Maps for corresponding place.

## `reviews_per_record` (type: `integer`):

Enter number of reviews that you want to get for each record. Actor will keep getting reviews till this number or till maximum available reviews for a single record.

## `reviews_sort_type` (type: `string`):

How to sort total reviews before adding into each record.

## Actor input object example

```json
{
  "search_term": [
    "Libraries"
  ],
  "location": [
    "London"
  ],
  "predefined_location": "None",
  "number_of_target_records": 20,
  "enhanced_search": false,
  "enrich_records_with_reviews": false,
  "reviews_per_record": 10,
  "reviews_sort_type": "Newest"
}
```

# Actor output Schema

## `results` (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 = {
    "search_term": [
        "Libraries"
    ],
    "location": [
        "London"
    ],
    "number_of_target_records": 20,
    "reviews_per_record": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datarava/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 = {
    "search_term": ["Libraries"],
    "location": ["London"],
    "number_of_target_records": 20,
    "reviews_per_record": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datarava/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 '{
  "search_term": [
    "Libraries"
  ],
  "location": [
    "London"
  ],
  "number_of_target_records": 20,
  "reviews_per_record": 10
}' |
apify call datarava/google-maps-scraper --silent --output-dataset

```

## MCP server setup

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