# Google Maps Places Scraper — Business Details (`data_dino/google-maps-business-scraper`) Actor

Collect Google Maps business/place records (name, category, address, coordinates, plus code, timezone, website, phone, rating, review counts, opening hours, photos, amenities) for any search term and location. Returns structured business details

- **URL**: https://apify.com/data_dino/google-maps-business-scraper.md
- **Developed by:** [Data Dino](https://apify.com/data_dino) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Maps Places Scraper — Business Details

Collect **business/place records** from Google Maps by search term and location — without an
API key, without login, and without cookies. Ideal for building business databases, lead
lists, competitor audits, and store-locator datasets.

### What you get

For every place matched, a structured record with:

- **Identity** — name, category + all category tags, Google `placeId`, `fid`, `cid`,
  `kgmid`, and the place page URL.
- **Where** — full address, split street / city / state / postal code / neighborhood,
  country code, latitude/longitude, and the **plus code**.
- **Contact** — website, phone (formatted + unformatted).
- **Reputation** — star rating, total review count, and the full 1★–5★ distribution.
  *(Aggregate stats only — individual reviews are **not** scraped.)*
- **Operations** — opening hours, photo gallery (with count), additional amenities/attributes,
  and a closed-status flag.
- **Context** — rank in the result set, the search term + location used, and timestamp.

### How it works

This actor talks to the same undocumented JSON endpoints the Google Maps frontend itself uses
(`/search?tbm=map&pb=…` and `/maps/preview/place?pb=…`). No API key, no session, no login
is required — the only gate is a browser TLS/HTTP fingerprint, which the actor handles
automatically.

- Search is by keyword + location text (e.g. `"coffee"` + `"Kuala Lumpur"`). Google geocodes
  the location itself — no separate coordinate lookup needed.
- Results are paged ~20 at a time until the cap (`maxCrawledPlacesPerSearch`) or the end of
  results.
- Optional **place-detail** fetch adds hours, rating histogram, photos, amenities, plus code,
  and closed status per place (on by default).
- Skip closed places with one toggle. Configure language, country code, request pacing, and
  proxy/exit-IP preferences from the input form.

### Inputs

| Input | Default | Description |
|-------|---------|-------------|
| Search terms | `coffee` | One or more business search terms. |
| Location | `Kuala Lumpur` | Area appended to every term (e.g. `Austin, TX`). |
| Max places per search | `10` | Cap per term; leave empty to grab all results. |
| Fetch place details | on | Include the full per-place detail record. |
| Skip closed places | off | Drop permanently/temporarily closed places. |
| Language | `en` | Google interface language (`hl=`). |
| Country code | `us` | Google results geo (`gl=`). |
| Proxy configuration | Apify proxy | Optional managed proxy for exit-IP rotation. |
| Delay | `0.35`s | Seconds between requests (raise if you get rate-limited). |

### Notes

- **Reviews are not collected.** Google serves logged-out sessions a limited view; the
  per-review feed requires a signed-in session. This actor deliberately stays on the
  anonymous, key-free surface and returns the aggregate rating + star distribution instead.
- Individual place URLs are not an input here — this surface searches by keyword. For bulk
  crawl by specific place, use Google's own listing URLs in a place-crawler actor.

# Actor input Schema

## `searchStringsArray` (type: `array`):

One or more business search terms, e.g. "coffee", "plumber", "dentist".

## `locationQuery` (type: `string`):

Location to search around, appended to every term (e.g. "Kuala Lumpur", "Austin, TX"). Leave empty to let Google infer the region from the term.

## `maxCrawledPlacesPerSearch` (type: `integer`):

Stop after this many places per search term. Leave empty to walk until Google runs out (~170 for a city-level search).

## `scrapePlaceDetailPage` (type: `boolean`):

Fetch the full per-place detail record: opening hours, rating histogram, photos, amenities, plus code, closed status. When off, only the cheaper search-payload fields are returned.

## `skipClosedPlaces` (type: `boolean`):

Drop places that are permanently or temporarily closed.

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

Google interface language code (hl=), e.g. "en", "ms", "zh-CN".

## `countryCode` (type: `string`):

Country/geo code for the Google results (gl=), e.g. "us", "my", "sg".

## `proxyConfiguration` (type: `object`):

Proxy settings. Google Maps' anonymous endpoints gate on TLS/HTTP fingerprint, not cookies, so a proxy is optional but available for exit-IP rotation.

## `disableUsageStats` (type: `boolean`):

Disable collection of anonymous usage statistics.

## `delay` (type: `number`):

Seconds to wait between requests. Lower values scrape faster but risk rate limits; raise if you get blocked.

## Actor input object example

```json
{
  "searchStringsArray": [
    "coffee"
  ],
  "locationQuery": "Kuala Lumpur",
  "maxCrawledPlacesPerSearch": 10,
  "scrapePlaceDetailPage": true,
  "skipClosedPlaces": false,
  "language": "en",
  "countryCode": "us",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "disableUsageStats": false,
  "delay": 0.35
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped places, one item per row: title, categoryName, categories, placeId, fid, cid, kgmid, url, address, street, city, state, postalCode, neighborhood, countryCode, location, plusCode, timezone, website, phone, phoneUnformatted, totalScore, reviewsCount, reviewsDistribution, openingHours, imageUrl, images, imagesCount, additionalInfo, claimThisBusiness, permanentlyClosed, rank, searchString, searchPageUrl, scrapedAt.

# 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("data_dino/google-maps-business-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("data_dino/google-maps-business-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 data_dino/google-maps-business-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data_dino/google-maps-business-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/Ok8kfTTnHcBlhsIUI/builds/WLdPfeggE9MeNU5oQ/openapi.json
