# Google Maps Scraper - Place Details, Hours, Phone & Website (`crawlyard/google-maps-place-details`) Actor

Google Maps place details scraper: name, rating, review count, category, address, phone, website and opening hours for every place a search returns. Optional change detection reports which fields moved since the previous run.

- **URL**: https://apify.com/crawlyard/google-maps-place-details.md
- **Developed by:** [Crawlyard Data](https://apify.com/crawlyard) (community)
- **Categories:** Business, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 places

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 Place Details

Reads publicly visible business listings from Google Maps and returns one clean
row per place: **name, rating, review count, category, address, phone, website
and opening hours**.

Give it a business name and you get that one place. Give it a phrase like
`dentist in Austin TX` and you get every place the search returns.

### What one row looks like

```json
{
  "name": "Storyville Coffee Pike Place",
  "rating": 4.6,
  "reviewCount": 3169,
  "category": "Coffee shop",
  "address": "94 Pike St Top floor Suite 34, Seattle, WA 98101, United States",
  "phone": "+1 206-780-5777",
  "website": "https://storyville.com/pages/pike-place-market",
  "openingHours": [
    { "day": "Friday", "hours": "6:59 AM–6 PM" },
    { "day": "Saturday", "hours": "6:59 AM–6 PM" }
  ],
  "plusCode": "JM55+HR Seattle, Washington, USA",
  "permanentlyClosed": false,
  "temporarilyClosed": false,
  "searchQuery": "Storyville Coffee Pike Place",
  "url": "https://www.google.com/maps/place/..."
}
```

### Tell me what changed

Turn on **Report what changed since the last run** and every row gains a
`changes` field:

```json
"changes": {
  "rating": { "from": 4.6, "to": 4.7 },
  "reviewCount": { "from": 3169, "to": 3180 }
}
```

The snapshot lives in a named key-value store, so a scheduled run answers
"which of my locations moved this week" instead of handing you the same list
again. Switch on **Output only changed or new places** and quiet places are
skipped entirely.

Tracked fields: rating, review count, category, address, phone, website,
opening hours, permanently closed, temporarily closed. Photos and popular-times
histograms are deliberately not tracked — they move constantly and would mark
every place as changed on every run.

### Input

| Field | Meaning |
| --- | --- |
| `queries` | Business names, "what in where" phrases, or Google Maps URLs |
| `maxPlacesPerQuery` | Cap per search, 1–120 (default 20) |
| `detailLevel` | `full` opens each place for phone/website/hours; `list` stays on the result list and is much faster |
| `language`, `countryCode` | Interface language and country bias |
| `detectChanges`, `onlyChanged`, `stateStoreName` | Change detection |
| `settleMs` | How long to let each page render before reading it |

### Notes on how it works

- Only publicly visible listing data is read. No login, no private data, no
  Google account required.
- `https://www.google.com/maps/search/<query>` returns a document whose result
  list arrives over a later request, so the page is rendered rather than parsed
  from the first response. That is why this runs a browser.
- Searching by name resolves straight to the place panel. The `/maps/place/...`
  form is not used because it can land on a disambiguation shell with no data.
- `detailLevel: "list"` costs a fraction of `full`; use it when names and
  ratings are enough.

### Limits

- Opening-hours weekday labels come back in the language you request.
- Places without a website, phone or hours return `null` for those fields
  rather than guessing.
- Very large result sets are capped by Google's own result list, not by this
  Actor; `maxPlacesPerQuery` above roughly 120 rarely returns more rows.

# Actor input Schema

## `queries` (type: `array`):

A business name, a 'what in where' phrase, or a Google Maps URL. A phrase returns every place in the result list; a single business name resolves straight to that place.

## `maxPlacesPerQuery` (type: `integer`):

Upper bound on results taken from each search. Single-place lookups ignore this.

## `detailLevel` (type: `string`):

'full' opens every place for phone, website and opening hours. 'list' stays on the result list and is much faster when you only need names and ratings.

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

Google interface language (ISO code). Field names such as weekday labels come back in this language.

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

Two-letter country code used to bias results, e.g. us, gb, de, kr.

## `detectChanges` (type: `boolean`):

Stores a snapshot in a named key-value store and adds a 'changes' field describing which tracked values moved. Useful on a schedule.

## `onlyChanged` (type: `boolean`):

With change detection on, skip places whose tracked fields are identical to the previous run.

## `stateStoreName` (type: `string`):

Named key-value store holding the previous snapshot. Use a different name per watch list.

## `settleMs` (type: `integer`):

How long to let a page finish rendering before reading it. The Actor re-reads up to three times when the rating block or the weekday table has not filled in yet, so this is a starting point rather than a hard wait.

## Actor input object example

```json
{
  "queries": [
    "dentist in Austin TX",
    "Storyville Coffee Pike Place",
    "https://www.google.com/maps/search/pharmacy+in+Lisbon"
  ],
  "maxPlacesPerQuery": 20,
  "detailLevel": "full",
  "language": "en",
  "countryCode": "us",
  "detectChanges": false,
  "onlyChanged": false,
  "stateStoreName": "google-maps-places-state",
  "settleMs": 3200
}
```

# Actor output Schema

## `places` (type: `string`):

Every scraped place with its fields as JSON.

## `placesCsv` (type: `string`):

Same dataset exported as CSV, one row per place.

# 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 = {
    "queries": [
        "coffee shop in Seattle"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlyard/google-maps-place-details").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 = { "queries": ["coffee shop in Seattle"] }

# Run the Actor and wait for it to finish
run = client.actor("crawlyard/google-maps-place-details").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 '{
  "queries": [
    "coffee shop in Seattle"
  ]
}' |
apify call crawlyard/google-maps-place-details --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlyard/google-maps-place-details"
        }
    }
}

```

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/0nELJqsjRUZTdjSPd/builds/Ulx9shQmjyIbAfFA4/openapi.json
