# Google Maps Scraper API: Places, Phones, Websites & Ratings (`clair-api/google-maps-scraper-api`) Actor

Local businesses from Google Maps as JSON: name, phone, website, address, coordinates, rating, reviews count, and hours. Search by query or read one place by id.

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

## Pricing

from $8.00 / 1,000 place details

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 Scraper API: Places, Phones, Websites & Ratings

Local businesses from Google Maps as JSON: name, phone, website, address, coordinates, rating, reviews count, and hours. Search by query or read one place by id.

Built on [Google Maps API](https://clair.im/apis/google-maps?utm_source=apify\&utm_medium=store\&utm_campaign=google-maps-scraper-api), a production
API that answers from live pages. Each input is one API call; calls run in
parallel, and every row lands in the dataset as soon as it is read.

### What it returns

#### Searches

One scrolled Maps results list per request, usually 20 to 70 places, repeats removed. Put the area in q, or pass latitude and longitude to search around a point. Trade searches (plumbers, HVAC) show phone and website on each card. Storefront searches (cafés, restaurants, shops, dentists) show a photo instead, with no phone, website, or usually price, so call GET /v1/google-maps/place for those.

Input `searches`: what and where, as typed into Maps: coffee in Austin TX. Typical time: 9-15 s per call.

Sample row:

```json
{
  "input": "plumbers in Denver",
  "endpoint": "google-maps",
  "position": 1,
  "title": "Applewood Plumbing Heating & Electric",
  "place_id": "ChIJkWUJx22Ha4cRVVLq4AJk7Ng",
  "data_id": "0x876b876dc7096591:0xd8ec6402e0ea5255",
  "cid": "15630978370222314069",
  "latitude": 39.7583004,
  "longitude": -105.0512657,
  "rating": 4.8,
  "reviews_count": 17793,
  "category": "Plumber",
  "price": null,
  "address": "5000 W 29th Ave",
  "open_state": "Open · Closes 10 PM",
  "phone": "(303) 444-1633",
  "website": "https://www.applewoodfixit.com/",
  "description": null,
  "wheelchair_accessible": null,
  "action_links": [
    {
      "label": "Book online",
      "url": "https://book.servicetitan.com/lhxa271djh03w5bfje81s0qd"
    }
  ],
  "thumbnail": null,
  "sponsored": false,
  "url": "https://www.google.com/maps/place/?q=place_id:ChIJkWUJx22Ha4cRVVLq4AJk7Ng"
}
```

#### Place ids

place_id comes from a search result or any Google Places source. place.view is full or limited: the limited view has no review count, histogram, topics, or reviews, and usually only today's hours. reviews are the few Google shows first, with their full text.

Input `placeIds`: a Google place id, such as ChIJszGcvzV0bIcR3_6j5Gru8sM. Typical time: 13-17 s per call.

Sample row:

```json
{
  "input": "ChIJszGcvzV0bIcR3_6j5Gru8sM",
  "endpoint": "google-maps-place",
  "view": "full",
  "title": "Brothers Plumbing, Heating & Electric",
  "place_id": "ChIJszGcvzV0bIcR3_6j5Gru8sM",
  "data_id": "0x876c7435bf9c31b3:0xc3f2ee6ae4a3fedf",
  "cid": "14119609924629823199",
  "latitude": 39.8096461,
  "longitude": -104.9881312,
  "rating": 4.7,
  "reviews_count": 9173,
  "rating_distribution": [
    {
      "stars": 5,
      "reviews_count": 8300,
      "percent": 90.5
    },
    {
      "stars": 4,
      "reviews_count": 295,
      "percent": 3.2
    },
    "… 3 more"
  ],
  "category": "HVAC contractor",
  "price": null,
  "address": "6201 Broadway, Denver, CO 80216",
  "located_in": null,
  "plus_code": "R256+VP Denver, Colorado",
  "phone": "(720) 994-7132",
  "phone_e164": "+17209947132",
  "website": "http://www.brothersplumbing.com/",
  "hours": [
    {
      "day": "Friday",
      "hours": "7 AM to 8 PM"
    },
    {
      "day": "Saturday",
      "hours": "7 AM to 8 PM"
    },
    "… 5 more"
  ],
  "attributes": [
    "LGBTQ+ friendly",
    "Identifies as women-owned"
  ],
  "wheelchair_accessible": true,
  "review_topics": [
    {
      "topic": "furnace repair",
      "mentions": 315
    },
    {
      "topic": "knowledgeable staff",
      "mentions": 2454
    },
    "… 1 more"
  ],
  "reviews": [
    {
      "review_id": "Ci9DQUlRQUNvZENodHljRjlvT2tKa1VWTXhWM0JpYVdGemF5MDJiV2g2WkZscVEzYxAB",
      "author": "Ernest Mestas",
      "author_url": "https://www.google.com/maps/contrib/113696642932574855920/reviews",
      "local_guide": true,
      "author_reviews_count": 28,
      "rating": 5,
      "date_text": "a month ago",
      "text": "Raul Ramirez was our professional (pumber) today. Brothers has always been great. I was so pleased to meet Raul. He w...",
      "owner_response": {
        "text": "Thank you, Ernie! We truly appreciate your kind words and are thrilled to hear about your positive experience with Ra...",
        "date_text": "a month ago"
      }
    }
  ],
  "thumbnail": "https://lh3.googleusercontent.com/grass-cs/ACvplmP4rMKpZ27CTALp4i2OHDrIHHwp7te_IumqkbmPGEKFvtrtHUj_fbh5hhd2v2a3Wg9Pzt...",
  "url": "https://www.google.com/maps/place/?q=place_id:ChIJszGcvzV0bIcR3_6j5Gru8sM"
}
```

### Pricing

Pay per row, nothing for a run's time. You are charged only for rows with
data:

- **Place from a search**: One business from a Google Maps search.
- **Place details**: One place by its Google place id, with every detail Maps shows.

An input that does not exist (a deleted post, an unknown username) or that
fails after three tries comes back as a free row with `error` and
`message` set. Set a spending limit on the run and it stops there.

### Use it from code

Every input field is in the API tab. Prefer plain HTTP? The same data is
the [Google Maps API](https://clair.im/apis/google-maps?utm_source=apify\&utm_medium=readme\&utm_campaign=google-maps-scraper-api), with a free monthly
allowance.

### Notes

- Unofficial: not affiliated with or endorsed by Google Maps. It reads what
  the site shows a signed-out visitor, and nothing behind a login.
- Rows are JSON objects; export them as JSON, CSV, Excel, or through the API.

# Actor input Schema

## `searches` (type: `array`):

One per line: what and where, as typed into Maps: coffee in Austin TX. Each is one call to Search (/v1/google-maps/search). Places for a Maps query, such as plumbers in Denver.

## `placeIds` (type: `array`):

One per line: a Google place id, such as ChIJszGcvzV0bIcR3_6j5Gru8sM. Each is one call to Place (/v1/google-maps/place). One business: address, phone, website, hours, rating histogram, and top reviews.

## `country` (type: `string`):

ISO 3166-1 alpha-2 country the search is made from. Default us. Results are in English.

## `latitude` (type: `string`):

Center the map here. Send with longitude. Applies to Searches.

## `longitude` (type: `string`):

Center the map here. Send with latitude. Applies to Searches.

## `zoom` (type: `integer`):

Map zoom 3 to 21 when latitude is set. Default 14. Applies to Searches.

## `maxConcurrency` (type: `integer`):

Inputs called at once, 1 to 10.

## Actor input object example

```json
{
  "searches": [
    "plumbers in Denver"
  ],
  "maxConcurrency": 5
}
```

# Actor output Schema

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

One row per place from a search, or place details. An input without data gets a free row with error set.

# 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 = {
    "searches": [
        "plumbers in Denver"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("clair-api/google-maps-scraper-api").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 = { "searches": ["plumbers in Denver"] }

# Run the Actor and wait for it to finish
run = client.actor("clair-api/google-maps-scraper-api").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 '{
  "searches": [
    "plumbers in Denver"
  ]
}' |
apify call clair-api/google-maps-scraper-api --silent --output-dataset

```

## MCP server setup

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

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/JbpJQzbw9raRXUuGx/builds/NJJzJO5ee28gJMx9f/openapi.json
