# Google Maps Scraper - Local Business Leads (`x402farm/google-maps-leads`) Actor

Scrape Google Maps local businesses by keyword + location: name, rating, reviews, category, phone, website and Maps URL. Runs from a residential IP that bypasses Google's datacenter blocks. Pay per business, no subscription.

- **URL**: https://apify.com/x402farm/google-maps-leads.md
- **Developed by:** [Laurent Halbrun](https://apify.com/x402farm) (community)
- **Categories:** Business, Lead generation, AI
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#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 — Local Business Leads (residential IP)

Scrape **local businesses from Google Maps** by keyword + location, and get clean, structured leads. Runs from a **residential IP** that bypasses Google's datacenter blocks — cloud scrapers get throttled or served empty results, this one doesn't.

Pay **per business**, no subscription.

### What you get per business

| Field | Example |
|---|---|
| `name` | JFS Depann' Plombier Bordeaux |
| `category` | Plombier |
| `rating` | 4.9 |
| `reviews` | 120 |
| `phone` | 06 48 56 65 03 |
| `website` | https://jfsdepannplombierbordeaux.com |
| `mapsUrl` | https://www.google.com/maps/place/… |

### Input

```json
{ "q": "plombier", "location": "Bordeaux", "maxResults": 40 }
```

- **q** — keyword / business type (`restaurant`, `dentist`, `coworking`, …)
- **location** — city / area (optional if the keyword already names a place)
- **searches** — optional list to run several keyword+location searches in one run (e.g. `["restaurant Nantes", "bar Lille"]`)
- **maxResults** — up to 120 businesses per search

### Why residential IP matters

Google Maps aggressively rate-limits and blocks datacenter/cloud IP ranges. This actor routes a real browser through a residential IP, so the results feed actually loads and you get phone numbers and websites the cloud scrapers miss.

### Great for

- Cold-calling / B2B prospection lists (name + phone + website + category)
- Local market research (density, ratings, competitors per area)
- Enriching a CRM with verified local businesses

Pay-per-result — you're charged once per business delivered.

# Actor input Schema

## `q` (type: `string`):

What to search on Google Maps, e.g. plombier, restaurant, dentist, hair salon, coworking.

## `location` (type: `string`):

City, area or region, e.g. Bordeaux, Paris 11, Lyon, Guadeloupe. Can be left empty if the keyword already includes a place.

## `searches` (type: `array`):

Optional: run several keyword+location searches in one run. Each item is a string like "restaurant Nantes". Overrides the single search above when provided.

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

Up to 120 businesses per search. Higher = more leads, more cost/time.

## `mobileIp` (type: `boolean`):

Scrape Google Maps from a real mobile-carrier IP (Orange, AS16028, France) instead of the default residential one. Mobile IPs are the hardest class for Google to block. Charged only when the mobile exit actually served the request.

## Actor input object example

```json
{
  "q": "plombier",
  "location": "Bordeaux",
  "searches": [],
  "maxResults": 20,
  "mobileIp": false
}
```

# 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 = {
    "q": "plombier",
    "location": "Bordeaux",
    "searches": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("x402farm/google-maps-leads").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 = {
    "q": "plombier",
    "location": "Bordeaux",
    "searches": [],
}

# Run the Actor and wait for it to finish
run = client.actor("x402farm/google-maps-leads").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "q": "plombier",
  "location": "Bordeaux",
  "searches": []
}' |
apify call x402farm/google-maps-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=x402farm/google-maps-leads",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/xI4fpWXfdLUMYE80q/builds/maAAa0Fz5cvD2fQjg/openapi.json
