# Turbo Google Map Scraper (`solutionssmart/turbo-google-map-scraper`) Actor

HTTP-first Google Maps scraper for search listings, place details, reviews, lead scoring, and email and social-link extraction from business websites.

- **URL**: https://apify.com/solutionssmart/turbo-google-map-scraper.md
- **Developed by:** [Solutions Smart](https://apify.com/solutionssmart) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 places listed

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/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

<p align="center">
  <img src="https://api.apify.com/v2/key-value-stores/FS8Wont9k0neLpZsp/records/readme-dark.png" alt="Turbo — Google Map Scraper" width="720">
</p>

### What does Turbo Google Map Scraper do?

Search "restaurant in Berlin" on Google Maps and you get about 200 places. Berlin has thousands.

**Turbo Google Map Scraper** is a **Google Maps scraper** and lead-generation **API** for [Google Maps](https://www.google.com/maps). It splits the search area into **2 km tiles** and searches every tile until it reaches your number, so a city-wide query returns thousands of places instead of the ~200 a single search gives you.

Every result comes with the business's **phone, website and the best email** found on that business's own website, plus a **lead score** with reasons such as "Has phone", "Has website", "High rating".

What the Actor does:

- `list` mode searches Google Maps and saves lightweight listing rows only. This is the cheapest mode.
- `place` mode scrapes one known Google Maps `placeId`.
- `search` mode searches, fetches full place details, and optionally fetches reviews.
- `outputMode` controls whether the Dataset contains all records, only places and reviews, or places only.
- Finds **emails and social links** by visiting each business website (on by default). Google Maps does not publish emails, so this is the only source. Records get top-level `email` (best address, own domain first), `emails`, and `socialLinks` fields.
- Adds **lead scoring** for every full place record.
- Pushes every result to the Apify Dataset as it is found, deduplicated by Google place ID, and saves a run summary to the `OUTPUT` key-value record.
- Supports Apify Proxy and a manual proxy URL fallback, and pay-per-event monetization with charged Dataset writes for `place-listed`, `place-detail`, and `review`.
- Runs as a normal Actor **and** as a [Server Actor](https://docs.apify.com/actors/running/server-actors) that answers HTTP requests directly.

What it does not do: it is **HTTP-first** (no JavaScript rendering), it reads only public business information, and Google's newest-first review feed is not available to it — reviews and `lastReviewDate` reflect what Google shows on the place's own pages.

### Why use Turbo Google Map Scraper?

- 🏪 **Lead generation.** Build prospect lists of restaurants, dentists, gyms or tradespeople with phone, website, email and a scored ranking, ready for outreach.
- 🌐 **Market sizing.** Count every business in a category across a city or region with `list` mode at $0.10 per 1,000 results.
- ⭐ **Reputation management.** Find weakly rated businesses that have enough reviews to matter (`maxRating` + `minReviewCount`).
- 📧 **Enrichment.** Fill missing emails and social profiles in your CRM — Google Maps does not publish them, so the Actor visits each business website to collect them.
- 📉 **Spot closures.** `permanentlyClosed` and `lastReviewDate` tell you which businesses are still trading.

Running it on the **Apify platform** gives you, on top of the scraper itself:

- **Scheduling** — run it nightly, weekly or on a cron trigger.
- **API access** — start runs, read datasets and monitor status over HTTP.
- **Integrations** — push results to Google Sheets, Slack, Zapier, webhooks or your own storage.
- **Proxy rotation** — Apify Proxy with per-worker sticky sessions and automatic rotation when Google blocks a session.
- **Monitoring** — run logs, live preview of the dataset, and a per-run `OUTPUT` summary of what was found, skipped and charged.

### What data can Turbo Google Map Scraper extract?

Each record carries `recordType` (`listing`, `place` or `review`); the main fields on a full `place` record are:

| Field | Type | Description |
|---|---|---|
| `placeId` | string | Google place ID, stable across runs — use it to deduplicate |
| `name`, `address` | string | Business name and full address |
| `coordinates` | object | `lat` and `lng` |
| `rating`, `reviewCount` | number | Star rating and review count from Google |
| `categories` | array | Google's categories, e.g. `["Italian restaurant", "Pizza restaurant"]` |
| `website`, `hasWebsite` | string, bool | Business website and a ready-made flag |
| `phone` | string | Phone number from the place details |
| `email`, `emails` | string, array | Best email first, own-domain addresses ranked above free-mail ones |
| `socialLinks` | array | Facebook / Instagram / TikTok links found on the business site |
| `leadScore` | object | `score` (0-100), `tier` (`hot` / `warm` / `cold`) and human-readable `reasons` |
| `lastReviewDate` | string or null | Newest date on the place's review card — needs `includeLastReviewDate` |
| `permanentlyClosed` | bool | Whether Google marks the place as permanently closed |
| `openingHours`, `photos`, `description`, `about`, `menu`, `bookingLinks` | mixed | Detail fields from the place card |
| `websiteEnrichment` | object | What the website visit returned: pages fetched, title, description, email, social links |
| `scrapedAt` | string | ISO timestamp of the record |

`listing` rows carry the subset that Google returns in search results (`name`, `address`, `coordinates`, `rating`, `reviewCount`, `categories`, `website`, `hasWebsite`, `permanentlyClosed`). `review` rows carry the reviewer name, rating, text, date, language, photos and owner reply.

#### Lead scoring

Every full place record includes:

```json
{
  "leadScore": {
    "score": 80,
    "tier": "hot",
    "reasons": ["Has phone", "Has website", "High rating"]
  }
}
```

Signals include phone, website presence or absence, rating, review volume, opening hours, photos, booking links, and commercial local categories.

### How to scrape Google Maps

1. **Open the Input tab** and choose a `mode`: `list` for cheap listing rows, `search` for full lead records, or `place` for a single known `placeId`.
2. **Describe what you are looking for.** Set `query` (for example `dentists`) and `searchLocation` (for example `Austin, United States`), or several `searchTerms` at once.
3. **Set how much you want.** `maxPlaces` caps results per search term (up to 10,000); `outputMode` decides whether you get listings, places only, or everything; `maxReviews` pulls review rows per place.
4. **Optionally filter and enrich.** `leadFilters` drops unsuitable places before they are charged, and `enrichWebsites` (on by default) visits each business website to collect emails and social links.
5. **Pick your proxy** under `proxyConfiguration` (Apify Proxy with optional groups and country) and press **Start**. Results stream into the Dataset as they are found, so you can watch the run fill up.
6. **Download or connect.** When the run finishes, download the Dataset in formats such as **JSON, HTML, CSV, or Excel**, read it through the [Dataset API](https://docs.apify.com/api/v2/dataset), or schedule the Actor to refresh it on a cron.

For a single lookup without starting a run, use the [Server API](#server-api) instead.

### How much will it cost to scrape Google Maps?

You pay per result, and only for records saved to your dataset. Platform usage is free — you don't pay for compute.

| Event | Price per event | Per 1,000 |
|---|---|---|
| Place listed (search result row) | $0.0001 | **$0.10** |
| Place details (full record with phone, website, email, social links, rating, review count, lead score) | $0.0002 | **$0.20** |
| Review | $0.00012 | **$0.12** |
| Actor start | $0.00005 | **$0.05 per 1,000 starts** |

**How billing works:**

- `list` mode charges only **place-listed** per result: $0.10 per 1,000 listings.
- `search` or `place` mode with `outputMode: "placesOnly"` or `"placesAndReviews"` charges only **place-detail** per full place record: $0.20 per 1,000.
- `allRecords` mode charges **place-detail** for each full record saved, and **place-listed** only if place-detail fails: $0.20 per 1,000 for successful places.
- Reviews are charged separately when scraped: $0.12 per 1,000.
- Every run pays one **actor-start** charge of $0.00005.

Email extraction, last review date and lead scoring are included in the place-detail price. Duplicate places, permanently closed places and places removed by your lead filters are dropped before they are saved, so they cost nothing.

**Examples:**

- 1,000 Berlin restaurant records, with phone, website and email wherever the business has them (`search` mode, `placesOnly`): **$0.20**
- 1,000 listings to size a market (`list` mode): **$0.10**
- 1,000 places in `allRecords` mode (listing + detail saved): **$0.20** (place-detail only; listing is free bonus data)
- 1,000 places with 10 reviews each (`placesOnly`, `maxReviews: 10`): **$0.20 + $1.20 = $1.40** (places + reviews)
- 3 search terms (`cafe`, `bakery`, `coffee shop`) x 500 places in `placesOnly`: 1,500 different places, **$0.30**. A place that matches two terms is saved and charged once; the second term keeps searching until it has 500 new places.

#### No paying twice for the same place

Every place is deduplicated by its Google place ID across the whole run: the text search, every grid tile (neighbouring tiles overlap and return the same places), and every search term. A place found again is dropped before it is saved, so it is never charged twice. `OUTPUT.duplicatesSkipped` counts the drops from the text search.

Deduplication works within one run. To avoid paying for the same places across runs, put all your terms in one run's `searchTerms` instead of starting one run per term.

#### Cost notes

- Use `list` mode when you only need names, ratings, categories, addresses, coordinates, and place IDs. It avoids detail and review endpoints.
- Use `search` mode when you need complete lead records. Set `maxReviews` to `0` if reviews are not needed.
- Use `placesOnly` when you want a lead list without review rows. It skips review fetching even if `maxReviews` is greater than `0`.
- The default prefilled input is intentionally small: 5 places, `placesOnly`, and no reviews. This keeps Apify Store automated QA runs fast and gives new users a low-cost first test. Increase `maxPlaces`, switch output mode, and enable reviews for production runs.
- `maxReviews` is a per-place limit. For example, `maxPlaces: 20` and `maxReviews: 50` can produce up to 1,000 reviews. Use `maxTotalReviews` when you want a global cap.
- Website enrichment is on by default because it is the only way to get emails. Turn it off when you only need Maps data and want the fastest, cheapest run.
- Lead filters drop places before they are saved, and most of them before the detail request, so filtered places are counted in `OUTPUT.filteredPlaces` and skipped from Dataset output and review fetching:

```json
{
  "leadFilters": {
    "minRating": 4.2,
    "minReviewCount": 25,
    "maxReviewCount": 500,
    "mustHaveWebsite": true,
    "mustHavePhone": false,
    "categoryIncludes": "cafe"
  }
}
```

### Input

See the **input tab** for the full configuration options and their descriptions. The sections below explain the fields that need more than a one-line description.

#### Search

- `mode`: `list` ($0.10/1k), `place` ($0.20/1k), or `search` ($0.20/1k).
- `outputMode`: `placesOnly` ($0.20/1k), `placesAndReviews`, or `allRecords` ($0.20/1k for full records; listing is free).
- `query`: business/category query, e.g. `coffee shops`. Used when `searchTerms` is empty.
- `searchTerms`: several queries in one run, e.g. `["restaurant", "cafe", "bar"]`. Deduplicated across terms.
- `searchLocation`: free-form location, e.g. `Berlin, Germany`.
- `placeId`: required for `place` mode.
- `maxPlaces`: maximum places per search term (up to 10000).
- `gridSearch`: on by default. Splits the area into tiles when needed to find more than ~200 results.
- `gridCellKm`: tile width, default `2`.

#### Output & enrichment

- `enrichWebsites`: visit each place's website to extract emails and social links. On by default.
- `websiteEnrichmentDepth`: `contactPages` (default) or `homepageOnly`.
- `websiteTimeoutSeconds`: timeout for website enrichment, default `8`.
- `skipSocialWebsites`: skips enrichment of social profile URLs. On by default.
- `includeLastReviewDate`: adds `lastReviewDate` to place records. One extra Google request per place.

`websiteEnrichmentDepth: "contactPages"` (default) fetches the homepage and, if it has no email on the business's own domain, up to 4 same-site Impressum, contact, and about pages (falling back to `/impressum`, `/kontakt`, `/contact`). It stops as soon as an own-domain email is found, and each site gets a 25-second total budget. `homepageOnly` is faster but misses most emails, which usually sit on the contact or Impressum page. Extraction handles `mailto:` links, HTML-entity encoding, Cloudflare email protection, and `[at]`/`(dot)` obfuscation, and drops placeholder and tracking addresses such as `email@example.com` or Sentry IDs.

`websiteTimeoutSeconds` is independent from the main Google Maps request timeout. Keep it low, such as `6` to `8`, when you want predictable cost. `skipSocialWebsites` is enabled by default because social profile URLs rarely expose emails and often return 429 or slow responses through proxies.

#### Reviews

- `maxReviews`: reviews per place ($0.12/1k). Use `0` to skip reviews.
- `maxTotalReviews`: global review cap across the run. Use `0` for no global cap.

#### Filters

- `skipClosedPlaces`: on by default. Drops permanently closed places before they are charged.
- `leadFilters`: rating range, review count range, website present/missing, phone, last review date, and category filters. See [Finding businesses worth contacting](#finding-businesses-worth-contacting).

#### Location

- `geolocationParameters`: country, state/region, county, city, and postal code fields (used when `searchLocation` is empty).
- `customGeolocation`: geometry type, coordinates, radius, latitude, longitude, and coordinates JSON for anchoring the map area.
- `zoom`: Google Maps zoom level, default `13`.
- `language`: Google `hl` parameter, default `en`.
- `gl`: Google country parameter, default `de`.

#### Performance

- `maxConcurrency`: number of places to scrape in parallel in `search` mode. Default `3`, max `100`.

#### Advanced

- `proxyConfiguration`: Apify Proxy settings.
- `proxyUrl`: manual proxy URL fallback.
- `delaySeconds`: randomized delay between requests, default `0.5`.
- `timeoutSeconds`: HTTP request timeout, default `30`.
- `enableSqliteCheckpoint`: optional internal SQLite copy for deduplication/checkpointing.
- `sqlitePath`: SQLite checkpoint database path.
- `enableBillingEvents`: legacy testing flag. Production monetization is detected from Apify pay-per-event pricing.

#### Example input

```json
{
  "mode": "search",
  "outputMode": "placesAndReviews",
  "query": "dentists",
  "searchLocation": "Austin, United States",
  "customGeolocation": {
    "latitude": 30.2672,
    "longitude": -97.7431
  },
  "maxPlaces": 25,
  "maxReviews": 20,
  "maxTotalReviews": 200,
  "maxConcurrency": 3,
  "language": "en",
  "gl": "us",
  "delaySeconds": 1.5,
  "enrichWebsites": true,
  "websiteEnrichmentDepth": "contactPages",
  "websiteTimeoutSeconds": 8,
  "skipSocialWebsites": true,
  "leadFilters": {
    "minRating": 4.0,
    "mustHaveWebsite": true
  },
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

#### Location targeting

You can target by city and country:

```json
{
  "query": "coffee shops",
  "searchLocation": "Berlin, Germany",
  "gl": "de"
}
```

Or use structured geolocation fields:

```json
{
  "query": "coffee shops",
  "geoCountry": "Germany",
  "geolocationParameters": {
    "country": "Germany",
    "city": "Berlin",
    "postalCode": "10117"
  },
  "gl": "de"
}
```

You can also add custom latitude and longitude to anchor the map area:

```json
{
  "query": "coffee shops",
  "searchLocation": "Berlin, Germany",
  "customGeolocation": {
    "latitude": 52.520008,
    "longitude": 13.404954
  },
  "zoom": 13,
  "gl": "de"
}
```

For coordinate-heavy workflows, use `customCoordinates` as simple text:

```json
{
  "query": "coffee shops",
  "searchLocation": "Berlin, Germany",
  "customGeolocation": {
    "coordinates": "52.520008, 13.404954",
    "radiusKm": 5
  }
}
```

Or use `coordinatesJson` with a GeoJSON point:

```json
{
  "query": "coffee shops",
  "searchLocation": "Berlin, Germany",
  "customGeolocation": {
    "coordinatesJson": "{\"type\":\"Point\",\"coordinates\":[13.404954,52.520008]}"
  }
}
```

### Output

You can download the dataset in various formats such as **JSON, HTML, CSV, or Excel**, or read it through the [Dataset API](https://docs.apify.com/api/v2/dataset). Records are streamed to the Dataset as they are found:

- `recordType: "listing"` for search results.
- `recordType: "place"` for full place detail records with lead scoring.
- `recordType: "review"` for individual reviews.

Output modes:

- `allRecords`: saves listings, places, and reviews.
- `placesAndReviews`: saves full places and reviews, but skips listing rows.
- `placesOnly`: saves only full place records and skips review fetching.

The `OUTPUT` key-value store record contains:

- mode and query
- start and finish timestamps
- places listed
- places scraped
- reviews scraped
- duplicates skipped
- failed places
- website enrichments
- skipped website enrichments
- places with at least one email (`placesWithEmail`)
- places dropped by lead filters (`filteredPlaces`) and as permanently closed (`closedPlacesSkipped`)
- `status: "aborted"` when the run was aborted (the record is still written)

#### Example place record

A real `place` record from a `search` run, trimmed to the lead fields. Detail fields such as `about`, `photos`, and `opening_hours` are omitted. The email comes from the Actor's website enrichment for the same business.

```json
{
  "recordType": "place",
  "mode": "search",
  "query": "Friseur in Kreuzberg, Berlin, Germany",
  "placeId": "0x47a84fcea119ec91:0xb68e1a5da9b44570",
  "name": "Kiezschnitt Kreuzberg",
  "address": "Dieffenbachstraße 11, 10967 Berlin-Bezirk Friedrichshain-Kreuzberg",
  "rating": 4.8,
  "reviewCount": 192,
  "lastReviewDate": "2026-11-03",
  "phone": "030 66407692",
  "website": "http://www.kiezschnitt.com/",
  "hasWebsite": true,
  "permanentlyClosed": false,
  "email": "kiezschnitt@outlook.com",
  "emails": ["kiezschnitt@outlook.com"],
  "socialLinks": [],
  "leadScore": {
    "score": 83,
    "tier": "hot",
    "reasons": ["Has phone", "Has website", "High rating", "Moderate review volume", "Has opening hours", "Has photos"]
  },
  "scrapedAt": "2026-11-19T07:37:35.569077+00:00"
}
```

The full record also keeps the parser's `place_id` and `review_count` keys, the detail fields (`categories`, `description`, `about`, `menu`, `booking_links`, `photos`, `opening_hours`, and so on), and `websiteEnrichment`.

### Tips and advanced options

#### Getting more than ~200 results

One Google Maps text search stops at roughly 120-220 places, however large the city. Google also ignores the map position when the query names a place, so "restaurant in Berlin" always returns the same central results.

With `gridSearch` on, the Actor first runs the normal text search. If that returns fewer than `maxPlaces`, it searches the bare term (for example `restaurant`) tile by tile across the area and keeps only new places inside it:

- The area is the location's boundary from OpenStreetMap (city, district, postcode or state). With `customGeolocation.radiusKm` it is that circle's bounding box. With coordinates but no radius it is 5 km around the point.
- Tiles are searched nearest to the center first, so a small `maxPlaces` still gets the central places.
- Tiles are searched in parallel by `maxConcurrency` workers. With Apify Proxy each worker has its own proxy session and switches to a fresh one when Google keeps blocking it; failed tiles are retried once by another worker.
- A tile stops paging after two pages that add nothing new. The scan ends early after 40 tiles in a row find nothing new. Very large areas use bigger tiles automatically (about 400 tiles at most).
- With `customGeolocation` coordinates, the location text is not added to the search, so results stay around those coordinates.
- With pay-per-event pricing, a term never searches for more places than the remaining budget can pay for.
- The `OUTPUT` record lists, per term, how many places came from the text search and how many from the grid.

#### Finding businesses worth contacting

Agencies usually pick prospects by four things: does the business have a website, how many reviews it has, its rating, and whether it is still active. Every place record carries `hasWebsite`, `reviewCount`, `rating`, `permanentlyClosed` and, with `includeLastReviewDate`, `lastReviewDate`. Listing rows carry `hasWebsite`, `reviewCount`, `rating` and `permanentlyClosed`.

`leadFilters` turns these into filters. Rating, review count, website and category are checked on the search results, so a filtered place never costs a detail request or a charge. Phone and last review date need the place details and are checked after them.

| Goal | `leadFilters` |
|---|---|
| Sell websites: businesses with no website that are still getting reviews | `{"mustNotHaveWebsite": true, "lastReviewWithinDays": 180}` |
| Reputation management: weak ratings with enough reviews to matter | `{"maxRating": 3.8, "minReviewCount": 20}` |
| Small or new businesses | `{"maxReviewCount": 30}` |
| Established, well-rated businesses with a website | `{"minRating": 4.5, "minReviewCount": 100, "mustHaveWebsite": true}` |

**Last review date is empty (`null`) on every record unless you turn on `includeLastReviewDate` or set the `lastReviewWithinDays` filter.** Looking it up costs one extra Google request per place, so it is off by default.

`lastReviewDate` is the newest of the roughly 5 reviews Google shows on the place's card. Google ranks those by relevance, not date, so the real latest review can be newer. Treat a recent date as proof the business is active, and an old one as a hint. Google's newest-first review feed is not available to this Actor.

Permanently closed places are skipped by default (`skipClosedPlaces`). Turn it off to keep them; they are then marked `"permanentlyClosed": true`.

#### Performance and memory

**Concurrency**: The `maxConcurrency` input (default 3, max 100) controls how many places are scraped in parallel during search mode. Higher concurrency is faster but requires more memory.

**Memory allocation**: Default is 1024 MB. This is suitable for most workloads up to concurrency 10-20. A real 1,000-place Berlin restaurants run (allRecords, website enrichment with contactPages, grid 2 km) used max ~329 MB RSS at 4096 MB allocated, so 1024 MB is safe for typical use.

If you see out-of-memory errors with high concurrency, reduce `maxConcurrency`.

#### Server API

The Actor also runs as a [Server Actor](https://docs.apify.com/actors/running/server-actors): send an HTTP request and get places back in the response, with no run to start or dataset to read. Use it for quick lookups from your app, an AI agent, or a workflow tool. For big jobs (more than 50 places, whole-city grid searches) use the normal input.

Copy the server URL from the Actor's **Server** tab in Apify Console and send your Apify token as `Authorization: Bearer <token>`.

| Endpoint | Returns | Typical time |
|---|---|---|
| `GET /place?placeId=0x47a84fcea119ec91:0xb68e1a5da9b44570` | One place | 2-5 s |
| `GET /search?q=Friseur&location=Kreuzberg, Berlin, Germany&max=10` | Up to `max` places (1-50, default 20) | 5-60 s |

```bash
curl -H "Authorization: Bearer $APIFY_TOKEN"   "https://<server-url>/search?q=Friseur&location=Kreuzberg,%20Berlin&max=10&mustNotHaveWebsite=true"
```

The response is `{"count": 10, "items": [...], "filteredPlaces": 46, "closedPlacesSkipped": 0, ...}`. Each item is the same record as a dataset place record, including `email`, `hasWebsite`, `lastReviewDate`, `permanentlyClosed` and `leadScore`.

- Every lead filter is a query parameter: `minRating`, `maxRating`, `minReviewCount`, `maxReviewCount`, `mustHaveWebsite`, `mustNotHaveWebsite`, `mustHavePhone`, `lastReviewWithinDays`, `categoryIncludes`. `/search` keeps paging until `max` places pass the filters.
- Other parameters: `location` or `lat` and `lng`, `enrichWebsites` (default `true`), `websiteEnrichmentDepth`, `includeLastReviewDate`, `skipClosedPlaces` (default `true`), `language`, `gl`.
- `POST` with a JSON body takes the same parameters.
- Each returned place costs one **place-detail** event ($0.20 per 1,000). Filtered, closed and failed places are free. A search answers within 4 minutes with the places finished by then.
- The full schema is in `.actor/openapi.json`.

#### Ready-made tasks

`tasks/` holds seven saved configurations ([Apify tasks](https://docs.apify.com/platform/actors/running/tasks)) for common jobs:

| Task | What it runs |
|---|---|
| `smoke-test` | 20 cafes in Berlin, to check a new build works |
| `berlin-restaurant-leads` | 500 Berlin restaurants that have a website, with emails |
| `munich-trades-multi-term` | Electricians, plumbers and roofers in Munich, 300 each |
| `frankfurt-top-dentists` | Dentists rated 4.5+ with 50+ reviews and a phone number |
| `hamburg-cafes-list-only` | Up to 1,000 Hamburg cafes, listings only (fast, cheap) |
| `cologne-gyms-homepage-emails` | 300 gyms, emails from homepages only (faster enrichment) |
| `vienna-hotels-large` | 2,000 Vienna hotels, 1 GB memory, concurrency 20 |

To create them in your Apify account, or update them after editing the JSON files, run:

```bash
APIFY_TOKEN=<your token> python tasks/sync_tasks.py
```

The script uses the Actor `<your-username>~turbo-google-map-scraper` by default. Pass a different Actor ID as the first argument if yours has another name.

### FAQ, disclaimers, and support

> Our Actors are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our Actors, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

#### Why am I only getting about 200 results?

A single Google Maps text search tops out at roughly 120-220 places. Keep `gridSearch` on (the default) and raise `maxPlaces` — the Actor will then search the area tile by tile until it reaches your number. See [Getting more than ~200 results](#getting-more-than-200-results).

#### Why is `lastReviewDate` empty?

Because it costs an extra Google request per place, it is off by default. Set `includeLastReviewDate: true`, or use the `lastReviewWithinDays` filter, which turns the lookup on automatically.

#### Why did I get no emails?

Website enrichment must be on (`enrichWebsites: true`, the default) and the business must publish an address on its own site. `websiteEnrichmentDepth: "contactPages"` (default) also checks Impressum, contact and about pages; `homepageOnly` is faster but misses most emails. Social profile URLs are skipped by default (`skipSocialWebsites`). Check `websiteEnrichment.error` on the record if enrichment itself failed.

#### The run is slow or Google is blocking me

Lower `maxConcurrency`, raise `delaySeconds`, and make sure `proxyConfiguration` uses Apify Proxy. Website enrichment is usually the slowest part — turn it off (`enrichWebsites: false`) when you only need Maps data.

#### Where do I report a problem or ask for a feature?

Use the **Issues** tab on the Actor's page for bug reports and feature requests. For programmatic access to runs, datasets and the storage APIs, see the **API** tab. Extracted data works well for lead lists, CRM enrichment, market research, local SEO audits and feeding AI agents or workflows.

### Development

The Actor is written in Rust: the crate at the repository root builds a single
binary that `.actor/Dockerfile` ships in the platform image. `tasks/sync_tasks.py`
is the only remaining Python file and is just a helper for pushing the saved task
configurations.

```bash
cargo build                 # debug build
cargo test                  # offline unit tests (grid, parsers, filters, server, billing)
cargo clippy --all-targets --all-features -- -D warnings
cargo fmt --check
```

To run locally without an Apify token, point the Actor at a local storage
directory that contains `key_value_stores/default/INPUT.json`:

```bash
set APIFY_LOCAL_STORAGE_DIR=%TEMP%\gmaps-local
cargo run
```

Results are then written to `datasets/default/items/*.json` and the run summary
to `key_value_stores/default/OUTPUT.json`, the same layout the platform uses.

`.actor/Dockerfile` builds the release binary in a `rust:1-bookworm` stage and
copies it into a slim Debian image, so a platform build needs no Rust toolchain
on the target machine.

# Actor input Schema

## `mode` (type: `string`):

list searches only ($0.10 per 1,000 results); place scrapes one known place ID ($0.20 per 1,000); search lists places, fetches details ($0.20 per 1,000), and optionally reviews ($0.12 per 1,000).

## `query` (type: `string`):

Business/category query, for example 'dentists' or 'coffee shops'. Used when Search terms is empty.

## `searchTerms` (type: `array`):

Several queries to run in one go, for example 'restaurant', 'cafe', 'bar'. Each term is searched separately and places are deduplicated across terms. Overrides Search query when set.

## `searchLocation` (type: `string`):

Free-form location such as Berlin, Germany. Used together with the search query.

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

Known Google Maps place ID. Required for place mode.

## `maxPlaces` (type: `integer`):

Maximum places per search term. One Google search stops at about 120-220 results; Grid search finds more by splitting the area into map tiles.

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

Number of places to scrape in parallel. Higher values are faster but can increase blocking risk. Memory is set to 1024 MB; reduce concurrency if you encounter memory errors.

## `outputMode` (type: `string`):

placesOnly saves full place records only ($0.20/1k). allRecords also saves listing rows for each place ($0.30/1k = $0.10 listing + $0.20 detail). placesAndReviews includes reviews if maxReviews > 0.

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

Maximum reviews to fetch for each place. Set to 0 to skip reviews. Reviews are charged at $0.12 per 1,000.

## `enrichWebsites` (type: `boolean`):

Visit each place's website to extract emails and social links. Google Maps itself never lists emails, so turn this off only if you do not need them. Works in search and place mode, not list mode.

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

Drop places Google marks as permanently closed straight from the search results, before they are charged or detail-scraped. Turn off to keep them; records always carry permanentlyClosed.

## `leadFilters` (type: `object`):

Optional filters. Rating, review count, website and category are checked on the search results, so filtered places never cost a detail request. Phone and last review date are checked after details are fetched. Filtered places are skipped from Dataset output and reviews.

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

Use Apify Proxy or custom proxies.

## `gridSearch` (type: `boolean`):

When a search returns fewer places than Max places, split the area into map tiles and search each tile, nearest to the center first, until Max places is reached. The area is the location's boundary (from OpenStreetMap), or the Custom geolocation radius. Adds search requests only when needed.

## `advancedLocation` (type: `object`):

Optional structured location, coordinates, radius, or geometry. Normally the free-form Location field is enough.

## Actor input object example

```json
{
  "mode": "search",
  "query": "coffee shops",
  "searchLocation": "Berlin, Germany",
  "maxPlaces": 5,
  "maxConcurrency": 3,
  "outputMode": "placesOnly",
  "maxReviews": 0,
  "enrichWebsites": true,
  "skipClosedPlaces": true,
  "leadFilters": {},
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "gridSearch": true,
  "advancedLocation": {}
}
```

# Actor output Schema

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

Dataset items generated by the Actor. Depending on outputMode, this can include listing, place, and review records.

## `summary` (type: `string`):

Key-value store OUTPUT record with counters, timing, effective query, location, filters, and run status.

# 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 = {
    "query": "coffee shops",
    "searchLocation": "Berlin, Germany",
    "enrichWebsites": true,
    "leadFilters": {},
    "advancedLocation": {}
};

// Run the Actor and wait for it to finish
const run = await client.actor("solutionssmart/turbo-google-map-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 = {
    "query": "coffee shops",
    "searchLocation": "Berlin, Germany",
    "enrichWebsites": True,
    "leadFilters": {},
    "advancedLocation": {},
}

# Run the Actor and wait for it to finish
run = client.actor("solutionssmart/turbo-google-map-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 '{
  "query": "coffee shops",
  "searchLocation": "Berlin, Germany",
  "enrichWebsites": true,
  "leadFilters": {},
  "advancedLocation": {}
}' |
apify call solutionssmart/turbo-google-map-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,solutionssmart/turbo-google-map-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/ZJa5qhAlHIQDmZscc/builds/dJAp64CeFQJiFwjIe/openapi.json
