# AI Google Maps Scraper | Get Leads from Google Maps (`grand_knightship/ai-google-maps-scraper`) Actor

Scrape Google Maps business leads with just  plain-English query. Input: {"query": "coffee shops in Austin TX with phone numbers"}. Output: structured JSON with name, address, rating, phone, website. No config, no CSS selectors, no API keys. For lead gen, B2B prospecting, market research.

- **URL**: https://apify.com/grand\_knightship/ai-google-maps-scraper.md
- **Developed by:** [Mr Or Angie](https://apify.com/grand_knightship) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 75.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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

## AI Google Maps Scraper | Natural-Language Search

Search Google Maps by typing what you want in plain English. Get clean JSON leads back - no spreadsheets to configure, no API keys to manage, no settings panels. Just one search box.

Type something like `dentists in Tampa with phone numbers` and the actor returns structured business listings ready for your CRM, cold outreach, or spreadsheet.

### Why use this actor

- One search box. No `searchStringsArray`, no `locationQuery`, no field mapping. Type a sentence, get leads.
- Plain-English parsing. Ask for "top 50 coffee shops in Austin, need websites" and it understands the count, the place, and which fields you want.
- Clean, predictable output. Every result has the same shape - name, address, rating, and the extras you asked for (phone, website).
- Fast and cheap. HTTP-based scraping, ~7 seconds for 20 results, $2 per 1,000 results.

### Input

One field.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | A plain-English request for Google Maps data, 3 to 500 characters. |

Examples:

- `Italian restaurants in Miami with phone numbers`
- `top 50 coffee shops in Austin, need websites`
- `HVAC contractors in Raleigh NC`
- `personal injury lawyers in Phoenix AZ with phone and website`

### Output

Each result is one business. Fields returned depend on what you asked for, plus the basics.

| Field | Always returned | Description |
| --- | --- | --- |
| `name` | yes | Business name |
| `address` | yes | Full street address |
| `rating` | yes | Google star rating |
| `phone` | when requested | Formatted phone number, when Google has one |
| `website` | when requested | Business website URL |

#### Sample output

```json
[
  {
    "name": "Epoch Coffee",
    "address": "221 W N Loop Blvd, Austin, TX 78751, United States",
    "rating": 4.5,
    "phone": "+1 512-454-3762",
    "website": "https://epochcoffee.com"
  },
  {
    "name": "Mozart's Coffee Roasters",
    "address": "3825 Lake Austin Blvd, Austin, TX 78703, United States",
    "rating": 4.5,
    "phone": "+1 512-477-2900"
  }
]
```

### Pricing

Pay per result. You are charged $0.002 for each business returned ($2 per 1,000 results). Runs that return zero results cost nothing beyond the actor start.

### Use cases

- Lead generation for sales teams (real estate agents, dentists, plumbers, lawyers, HVAC, roofing, med spas)
- Building local business directories
- Market research and competitor mapping
- Enriching contact lists with phones and websites

### How it works

You type a request. A fast language model turns it into a structured Google Maps search (what to find, where, how many, which fields). The actor runs an HTTP-based Google Maps scraper, trims the output to only the fields you asked for, and pushes clean JSON to the dataset. No browser, no fluff.

# Actor input Schema

## `query` (type: `string`):

A plain-English description of the business leads you need. Include the business category and the location. Example: "plumbers in New York City with websites". The actor uses an AI model to convert your query into a Google Maps search and returns structured results.

## Actor input object example

```json
{
  "query": "Italian restaurants in Miami with phone numbers"
}
```

# 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 = {
    "query": "Italian restaurants in Miami with phone numbers"
};

// Run the Actor and wait for it to finish
const run = await client.actor("grand_knightship/ai-google-maps-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 = { "query": "Italian restaurants in Miami with phone numbers" }

# Run the Actor and wait for it to finish
run = client.actor("grand_knightship/ai-google-maps-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 '{
  "query": "Italian restaurants in Miami with phone numbers"
}' |
apify call grand_knightship/ai-google-maps-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,grand_knightship/ai-google-maps-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/FkDDorieSZ97lOMLJ/builds/66ks7ASIPAyddjVkn/openapi.json
