# Google Maps Local Business Leads Scraper (`coregent/google-maps-local-business-leads-scraper`) Actor

Scrape local business leads from Google Maps by keyword and location. Export clean, flat, CSV-friendly business data for outreach, SEO, web design sales, competitor research, and local lead generation.

- **URL**: https://apify.com/coregent/google-maps-local-business-leads-scraper.md
- **Developed by:** [Delowar Munna](https://apify.com/coregent) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 8 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 1,000 business results

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?

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 Local Business Leads Scraper

![Google Maps Local Business Leads Scraper](https://raw.githubusercontent.com/coregentdevspace/google-maps-local-business-leads-scraper-assets/main/thumbnail-google-maps-local-business-leads-scraper.jpg)

Lead-focused Google Maps scraping by **keyword + location**. Returns a clean, flat, CSV-friendly business row per result — built for **outreach, SEO, web design sales, competitor research, and local lead generation**.

V1 deliberately avoids website crawling, email extraction, full review scraping, photos, menus, and AI enrichment so the run stays **fast and cheap**. You only pay for unique business rows that pass your filters and are successfully written to the dataset.

### ✨ Why this scraper

- **Lead-focused** — 28 flat fields tuned for cold outreach (phone, website, rating, review count, address parts, lead score, reason tags).
- **Pay-Per-Event** — `$` per saved unique business row. Duplicates, filtered rows, and failed pushes are not charged.
- **No login, no cookies, no sessions** — just keyword + location.
- **CSV-friendly output** — flat structure, no nested objects, drops cleanly into Sheets/Excel/CRMs.
- **Transparent lead score** — rule-based (no AI), explained below.

***

### 🚀 Quick start — sample inputs

#### Example 1 — single query

```json
{
  "searchQueries": [
    { "key": "plumbers", "value": "Canberra ACT" }
  ],
  "maxResults": 100,
  "country": "AU",
  "language": "en",
  "websiteFilter": "any",
  "phoneRequired": false,
  "includeOpeningHours": true,
  "includeCoordinates": true,
  "includeLeadScore": true,
  "deduplicateResults": true,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

#### Example 2 — multi-query, phone required, only businesses without a website (web-design lead list)

```json
{
  "searchQueries": [
    { "key": "electricians", "value": "Sydney NSW" },
    { "key": "dentists",     "value": "Melbourne VIC" },
    { "key": "cafes",        "value": "Brisbane QLD" }
  ],
  "maxResults": 200,
  "country": "AU",
  "language": "en",
  "minRating": 4.0,
  "minReviewCount": 10,
  "websiteFilter": "missingWebsite",
  "phoneRequired": true,
  "categoryFilter": "",
  "includeOpeningHours": true,
  "includeCoordinates": true,
  "includeLeadScore": true,
  "deduplicateResults": true,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

> The `searchQueries` field uses Apify's **Key/Value form editor** — the **Key** column is the business keyword (e.g. `plumbers`), the **Value** column is the location (e.g. `Canberra ACT`). Add one row per search.

***

### 📦 Output

The dataset has one view: **Business leads** — a 28-column flat table.

![Business leads table view](https://raw.githubusercontent.com/coregentdevspace/google-maps-local-business-leads-scraper-assets/main/google-maps-local-business-leads-scraper-output-business-leads-table-view.png)

#### Sample record — Business leads

```json
{
  "search_keyword": "electricians",
  "search_location": "Sydney NSW",
  "business_name": "Hello Electrical | Electrician Sydney",
  "category": "Electrician",
  "rating": 5,
  "review_count": 442,
  "phone": "+61 2 8000 1185",
  "website": "https://www.helloelectrical.com.au/",
  "website_domain": "helloelectrical.com.au",
  "address": "192 Edgeware Rd, Newtown NSW 2042, Australia",
  "street_address": "192 Edgeware Rd",
  "suburb": "",
  "city": "Newtown",
  "state": "NSW",
  "postcode": "2042",
  "country": "Australia",
  "google_maps_url": "https://www.google.com/maps/place/Hello+Electrical+%7C+Electrician+Sydney/",
  "place_id": "0x6b0d57cca361e2b1:0x3828b97e7714dc6d",
  "latitude": -33.9044935,
  "longitude": 151.1733881,
  "opening_hours": "Closes 5 pm",
  "is_open_now": true,
  "has_website": true,
  "has_phone": true,
  "lead_quality_score": 100,
  "lead_quality_label": "Strong",
  "reason_tags": [
    "has_phone",
    "has_website",
    "high_rating",
    "many_reviews",
    "complete_address",
    "category_found",
    "opening_hours_found",
    "outreach_ready"
  ],
  "scraped_at": "2026-05-05T05:20:53.092Z"
}
```

#### Output fields (28)

`search_keyword`, `search_location`, `business_name`, `category`, `rating`, `review_count`, `phone`, `website`, `website_domain`, `address`, `street_address`, `suburb`, `city`, `state`, `postcode`, `country`, `google_maps_url`, `place_id`, `latitude`, `longitude`, `opening_hours`, `is_open_now`, `has_website`, `has_phone`, `lead_quality_score`, `lead_quality_label`, `reason_tags`, `scraped_at`.

***

### 🎯 Lead quality score

Transparent rule-based score (0–100) computed from visible fields — no AI, no external enrichment.

| Signal              | Points |
| ------------------- | -----: |
| Has phone           |    +20 |
| Has website         |    +20 |
| Rating ≥ 4.3        |    +15 |
| Review count ≥ 30   |    +15 |
| Has full address    |    +10 |
| Category found      |    +10 |
| Opening hours found |    +10 |

**Labels**: `Strong` (80–100) · `Good` (60–79) · `Moderate` (40–59) · `Weak` (0–39).
**Reason tags** include `outreach_ready` when `has_phone`, `business_name`, and `address` are all present — sort by this tag to get a clean call/email list.

***

### 💰 Pricing

**Pay-Per-Event**. The actor charges a single `business-result` event for each unique, filtered business row that is successfully written to the dataset. The actor honors the user-configured per-run spending cap (Apify `eventChargeLimitReached`) and stops cleanly when reached.

Not charged:

- Duplicates (de-duplicated by `place_id`, listing URL, or name+address).
- Rows filtered out by `minRating`, `minReviewCount`, `websiteFilter`, `phoneRequired`, or `categoryFilter`.
- Rows missing a `business_name`.
- Failed dataset pushes.
- Anything after the per-run spending cap is reached.

***

#### 🚦 Proxy policy

Use **Apify Datacenter** proxy or **no proxy** for normal runs — both work reliably for Google Maps search at this actor's conservative concurrency.

**Apify Residential proxy is not supported.** The actor will fail at startup if `apifyProxyGroups` includes `RESIDENTIAL`. Reason: in pay-per-event actors, residential bandwidth (~/GB) is billed to the developer, not the run user, so a single bandwidth-heavy run could exceed the per-result event revenue.

If you genuinely need residential routing, supply your own residential provider via the proxy editor's **Custom proxy URLs** field — that traffic goes through your provider, not Apify, and is unaffected:

```
http://user:pass@proxy.iproyal.com:12321
http://user:pass@proxy.brightdata.com:22225
http://user:pass@proxy.oxylabs.io:7777
```

***

### 📊 Run summary

After each run, a `RUN_SUMMARY` entry is written to the key-value store:

```json
{
  "search_queries_total": 3,
  "successful_queries": 3,
  "failed_queries": 0,
  "raw_results_found": 240,
  "results_saved": 187,
  "duplicates_removed": 21,
  "filtered_out": 32,
  "charged_events": 187,
  "blocked_requests": 0,
  "retried_requests": 4,
  "runtime_seconds": 142,
  "scraped_at": "2026-05-05T12:00:00.000Z"
}
```

`charged_events` always equals `results_saved`.

***

### ⚙️ Filters

| Filter             | Effect                                                                |
| ------------------ | --------------------------------------------------------------------- |
| `minRating`        | Drop businesses below this star rating (0 disables).                  |
| `minReviewCount`   | Drop businesses with fewer reviews (0 disables).                      |
| `websiteFilter`    | `any` / `hasWebsite` / `missingWebsite`.                              |
| `phoneRequired`    | If `true`, keep only businesses with a visible phone.                 |
| `categoryFilter`   | Case-insensitive contains match against the business category.        |
| `deduplicateResults` | Drop duplicates across queries (recommended ON).                    |

Filters are applied **after** extraction and **before** dataset push or event charge.

***

### 🚧 Limitations (V1)

- **Cards-only extraction**: V1 reads each business row directly from the search results panel and **does not click into individual place detail panels**. Phone, website, full opening hours, and `place_id` only appear when Google surfaces them on the card itself; otherwise these fields are empty/`null`.
- No website crawling, email extraction, or social link extraction.
- No full review text or sentiment.
- No photos, menus, prices, or popular times.
- No login/cookie/session-based scraping.
- Address parsing into street/suburb/city/state/postcode is best-effort; the full `address` field is the source of truth.
- Per-query hard cap is **500 results**; per-run hard cap is **5,000 results**.

***

### 🛠️ Technical notes

- **Stack**: Node.js 22 · Apify SDK 3 · Crawlee · Puppeteer.
- **Concurrency**: `min=1`, `max=3` (conservative to reduce blocking).
- **Memory**: 1 GB min · 2 GB default · 4 GB max.
- **Proxy**: Apify Proxy enabled by default; custom configs accepted.
- **Diagnostics**: On the first failed render (no feed, or feed but zero cards), the actor saves the page HTML and URL to the key-value store as `debug-no-feed-html` / `debug-zero-cards-html`.

# Actor input Schema

## `searchQueries` (type: `array`):

List of keyword + location pairs to search on Google Maps. Add one row per search — "Key" is the business keyword (e.g. plumbers), "Value" is the location (e.g. Canberra ACT). Each row becomes one search like "plumbers in Canberra ACT".

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

Maximum number of saved business rows per search query. Hard cap is 500 per query and 5000 per run.

## `country` (type: `string`):

Optional ISO country code used as a Google Maps locale hint, for example AU, US, GB. Leave empty to use the default Google locale.

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

Language code used for Google Maps UI (IETF BCP-47), for example en, es, de.

## `minRating` (type: `integer`):

Filter out businesses with a star rating below this value (0-5). Set to 0 to disable.

## `minReviewCount` (type: `integer`):

Filter out businesses with fewer than this many Google reviews. Set to 0 to disable.

## `websiteFilter` (type: `string`):

Filter by website availability. "any" keeps everything; "hasWebsite" keeps only businesses with a website; "missingWebsite" keeps only businesses without a website.

## `phoneRequired` (type: `boolean`):

If enabled, only keep businesses that have a visible phone number.

## `categoryFilter` (type: `string`):

Optional case-insensitive contains match against the business category. Leave empty to disable.

## `includeOpeningHours` (type: `boolean`):

Include opening hours summary when visible without expensive extra steps.

## `includeCoordinates` (type: `boolean`):

Include latitude/longitude when available from the listing URL.

## `includeLeadScore` (type: `boolean`):

Add lead\_quality\_score, lead\_quality\_label and reason\_tags to each row. When disabled, score fields are null/empty.

## `deduplicateResults` (type: `boolean`):

Remove duplicate businesses across queries using place\_id, listing URL, and name+address keys.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Defaults to Apify Proxy enabled.

## Actor input object example

```json
{
  "searchQueries": [
    {
      "key": "plumbers",
      "value": "Canberra ACT"
    },
    {
      "key": "electricians",
      "value": "Sydney NSW"
    }
  ],
  "maxResults": 100,
  "country": "",
  "language": "en",
  "minRating": 0,
  "minReviewCount": 0,
  "websiteFilter": "any",
  "phoneRequired": false,
  "categoryFilter": "",
  "includeOpeningHours": true,
  "includeCoordinates": true,
  "includeLeadScore": true,
  "deduplicateResults": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Flat 28-field table view of every business row pushed to the dataset.

# 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 = {
    "searchQueries": [
        {
            "key": "plumbers",
            "value": "Canberra ACT"
        },
        {
            "key": "electricians",
            "value": "Sydney NSW"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("coregent/google-maps-local-business-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 = {
    "searchQueries": [
        {
            "key": "plumbers",
            "value": "Canberra ACT",
        },
        {
            "key": "electricians",
            "value": "Sydney NSW",
        },
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("coregent/google-maps-local-business-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 '{
  "searchQueries": [
    {
      "key": "plumbers",
      "value": "Canberra ACT"
    },
    {
      "key": "electricians",
      "value": "Sydney NSW"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call coregent/google-maps-local-business-leads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coregent/google-maps-local-business-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/54ojPv0RsPRvuZIhf/builds/1med6l788ETALkg6n/openapi.json
