# Google Maps Business Listings Scraper (`data_dino/googlemaps-sb`) Actor

💰 $1.00 per 1000 comments❗Search Google Maps for businesses and collect structured listings with names, contact details, ratings, review counts, categories, hours, and service availability. Build local market research, prospect lists, and location datasets from one query.

- **URL**: https://apify.com/data\_dino/googlemaps-sb.md
- **Developed by:** [Data Dino](https://apify.com/data_dino) (community)
- **Categories:** Lead generation, Travel, MCP servers
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.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/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 Listings Scraper

Search Google Maps for businesses by category, service, and location, then receive one structured dataset item per listing. This actor is useful for local market research, prospecting, location analysis, and building business directories from publicly visible listing information.

### Features

- Search by a natural-language query such as `cafes in New York`.
- Collect a configurable number of listings from the results.
- Return business names, addresses, websites, phone numbers, categories, hours, ratings, and review counts when displayed.
- Preserve Google Maps service indicators for shopping, pickup, and delivery.
- Export predictable JSON dataset records through the standard Apify dataset.

### Input

| Field | Type | Required | Default | Description |
|---|---|---:|---|---|
| `searchQuery` | String | Yes | `turkish restaurants in Toronto, Canada` | Google Maps search phrase, including a location when useful. |
| `totalResults` | Integer | Yes | `1` | Maximum number of listings to open and collect; allowed range is 1–100. |
| `appendResults` | Boolean | No | `false` | Pass append mode to the scraper's temporary CSV output. The run's dataset records are always appended by Apify. |

#### Example input

```json
{
  "searchQuery": "coffee shops in Seattle, Washington",
  "totalResults": 5,
  "appendResults": false
}
```

### Output

The actor pushes one dataset item per successfully opened listing. Fields can be empty when a business does not publish them or Google Maps changes the page layout.

```json
{
  "name": "Sultan Ahmet Turkish Cuisine",
  "address": "5055 Plantation Pl, Mississauga, ON L5M 6J3, Canada",
  "website": "sultanahmet.ca",
  "phone_number": "+1 289-805-7003",
  "reviews_count": 21517,
  "reviews_average": 4.8,
  "store_shopping": "No",
  "in_store_pickup": "Yes",
  "store_delivery": "No",
  "place_type": "Turkish restaurant",
  "opens_at": "Closed · Opens 11am",
  "introduction": "None Found"
}
```

### How to run

1. Enter a Google Maps search phrase.
2. Set the maximum number of results.
3. Start the actor and open the default dataset when the run completes.
4. Export the dataset as JSON, CSV, Excel, or another supported format.

### Limitations

- Results depend on the listings and fields publicly shown for the query at run time.
- Google Maps can personalize, reorder, or limit search results, so repeated runs may differ.
- Some fields may be blank, and the actor does not invent missing business information.
- Page structure and anti-automation behavior can change; a run may return fewer records than requested.
- Use collected data in accordance with Google Maps terms, applicable law, and your organization's data-use policies.

# Actor input Schema

## `searchQuery` (type: `string`):

The Google Maps search phrase, such as a business category and location.

## `totalResults` (type: `integer`):

Maximum number of business listings to open and collect from the search results.

## `appendResults` (type: `boolean`):

Pass append mode to the underlying scraper when writing its temporary CSV output. Dataset records from this run are always added to the Apify dataset.

## Actor input object example

```json
{
  "searchQuery": "turkish restaurants in Toronto, Canada",
  "totalResults": 1,
  "appendResults": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

Structured Google Maps business listing records collected during the run.

# 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 = {
    "searchQuery": "turkish restaurants in Toronto, Canada",
    "totalResults": 1,
    "appendResults": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_dino/googlemaps-sb").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 = {
    "searchQuery": "turkish restaurants in Toronto, Canada",
    "totalResults": 1,
    "appendResults": False,
}

# Run the Actor and wait for it to finish
run = client.actor("data_dino/googlemaps-sb").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 '{
  "searchQuery": "turkish restaurants in Toronto, Canada",
  "totalResults": 1,
  "appendResults": false
}' |
apify call data_dino/googlemaps-sb --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data_dino/googlemaps-sb"
        }
    }
}

```

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/3IZvvPJ8EgoMjPWI0/builds/ooOZSewyksdehCgFA/openapi.json
