# Google Maps Business Contact Scraper MCP (`red.cars/google-maps-business-contact-mcp`) Actor

MCP actor for scraping business contact information from Google Maps. Search for businesses by query, get detailed contact info including phone and website. Built as MCP standby actor with PPE pricing.

- **URL**: https://apify.com/red.cars/google-maps-business-contact-mcp.md
- **Developed by:** [AutomateLab](https://apify.com/red.cars) (community)
- **Categories:** MCP servers, AI
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 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 Business Contact Scraper MCP

Scrape business contact information from Google Maps — names, addresses, phone numbers, websites, ratings, and reviews. Built as an Apify MCP (Model Context Protocol) standby actor for AI agents and LLM integrations.

[Apify Store Listing](https://apify.com/red.cars/google-maps-business-contact-mcp) | [Actor Detail](https://console.apify.com/actors/V2o1xu94Biqndv3Ru)

### What does this actor do?

Extracts **business contact data from Google Maps** using a headless browser. Search for businesses by query (e.g., "restaurants in Manhattan" or "plumbers near Times Square") and get back structured contact information including phone numbers, websites, ratings, and review counts.

The actor runs as an **MCP standby actor** — it stays idle until called via the MCP JSON-RPC protocol, then returns results directly. It's also usable as a standard batch Apify actor with JSON input.

### Why use this actor?

- **Lead generation** — Build prospect lists by category and location
- **B2B sales** — Find decision-maker contacts for companies in a territory
- **Market research** — Map competitor locations and contact details
- **Business discovery** — Find all businesses of a given type in a neighborhood
- **Real estate research** — Map all businesses at a given address or zip code

### Tools

| Tool | Price | Description |
|------|-------|-------------|
| `search_businesses` | $0.03 | Search Google Maps by query, returns name/address/rating/placeId |
| `get_business_details` | $0.05 | Get phone and website for a specific placeId |
| `search_businesses_with_emails` | $0.08 | Search + enrich each result with phone and website |

### How to use

#### MCP Protocol (AI agents)

Send a JSON-RPC POST to `/mcp` with:

```json
{
  "method": "tools/call",
  "params": {
    "name": "search_businesses",
    "arguments": {
      "search_query": "restaurants in Manhattan",
      "max_results": 10
    }
  }
}
````

#### Apify Batch Mode

```bash
apify call red.cars/google-maps-business-contact-mcp \
  --input '{"tool": "search_businesses", "params": {"search_query": "dentists in Brooklyn", "max_results": 5}}'
```

#### JavaScript / TypeScript

```javascript
const { handleRequest } = await import('./dist/main.js');

const result = await handleRequest({
  toolName: 'search_businesses',
  arguments: { search_query: 'coffee shops in SoHo', max_results: 10 }
});
console.log(JSON.parse(result.content[0].text));
```

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `tool` | string | Yes | One of: `search_businesses`, `get_business_details`, `search_businesses_with_emails` |
| `search_query` | string | For search tools | Google Maps search query (e.g., "restaurants in NYC") |
| `place_id` | string | For details tool | Google Maps place ID from a search result |
| `max_results` | integer | No | Max results to return (1–50, default 10) |

#### Batch input example

```json
{
  "tool": "search_businesses_with_emails",
  "params": {
    "search_query": "plumbers near Times Square",
    "max_results": 20
  }
}
```

### Output

Dataset items with the following fields:

| Field | Type | Description |
|-------|------|-------------|
| `name` | string | Business name |
| `address` | string | Full address |
| `phone` | string | null | Phone number |
| `website` | string | null | Website URL |
| `rating` | number | null | Star rating (e.g., 4.5) |
| `reviews` | integer | null | Number of reviews |
| `category` | string | null | Business category |
| `placeId` | string | null | Google Maps place ID (use with `get_business_details`) |

#### Output example

```json
{
  "query": "pizza in Brooklyn",
  "count": 2,
  "businesses": [
    {
      "name": "Joe's Pizza",
      "address": "123 Smith St, Brooklyn, NY 11201",
      "phone": "+1-718-555-0100",
      "website": "https://joespizza.com",
      "rating": 4.7,
      "reviews": 892,
      "category": "Pizza delivery",
      "placeId": "ChIJ8fz2XcJZwok..."
    }
  ]
}
```

### Cost estimation

- **Search only** (`search_businesses`): $0.03 per run
- **Search + enrichment** (`search_businesses_with_emails`): $0.08 per run
- **Container compute**: Apify includes 4096 MB memory per run
- Each tool call returns up to `max_results` businesses (default 10)

Example: 100 searches at $0.03 each = **$3.00**

### Tips and advanced options

- **Use `placeId` for details** — After a `search_businesses` call, use the returned `placeId` with `get_business_details` to get phone and website for specific businesses
- **Batch enrichment** — `search_businesses_with_emails` does this automatically, but costs more than search-only
- **Limit results** — Use `max_results: 5` for quick tests before scaling up
- **Rate limiting** — Google Maps may throttle rapid requests; add delays between calls in high-volume scenarios
- **Proxy rotation** — Apify accounts include built-in proxy rotation for anti-bot protection

### FAQ

**Is this legal to use?**
This scraper is for scraping publicly available business contact information from Google Maps. Ensure your use case complies with Google's Terms of Service and applicable laws. Do not use for spam, harassment, or unsolicited marketing.

**Why is the address sometimes empty?**
Google Maps doesn't always return a full street address in search results. Use the `placeId` with `get_business_details` for more complete data.

**Why does enrichment cost more?**
`search_businesses_with_emails` requires an additional page visit per business to extract phone and website, which costs more compute.

**How do I get a placeId?**
Run `search_businesses` first — each result includes a `placeId` field.

### Support

For issues or feature requests: [Apify Issues](https://console.apify.com/actors/V2o1xu94Biqndv3Ru/issues)

For custom integrations: contact via Apify Store profile

# Actor input Schema

## `tool` (type: `string`):

The tool to run

## `search_query` (type: `string`):

Google Maps search query (e.g., 'restaurants in NYC', 'plumbers near Times Square')

## `place_id` (type: `string`):

Google Maps place ID for details lookup

## `max_results` (type: `integer`):

Maximum number of results to return

## Actor input object example

```json
{
  "tool": "search_businesses",
  "search_query": "restaurants in Manhattan",
  "place_id": "",
  "max_results": 10
}
```

# 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 = {
    "tool": "search_businesses",
    "search_query": "restaurants in Manhattan",
    "place_id": "",
    "max_results": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("red.cars/google-maps-business-contact-mcp").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 = {
    "tool": "search_businesses",
    "search_query": "restaurants in Manhattan",
    "place_id": "",
    "max_results": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("red.cars/google-maps-business-contact-mcp").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 '{
  "tool": "search_businesses",
  "search_query": "restaurants in Manhattan",
  "place_id": "",
  "max_results": 10
}' |
apify call red.cars/google-maps-business-contact-mcp --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Business Contact Scraper MCP",
        "description": "MCP actor for scraping business contact information from Google Maps. Search for businesses by query, get detailed contact info including phone and website. Built as MCP standby actor with PPE pricing.",
        "version": "1.0",
        "x-build-id": "j1TORT3Z8UUH0FEAm"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/red.cars~google-maps-business-contact-mcp/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-red.cars-google-maps-business-contact-mcp",
                "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/red.cars~google-maps-business-contact-mcp/runs": {
            "post": {
                "operationId": "runs-sync-red.cars-google-maps-business-contact-mcp",
                "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/red.cars~google-maps-business-contact-mcp/run-sync": {
            "post": {
                "operationId": "run-sync-red.cars-google-maps-business-contact-mcp",
                "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",
                "required": [
                    "tool"
                ],
                "properties": {
                    "tool": {
                        "title": "Tool",
                        "enum": [
                            "search_businesses",
                            "get_business_details",
                            "search_businesses_with_emails"
                        ],
                        "type": "string",
                        "description": "The tool to run",
                        "default": "search_businesses"
                    },
                    "search_query": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Google Maps search query (e.g., 'restaurants in NYC', 'plumbers near Times Square')",
                        "default": "restaurants in Manhattan"
                    },
                    "place_id": {
                        "title": "Place ID",
                        "type": "string",
                        "description": "Google Maps place ID for details lookup",
                        "default": ""
                    },
                    "max_results": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of results to return",
                        "default": 10
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
