# Google Maps Scraper 📍 — Places, Reviews & Business Data (`ayeeyee/crawler-google-places`) Actor

Fast Google Maps scraper: name, phone, website, address, category, rating, review count, opening hours, geocoding, opt-in reviews. Hard global cost cap; empty-query-safe; embeddings/LLM-ready JSON. Built for lead gen, local SEO, RAG pipelines and market research.

- **URL**: https://apify.com/ayeeyee/crawler-google-places.md
- **Developed by:** [Virtual Footprint LLC](https://apify.com/ayeeyee) (community)
- **Categories:** Lead generation, Automation, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 place scrapeds

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 — Places, Reviews & Business Data

Fast, **cost-capped** Google Maps (Google Places) scraper. Extract local business
data for lead generation, SEO local-ranking research, competitive analysis, travel
portals and AI/LLM pipelines — with a **hard global cap** so your spend never runs away.

> **Why this actor:** similar high-traffic scrapers ship "limits" that apply per
> hashtag/query and surprise you with the bill. This actor applies `maxCrawledPlaces`
> **globally across the whole run** — it is the maximum number of places you can be
> charged for. Empty or blocked queries return an **empty dataset, not a failure**,
> so your runs and webhooks stay clean.

### ✨ What it extracts

| Field | Example |
| --- | --- |
| `title` | `Di Fara Pizza` |
| `address` | `1424 Ave J, Brooklyn, NY 11230` |
| `phone` | `+1 718-258-1367` |
| `website` | `https://difara.com` |
| `category` | `Pizza restaurant` |
| `rating` | `4.7` |
| `reviewsCount` | `1843` |
| `openingHours` | `["Monday 12:00–22:00", ...]` |
| `latitude`, `longitude` | `40.6183`, `-73.9637` |
| `placeId` | `0x89c25e9a1b2c3d4f` |
| `search` | the query that found it |

Plus **opt-in reviews** (author, star rating, full text) — perfect input for
sentiment analysis, LLM fine-tuning and **semantic-search embeddings** (pass review
texts to any embedding model; see the pipeline below).

### 🚀 Example input

```json
{
  "searchStringsArray": ["pizza restaurants in Brooklyn NY", "dentists in Austin TX"],
  "maxCrawledPlaces": 100,
  "includeReviews": true,
  "maxReviews": 10,
  "language": "en",
  "country": "United States",
  "geoCoordinates": { "lat": 40.71, "lng": -74.01 }
}
```

#### Example output

```json
{
  "title": "Di Fara Pizza",
  "address": "1424 Ave J, Brooklyn, NY 11230",
  "phone": "+1 718-258-1367",
  "website": "https://difara.com",
  "category": "Pizza restaurant",
  "rating": 4.7,
  "reviewsCount": 1843,
  "latitude": 40.6183,
  "longitude": -73.9637,
  "placeId": "0x89c25e9a1b2c3d4f",
  "openingHours": ["Monday 12:00–22:00", "Tuesday 12:00–22:00"],
  "search": "pizza restaurants in Brooklyn NY"
}
```

### 🧠 LLM / RAG / embeddings pipeline

1. Run this actor with `includeReviews: true`.
2. Take `reviews[].text` — chunk at ~400 tokens with the author/rating as metadata.
3. Embed with your model of choice (`text-embedding-3-small`, `bge`, `e5`) and index in a vector store (`pgvector`, `Qdrant`, `Pinecone`).
4. Query: *"Which Brooklyn pizzerias get praised for delivery speed?"* — grounded in scraped text.

### 💰 Cost governance (built in)

- `maxCrawledPlaces` is enforced **globally** — one number, the worst-case charge ceiling for the run.
- Queries that return nothing cost nothing and produce an empty, non-failing result.
- Charge stops when the cap hits, even mid-scroll — the run exits cleanly.
- Reviews are fetched up to **20 per place** (default) — the reviews add-on is a flat per-place charge, so review volume can't inflate your bill.

### 🔧 Common recipes

- **Lead lists:** `"plumbers in Phoenix AZ"` + `country` → export CSV, phone/website filled.
- **Local SEO:** compare `rating` + `reviewsCount` for `"electricians"` across cities.
- **RAG research:** reviews → embeddings → semantic search over local-sentiment.

### 💰 Pricing (pay-per-event)

You pay only for what comes back:

| Event | Price | Notes |
| --- | --- | --- |
| **Place scraped** | **$1.50 per 1,000 places** ($0.0015/place) | Charged per place successfully returned in the dataset. |
| **Reviews add-on** | **$2.00 per 1,000 places** ($0.002/place) | Charged **once per place** with reviews (flat, not per review). |
| **Actor start** | $0.00005 per run | One-time per run. |

- A run that fetches **reviews** costs **$3.50 per 1,000 places** total ($0.0015 + $0.002).
- Reviews are capped at **20 per place by default** (`maxReviews`) — you're charged the flat add-on regardless of how many reviews a place has, so a 2,000-review landmark costs the same as a café with 5 reviews.
- Empty or blocked queries return an empty dataset and cost **nothing** beyond the start fee.
- `maxCrawledPlaces` bounds your worst-case spend: 100 places + reviews ≈ $0.35 per run.

### ⚠️ Fair use

This actor scrapes publicly displayed Google Maps results. Respect Google's Terms
of Service and applicable law; do not resell Google content as a data feed.

### 🔗 Related Actors

- [Google Maps Email Extractor Pro](https://apify.com/ayeeyee/google-maps-email-extractor-pro) — enrich these places with verified emails, phones and tech stack from their websites.
- [Website Contact & Company Extractor](https://apify.com/ayeeyee/website-contact-company-extractor) — already have a domain list? Skip the Maps search step.

# Actor input Schema

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

Google Maps search queries, e.g. "pizza restaurants in Brooklyn" or "dentists". Results are capped globally — see maxCrawledPlaces.

## `maxCrawledPlaces` (type: `integer`):

HARD CAP applied across the entire run, not per query. This is the maximum number of places you can be charged for.

## `maxReviews` (type: `integer`):

When includeReviews is true, fetch up to this many reviews per place. The review add-on is charged once per place with reviews (flat), so this cap bounds your cost.

## `includeReviews` (type: `boolean`):

Fetch public reviews for each place (capped by maxReviews).

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

Results language code, e.g. "en" or "es".

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

Appended to every query to localise results, e.g. "United States".

## `geoCoordinates` (type: `object`):

Optional viewport bias, e.g. {"lat": 40.71, "lng": -74.01}.

## Actor input object example

```json
{
  "searchStringsArray": [
    "pizza restaurants in Brooklyn NY"
  ],
  "maxCrawledPlaces": 100,
  "maxReviews": 20,
  "includeReviews": false,
  "language": "en"
}
```

# Actor output Schema

## `title` (type: `string`):

No description

## `rating` (type: `string`):

No description

## `reviewsCount` (type: `string`):

No description

## `phone` (type: `string`):

No description

## `website` (type: `string`):

No description

## `address` (type: `string`):

No description

## `category` (type: `string`):

No description

## `placeId` (type: `string`):

No description

## `lat` (type: `string`):

No description

## `lng` (type: `string`):

No description

## `reviews` (type: `string`):

No description

# 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 = {
    "searchStringsArray": [
        "pizza restaurants in Brooklyn NY"
    ],
    "maxCrawledPlaces": 100,
    "maxReviews": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("ayeeyee/crawler-google-places").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 = {
    "searchStringsArray": ["pizza restaurants in Brooklyn NY"],
    "maxCrawledPlaces": 100,
    "maxReviews": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("ayeeyee/crawler-google-places").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 '{
  "searchStringsArray": [
    "pizza restaurants in Brooklyn NY"
  ],
  "maxCrawledPlaces": 100,
  "maxReviews": 20
}' |
apify call ayeeyee/crawler-google-places --silent --output-dataset

```

## MCP server setup

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

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/qPVmcMJLZKAlrZXmb/builds/TLwF7uLQKvlFjkPOj/openapi.json
