# Google Maps Business Leads Scraper (`creative_invoice/google-maps-leads-scraper`) Actor

Extract business names, categories, addresses, phone numbers, websites, ratings and Google Maps URLs,lead generation, market research.

- **URL**: https://apify.com/creative\_invoice/google-maps-leads-scraper.md
- **Developed by:** [TheEnd](https://apify.com/creative_invoice) (community)
- **Categories:** Open source
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 leads

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?

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

Apify Actor for collecting public Google Maps business listing data.

### Features

- Multiple search queries
- Configurable results per query
- Name, category, address, phone, website
- Rating and review count
- Google Maps URL
- Optional Apify Proxy
- Duplicate removal
- Dataset output

### Example input

```json
{
  "searchQueries": ["dentists in Noida", "gyms in Gurgaon"],
  "maxResultsPerQuery": 50,
  "includeWebsite": true
}
```

### Local development

```bash
npm install
apify run
```

### Deploy

Upload this project to an Apify Actor using the Apify Console or CLI.

### Responsible use

Comply with applicable laws, privacy/data-protection requirements, and the terms/access rules of services you interact with. Google Maps markup can change, so selectors may require maintenance.

# Actor input Schema

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

Google Maps searches such as dentists in Noida, restaurants in Delhi, or gyms in Gurgaon.

## `maxResultsPerQuery` (type: `integer`):

Maximum number of businesses to collect for each Google Maps search query.

## `includeWebsite` (type: `boolean`):

Extract the business website URL.

## `includePhone` (type: `boolean`):

Extract business phone numbers.

## `includeReviews` (type: `boolean`):

Extract Google ratings and review counts.

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

Extract available business opening-hour information.

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

Extract latitude and longitude when available.

## `includePhotos` (type: `boolean`):

Extract available business photo URLs.

## `extractEmails` (type: `boolean`):

Visit business websites and extract publicly visible email addresses.

## `extractSocialProfiles` (type: `boolean`):

Extract publicly linked Facebook, Instagram, LinkedIn, YouTube and X/Twitter profiles.

## `auditWebsite` (type: `boolean`):

Check website availability, SSL, title, description, mobile viewport and basic technologies.

## `enableLeadScore` (type: `boolean`):

Calculate a 0-100 lead score and HOT, WARM or COLD grade.

## `minimumRating` (type: `number`):

Only keep businesses with a Google rating equal to or higher than this value.

## `maximumRating` (type: `number`):

Only keep businesses with a Google rating equal to or lower than this value.

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

Keep only businesses for which a phone number was found.

## `onlyWithoutWebsite` (type: `boolean`):

Keep only businesses for which Google Maps does not show a website.

## Actor input object example

```json
{
  "searchQueries": [
    "dentists in Noida"
  ],
  "maxResultsPerQuery": 1000,
  "includeWebsite": true,
  "includePhone": true,
  "includeReviews": true,
  "includeOpeningHours": true,
  "includeCoordinates": true,
  "includePhotos": false,
  "extractEmails": true,
  "extractSocialProfiles": true,
  "auditWebsite": true,
  "enableLeadScore": true,
  "minimumRating": 0,
  "maximumRating": 5,
  "onlyWithPhone": false,
  "onlyWithoutWebsite": false
}
```

# Actor output Schema

## `leads` (type: `string`):

The dataset containing all extracted business leads.

# 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("creative_invoice/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 = {}

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

```

## MCP server setup

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