# Google Maps Leads Scraper & Lead Extractor (`prattsolutions/google-maps-leads-scraper`) Actor

Scrape leads from Google Maps: phone, website, address, rating and review count for every business a search lists, with filters for phone, website, rating and reviews. Export to CSV or Excel.

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

## Pricing

from $2.50 / 1,000 lead saveds

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

Google Maps Leads Scraper turns Google Maps searches into **lead lists for calling, outreach and CRM imports**. Search for a business type in a location, such as `HVAC companies in Phoenix, AZ`, and get one flat row per business with its **phone number, website, address, star rating and review count**. It's a Google Maps lead extractor with filters: keep only businesses with a phone number, a website, a minimum rating or enough reviews, and pay only for the leads that pass. Export the leads as CSV or Excel, or read them from the API.

### What does Google Maps Leads Scraper do?

- **Builds B2B lead lists from Google Maps**: every business a search lists, with name, category, phone, website, full address, city, state, postal code, country, rating, review count, coordinates and Google Place ID.
- **Filters leads before you pay for them.** Keep only businesses with a phone number, with a website, above a star rating or with at least a number of reviews.
- **Gives flat rows**, one column per field and numbers as numbers, ready for a spreadsheet, a CRM import or a dialer.
- **Saves each business once per run**, even when several searches find it.
- **Doesn't visit business websites**, so runs stay quick. To get emails too, use [Local Business Lead Scraper](https://apify.com/prattsolutions/local-business-lead-scraper).

### How to scrape leads from Google Maps

1. Open the Actor in Apify Console and go to the **Input** tab.
2. Enter your searches in **Search queries**, one per line, such as `HVAC companies in Phoenix, AZ`.
3. Under **Lead filters**, choose which businesses count as leads. For example, keep only businesses with a phone number, rated 4 stars or more, with at least 20 reviews.
4. Click **Start**.
5. When the run finishes, open the **Output** tab and switch to the **Leads** view, or export the dataset as CSV or Excel.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `keywords` | array of strings | required | Google Maps searches, one per item: a business type plus a location. |
| `onlyWithPhone` | boolean | `false` | Skip businesses that list no phone number. |
| `onlyWithWebsite` | boolean | `false` | Skip businesses that list no website. |
| `minRating` | number, 0 to 5 | `0` | Skip businesses rated below this. `0` keeps every business. |
| `minReviews` | integer | `0` | Skip businesses with fewer reviews than this. |
| `depth` | integer, 1 or more | `10` | How many times to scroll each search's results list. A higher value returns more leads for broad searches but takes longer. The Console form starts at 2 for a quick first run. |
| `language` | string | `en` | Google interface language code, such as `en`, `es`, `de` or `fr`. |

```json
{
    "keywords": ["roofing contractors in Denver, CO", "roofing contractors in Aurora, CO"],
    "onlyWithPhone": true,
    "minRating": 4,
    "minReviews": 20
}
```

#### Tips for better lead lists

- **Search one city, suburb or ZIP code at a time.** Google Maps lists around 120 businesses per search, so smaller areas add up to more leads.
- **Use review count to find established businesses.** A business with dozens of reviews is active and has customers. A low minimum, such as 5, removes listings nobody uses.
- **Search a few wordings of the same trade**, such as `roofers` and `roofing contractors`. Each business is saved only once, so overlapping searches cost nothing extra.

### Output

Each lead is one item in the dataset. This example is fictional:

```json
{
    "name": "Example Roofing Co.",
    "category": "Roofing contractor",
    "phone": "+1 303-555-0187",
    "website": "https://www.example.com/",
    "address": "200 Main St, Denver, CO 80202, United States",
    "street": "200 Main St",
    "city": "Denver",
    "state": "Colorado",
    "postal_code": "80202",
    "country": "US",
    "rating": 4.7,
    "review_count": 138,
    "google_maps_url": "https://www.google.com/maps/place/...",
    "place_id": "ChIJ...",
    "latitude": 39.7392,
    "longitude": -104.9903,
    "query": "roofing contractors in Denver, CO"
}
```

`rating`, `review_count`, `latitude` and `longitude` are numbers, or `null` when Google has no value. Every other field is text and is empty when Google has nothing for it.

### How much does it cost?

It costs **$2.50 per 1,000 leads** ($0.0025 per lead saved). Businesses your filters remove aren't saved, so they aren't charged. Each run also has Apify's standard start fee of $0.00005, and there's no separate charge for compute.

- A search that lists 90 roofers, of which 55 pass your filters, costs **$0.14**.
- 1,000 leads cost **$2.50**.

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 leads.

### Google Maps leads 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**.

```bash
curl -X POST "https://api.apify.com/v2/acts/prattsolutions~google-maps-leads-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["roofing contractors in Denver, CO"], "onlyWithPhone": true}'
```

The response's `data.defaultDatasetId` is the dataset ID. When the run has finished, `GET https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv&token=YOUR_APIFY_TOKEN` returns the leads as CSV (`format=xlsx` for Excel).

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-leads-scraper").call(
    run_input={"keywords": ["roofing contractors in Denver, CO"], "minRating": 4}
)
for lead in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(lead["name"], lead["phone"], lead["website"], lead["rating"])
```

### FAQ

#### How many leads can I get per search?

Google Maps lists around 120 businesses per search at most, before your filters. To get more, run more searches over smaller areas.

#### Does it find email addresses?

No. It reads only Google Maps, which doesn't show emails. [Local Business Lead Scraper](https://apify.com/prattsolutions/local-business-lead-scraper) and [Google Maps Email Extractor](https://apify.com/prattsolutions/google-maps-email-extractor) visit each business's website for its emails.

#### How long does a run take?

Searches run one after another. A broad search takes a few minutes, because the scraper opens every business on the list. Each search is capped at 10 minutes: businesses not reached by then are left out, and the run still succeeds.

#### 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.

#### What happens if a search fails?

The run stops at the failed search and is marked as failed. Leads from the searches that finished before it stay in the dataset.

#### Is it legal to scrape leads 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, and calling or texting leads is regulated in many countries. 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, worded as you would type it into Google Maps: a business type plus a location, such as "roofing contractors in Denver, CO". Queries run one after another, and each lead is tagged with the query that found it. A business found by several queries is saved once.

## `onlyWithPhone` (type: `boolean`):

Skip businesses that list no phone number.

## `onlyWithWebsite` (type: `boolean`):

Skip businesses that list no website.

## `minRating` (type: `number`):

Skip businesses rated below this, from 1 to 5. 0 keeps every business, including those with no rating yet.

## `minReviews` (type: `integer`):

Skip businesses with fewer Google reviews than this. 0 keeps every business.

## `depth` (type: `integer`):

How many times to scroll each query's results list. Each scroll loads more businesses, so a higher value returns more leads for broad queries but makes each query take longer. The form starts at 2 so a first run finishes quickly. Runs that leave it out use 10.

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

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

## Actor input object example

```json
{
  "keywords": [
    "roofing contractors in Denver, CO",
    "HVAC companies in Phoenix, AZ"
  ],
  "onlyWithPhone": false,
  "onlyWithWebsite": false,
  "minRating": 0,
  "minReviews": 0,
  "depth": 2,
  "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": [
        "HVAC companies in Phoenix, AZ"
    ],
    "depth": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("prattsolutions/google-maps-leads-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 = {
    "keywords": ["HVAC companies in Phoenix, AZ"],
    "depth": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("prattsolutions/google-maps-leads-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 '{
  "keywords": [
    "HVAC companies in Phoenix, AZ"
  ],
  "depth": 2
}' |
apify call prattsolutions/google-maps-leads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,prattsolutions/google-maps-leads-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/DtsIeMyEr6WeezEfo/builds/fd2EpiaTx5CenXIhX/openapi.json
