# Google Maps B2B Leads Extractor (`martinjoz/google-maps-leads-extractor`) Actor

Extract verified B2B leads from Google Maps at scale. Get business names, phones, websites, ratings, and enriched contact info. Perfect for sales outreach, market research, and competitor analysis.

- **URL**: https://apify.com/martinjoz/google-maps-leads-extractor.md
- **Developed by:** [Martin Muchene](https://apify.com/martinjoz) (community)
- **Categories:** Lead generation, Real estate, Integrations
- **Stats:** 1 total users, 0 monthly users, 5.9% runs succeeded, NaN bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.50 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 B2B Leads Extractor

**Extract high-quality business leads from Google Maps at scale** — Perfect for real estate agents, agencies, sales teams, and market researchers who need verified local business data.

### 🎯 What It Does

This actor searches Google Maps and extracts comprehensive business intelligence including:
- ✅ Business names, addresses, coordinates
- ✅ Phone numbers, websites, social profiles
- ✅ Ratings, reviews, opening hours
- ✅ Business categories & attributes
- ✅ Email/contact enrichment (optional premium feature)

**Result:** Clean, structured JSON leads ready for CRM import or manual outreach.

---

### ⚡ Quick Start (5 minutes)

#### Step 1: Prepare Input
Create a JSON file with your search criteria:

```json
{
  "queries": ["Plumbers", "HVAC Contractors"],
  "defaultLocations": ["New York, NY", "Los Angeles, CA"],
  "defaultLimit": 100,
  "enrichCompanyContacts": true
}
````

#### Step 2: Run the Actor

```javascript
// Via Apify Console: Input the JSON above
// Via API: POST to https://api.apify.com/v2/acts/{actor-id}/runs with the input
```

#### Step 3: Run a Quick Test on Apify

1. Publish the actor to Apify and make it public.
2. Open the actor page in Apify Console.
3. Paste the sample input above or choose one of the example files in `examples/`.
4. Click **Run**.
5. When the run finishes, open the dataset and verify the output.

#### Step 4: Collect Results

Results appear in the actor's dataset with complete business data ready to export as JSON, CSV, or Excel. Customers can download exports directly from Apify in:

- JSON
- CSV
- Excel (XLSX)

#### Exporting results from Apify

1. Open the run details in Apify Console.
2. Go to the **Dataset** tab.
3. Click **Download dataset**.
4. Choose the desired format: JSON, CSV, or Excel.
5. Use the downloaded file for CRM import, analysis, or delivery.

***

### 📊 Input Parameters

| Parameter | Type | Required | Example | Notes |
|-----------|------|----------|---------|-------|
| `queries` | `string[]` | ✅ Yes | `["Dentists", "Orthodontists"]` | Business types/categories to search |
| `defaultLocations` | `string[]` | ✅ Yes | `["San Francisco, CA"]` | Geographic areas to search in |
| `defaultLimit` | `number` | ❌ Optional | `50` | Results per query per location (default: 50) |
| `enrichCompanyContacts` | `boolean` | ❌ Optional | `true` | Extract emails/phone from websites (costs extra) |

***

### 📤 Output Format

```json
{
  "searchString": "Plumbers in New York, NY",
  "rank": 1,
  "title": "Expert Plumbing LLC",
  "categoryName": "Plumber",
  "address": "123 Main St, New York, NY 10001",
  "city": "New York",
  "state": "New York",
  "website": "https://expertplumbing.com",
  "phone": "+1 (555) 123-4567",
  "location": {
    "lat": 40.7128,
    "lng": -74.0060
  },
  "totalScore": 4.8,
  "reviewsCount": 247,
  "openingHours": [
    {"day": "Monday", "hours": "8 AM to 6 PM"}
  ],
  "placeId": "ChIJ...",
  "permanentlyClosed": false,
  "temporarilyClosed": false
}
```

***

### Apify Usage Model

This actor is designed for the Apify marketplace as a **compute-based** solution.

- The actor itself is free to start.
- Users only pay Apify for the compute units used by each run.
- Apify handles marketplace billing and usage tracking.
- As the actor owner, you receive revenue share from Apify for those usage fees.

**For users:** You can test the actor with small sample inputs and only pay for the compute used during the run.

**For you:** Publish the actor as public on Apify, and let Apify handle traffic and billing.

***

### Commercial Lead Delivery Model

This actor is the extraction engine. You can keep it public on Apify for discovery and testing, while selling finished lead delivery and support externally.

#### How it works

1. Publish this actor publicly on Apify with compute-based access.
2. Let users run small tests on Apify to validate the actor.
3. Offer paid delivery packages for finished lead datasets, enrichment, cleanup, and priority support.
4. Earn from both:
   - Apify revenue share on compute usage
   - your external service fees for lead processing and delivery

#### You can charge separately for:

- Data delivery
- Enrichment
- Cleanup
- Priority support

#### Example service packages

| Package | What customers get | Suggested price |
|---|---|---|
| Starter | 1,000 raw leads export (JSON/CSV) | $10 |
| Standard | 5,000 leads + cleanup + optional enrichment | $40 |
| Premium | 10,000 leads + email/phone enrichment + support | $90 |

**Contact for paid delivery:** `martinjozaws@gmail.com`

#### Why this is strong value

- Apify handles the execution, traffic, and billing details.
- You only need to maintain the actor and deliver the datasets.
- Customers pay for real results and support, not just compute.
- Your profit becomes Apify share plus your service markup.

**Tip:** Start with a low-priced test package so new customers can validate the actor quickly.

***

### 💡 Use Cases & ROI

#### 🏠 Real Estate Lead Generation

- Find investor properties in target neighborhoods
- Identify contractors for renovation services
- **ROI:** 100 contractor leads @ $0.50/lead = $50 investment, close 1-2 deals = $5K+ profit

#### 🚗 Local Service Businesses

- Auto repair shops targeting neighborhoods
- HVAC companies for seasonal outreach
- **ROI:** 200 businesses @ $0.50/lead = $100, convert 5% = 10 calls

#### 🏢 Market & Competitor Research

- Analyze local business density by category
- Scout locations for new franchises
- Monitor competitor activity
- **ROI:** Save $1K+ in manual research time

#### 📞 B2B Cold Outreach

- Insurance, legal, accounting referral partners
- Wholesale/distributor prospecting
- **ROI:** 500 qualified leads = 10-20 qualified meetings

***

### 🔧 How It Works

1. **Input validation** — Verify locations & search terms
2. **Browser automation** — Launch Playwright/Puppeteer
3. **Proxy rotation** — (Optional) Use rotating proxies to avoid blocks
4. **Data extraction** — Parse Google Maps HTML for business info
5. **Contact enrichment** — (Optional) Crawl websites for email/phone
6. **Normalization** — Clean & structure the data
7. **Export** — Save as JSON/CSV

**Performance:**

- \~2-5 seconds per business
- 100 businesses ≈ 5-10 minutes
- Supports 100+ concurrent searches

***

### 💰 Pricing & Costs

#### Compute Units (CUs)

- **Base scraping:** ~0.5-1 CU per location search
- **With enrichment:** +0.3-0.5 CU per business
- **Typical cost:** $0.30-$0.70 per 100 leads

#### Example Scenarios

| Scenario | Queries | Locations | Limit | Estimated Cost | Leads |
|----------|---------|-----------|-------|-----------------|-------|
| Small test | 2 | 1 | 20 | $0.50 | 40 |
| Medium campaign | 5 | 3 | 50 | $5-10 | 750 |
| Large export | 10 | 5 | 100 | $20-30 | 5,000 |

**Pro tip:** Use without enrichment first to validate the searches, then enable enrichment for final delivery.

***

### ⚙️ Configuration Details

#### Proxy Support

The actor respects Apify's [proxy configuration](https://apify.com/docs/proxy) if set. For high-volume scraping, we recommend datacenter or residential proxies.

#### Data Freshness

Google Maps data is live. Each run fetches current information, so results may vary slightly between runs.

#### Rate Limits

- No inherent rate limits from our side
- Google may throttle if you scrape too fast
- The actor implements smart delays to avoid blocks

***

### 📦 Export Options

In your Apify account, export results as:

- ✅ **JSON** — For custom processing
- ✅ **CSV** — For Excel/Sheets import
- ✅ **JSON Lines** — For streaming/API integration

***

### 🐛 Troubleshooting

#### "No results found"

- Verify the location name (use full city, state, country)
- Try different search terms
- Check if Google Maps operates in that region

#### "Page loaded but no data extracted"

- This is rare but can happen with layout changes
- Contact support with the specific search term

#### High cost?

- Reduce `defaultLimit` to test first
- Disable `enrichCompanyContacts` initially
- Combine multiple locations into fewer queries

***

### 📞 Support & Updates

- ✅ **Issues?** Contact our support team in your Apify account
- ✅ **Feature requests?** Let us know on our feedback board
- ✅ **Regular updates** — We improve extraction accuracy & add new data fields quarterly

***

### ⚖️ Legal & Compliance

This actor respects Google Maps' terms of service. Use extracted data in accordance with:

- Your local data privacy laws (GDPR, CCPA, etc.)
- Google's ToS for data use
- Anti-spam regulations for outreach

**Not for SPAM** — Use leads responsibly for legitimate business outreach.

***

### 🎓 Next Steps

1. **Try it now** — Click "Try for free" above
2. **Check the examples** — See sample input/output
3. **Run on your data** — Use your own searches
4. **Integrate via API** — Connect to your workflow

Happy lead hunting! 🚀

# Actor input Schema

## `queries` (type: `array`):

What to search for (e.g., 'restaurants', 'plumbers')

## `defaultLocations` (type: `array`):

Where to search (e.g., 'New York', 'London')

## `defaultLimit` (type: `integer`):

Maximum number of results per query (1-50)

## `enrichCompanyContacts` (type: `boolean`):

Extract emails and phones from business websites

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

Search language (e.g., 'en', 'es', 'fr')

## `maxConcurrency` (type: `integer`):

Maximum concurrent requests (1-6)

## Actor input object example

```json
{
  "defaultLimit": 20,
  "enrichCompanyContacts": false,
  "language": "en",
  "maxConcurrency": 3
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("martinjoz/google-maps-leads-extractor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("martinjoz/google-maps-leads-extractor").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 '{}' |
apify call martinjoz/google-maps-leads-extractor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps B2B Leads Extractor",
        "description": "Extract verified B2B leads from Google Maps at scale. Get business names, phones, websites, ratings, and enriched contact info. Perfect for sales outreach, market research, and competitor analysis.",
        "version": "1.2",
        "x-build-id": "cYWnqeq0HQlC5mJFt"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/martinjoz~google-maps-leads-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-martinjoz-google-maps-leads-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/martinjoz~google-maps-leads-extractor/runs": {
            "post": {
                "operationId": "runs-sync-martinjoz-google-maps-leads-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/martinjoz~google-maps-leads-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-martinjoz-google-maps-leads-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "queries": {
                        "title": "Business Types",
                        "type": "array",
                        "description": "What to search for (e.g., 'restaurants', 'plumbers')",
                        "items": {
                            "type": "string"
                        }
                    },
                    "defaultLocations": {
                        "title": "Locations",
                        "type": "array",
                        "description": "Where to search (e.g., 'New York', 'London')",
                        "items": {
                            "type": "string"
                        }
                    },
                    "defaultLimit": {
                        "title": "Results Limit",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of results per query (1-50)",
                        "default": 20
                    },
                    "enrichCompanyContacts": {
                        "title": "Enrich Contact Info",
                        "type": "boolean",
                        "description": "Extract emails and phones from business websites",
                        "default": false
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "Search language (e.g., 'en', 'es', 'fr')",
                        "default": "en"
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 6,
                        "type": "integer",
                        "description": "Maximum concurrent requests (1-6)",
                        "default": 3
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
