# Google Maps Scraper - Business Contacts & Ratings (`benthepythondev/google-maps-business-scraper`) Actor

Returns Google Maps places for any search and location: name, phone, website, address parts, coordinates, rating, review count, opening hours, categories, place id and a lead score. Reads past Google's 200-place list by searching the map in tiles. No browser, no login; filters cost nothing extra.

- **URL**: https://apify.com/benthepythondev/google-maps-business-scraper.md
- **Developed by:** [Ben](https://apify.com/benthepythondev) (community)
- **Categories:** Lead generation, SEO tools, Other
- **Security:** Limited permissions
- **Stats:** 190 total users, 11 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.20 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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: Business Contacts, Ratings and Leads

Returns the places Google Maps shows for a search: name, phone, website, address in parts, coordinates, rating, number of reviews, opening hours, categories, place id and a lead score. Give it "dentist" and "Austin, TX" and you get the dentists of Austin, thousands if you want them, without a Google login or API key. It reads past the roughly 200 places one Google list holds and keeps to the boundary of the city, district or state you name.

**Price:** until October 18, 2026 $10.00 per 1,000 places on the Apify Free plan; from October 19 $1.50 per 1,000 ($1.20 from Gold up). Filters, full details and reviews cost nothing extra, and a place that a filter drops is not charged. Export to JSON, CSV or Excel, run on a schedule, call via API, or connect to Make, Zapier or n8n.

### 🔎 What is the Google Maps Scraper?

It calls the data requests Google Maps' own pages make, so no browser runs. A run of ten places takes about five seconds at 512 MB of memory; 260 dentists inside the city limits of Pasadena took 27 seconds.

One Google list ends after about 120 to 240 places. For more, the Actor searches the map of your location tile by tile, cuts every crowded tile into four and saves each place once. A map tile is a rectangle and a city is not, so the location is also looked up in OpenStreetMap: tiles outside the boundary are not searched and places outside it are not saved. A search for restaurants in Los Angeles returned 4,000 places in about two minutes from our own server, none of them from Pasadena, Glendale or Long Beach next door; 16 places on the city line carry a neighbouring town in their address.

#### What data does it extract?

- **Business:** name, main category and all categories, description, price range, whether Google marks it permanently closed
- **Contact:** phone in local and international format, website and its domain
- **Address:** full address, street, neighborhood, city, state, postal code, country code, plus code
- **Position:** latitude, longitude, time zone
- **Reputation:** rating, number of reviews, lead score from 0 to 100
- **Opening hours:** one entry per weekday
- **"About" tab:** service options, accessibility, payments, parking and the other groups Google lists
- **Identifiers:** place id, CID, feature id, Knowledge Graph id, Google Maps link
- **Media:** main photo, number of photos, photo links on request
- **With full details:** the number of 1, 2, 3, 4 and 5 star reviews and up to eight reviews with author, rating, text and date

#### What users of Google Maps scrapers report, and what this Actor does

The issue pages of the five most used Google Maps Actors on Apify were read on October 4, 2026:

| Reported there | Here |
|---|---|
| "Wrong city", "results outside of my search", "gave Queensland and it is doing all of Australia" | Places are kept to the boundary OpenStreetMap has for your location. Every row also carries city, state, postal code and country code |
| "ReviewCount always zero", "review count is not included" | Google sends some answers without review counts. The Actor notices and asks again; in a test run of 260 places every rated place had its count |
| "Number of results less than expected", "the number of results is 500" | Up to 20,000 places per search. The status message says whether Google has more or the map is read to its end |
| "Run consumed full credit balance", "kept running with max items set", charges for filters | A limit is exact, a place is saved once, a run stops at its maximum charge, and filtered places cost nothing |
| "Can I run multiple cities in one run?" | `queries` and `locations` are lists; each query is searched in each location |
| "How can I exclude previous scrapings?" | `onlyNew` with a monitor name, or `excludePlaceIds` |
| "Excel file has only true and false statements" | Attributes are lists of what the place has, opening hours one entry per weekday |

### ⬇️ Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `query` | string | | What to search for: a kind of business, a brand or a business name |
| `location` | string | | City, district, state or country to search in |
| `queries` | array | | Several search queries for one run |
| `locations` | array | | Several locations; each query is searched in each of them |
| `maxResults` | integer | 10 | Places to save per search, up to 20,000 |
| `geoSplit` | boolean | true | Cut the location into a grid of map tiles when Google's one list is not enough; off reads that one list only |
| `startUrls` | array | | Place links, place ids, feature ids or Google Maps search links |
| `mode` | string | `search` | `direct_urls` reads only the links and ignores the query fields |
| `minRating` | number | | Only places with at least this rating |
| `minReviews` | integer | | Only places with at least this many reviews |
| `websiteFilter` | string | `any` | `has_website` or `no_website` |
| `skipClosedPlaces` | boolean | false | Leave out permanently closed places (`skipClosed` is read too) |
| `requireWebsite` | boolean | false | Only places with a website (same as `websiteFilter: has_website`) |
| `includeReviews` | boolean | false | Full details: price range, every "About" group, star distribution, up to eight reviews. One more request per place |
| `maxReviews` | integer | 10 | Reviews to keep per place; Google shows a visitor eight at most |
| `includePhotos` | boolean | false | Adds `photos`, the photo links in Google's record |
| `includeLeadScore` | boolean | true | Adds `lead_score` |
| `scrapeContacts` | boolean | false | Reads each place's website and adds `primary_email`, `emails`, `socials` and `has_contact_form`, at no extra charge |
| `language` | string | `en` | Language of categories, hours and descriptions |
| `countryCode` | string | `us` | Country Google is told the visitor is in; decides phone and address format |
| `onlyNew` | boolean | false | Skip every place an earlier run with the same monitor name saved |
| `monitorId` | string | | Name of that memory |
| `excludePlaceUrls` | array | | Places to skip, as long Google Maps links |
| `excludePlaceIds` | array | | Places to skip, as place ids, CIDs or feature ids |
| `debugMode` | boolean | false | Logs every request with its size and time |

#### Example input

All dentists of a city:

```json
{
  "query": "dentist",
  "location": "Austin, TX",
  "maxResults": 2000
}
```

Prospects for a web agency: well-reviewed businesses without a website, in several cities:

```json
{
  "queries": ["plumber", "electrician"],
  "locations": ["Denver, CO", "Boulder, CO"],
  "websiteFilter": "no_website",
  "minRating": 4.5,
  "minReviews": 50,
  "maxResults": 200
}
```

Known places by link or id, with full details and reviews:

```json
{
  "mode": "direct_urls",
  "startUrls": [
    "https://www.google.com/maps/place/Wayfare+Tavern/data=!4m7!3m6!1s0x8085808a62f79413:0x3754c526852815b7!8m2!3d37.7921097!4d-122.3999688!16s%2Fg%2F1tzgpfsc!19sChIJE5T3YoqAhYARtxUohSbFVDc",
    "ChIJLeYyO_CAhYAR6j9XsEIm3GI"
  ],
  "includeReviews": true
}
```

German results in German format:

```json
{
  "query": "Zahnarzt",
  "location": "Leipzig",
  "language": "de",
  "countryCode": "de",
  "maxResults": 300
}
```

Input names of the most used Google Maps Actor are read as well: `searchStringsArray`, `locationQuery`, `maxCrawledPlacesPerSearch`, `placeIds`, `placeMinimumStars`, `website`, `scrapePlaceDetailPage` and `startUrls` as a list of `{"url": …}`.

Two tested examples you can copy into your account: [Austin coffee shops](https://apify.com/benthepythondev/google-maps-business-scraper/examples/austin-coffee-shops-sample) and [Berlin coffee shops without the places you already have](https://apify.com/benthepythondev/google-maps-business-scraper/examples/berlin-coffee-leads-exclude-known-places).

### ⬆️ Output

One row per place (from a run of October 4, 2026; the attributes are shortened here):

```json
{
  "name": "Piccolo Forno",
  "rating": 4.7,
  "review_count": 2433,
  "address": "725 Columbus Ave, San Francisco, CA 94133",
  "phone": "(415) 757-0087",
  "website": "https://piccolo-forno-sf.com/",
  "categories": ["Italian restaurant"],
  "has_hours": true,
  "plus_code": "RH2Q+G5 San Francisco, CA",
  "url": "https://www.google.com/maps/place/Piccolo+Forno/data=!4m7!3m6!1s0x808580f03b32e62d:0x62dc2642b0573fea!8m2!3d37.801362999999995!4d-122.412033!16s%2Fg%2F11bwny13gr!19sChIJLeYyO_CAhYAR6j9XsEIm3GI",
  "lead_score": 90,
  "place_id": "ChIJLeYyO_CAhYAR6j9XsEIm3GI",
  "cid": "7123610778461487082",
  "feature_id": "0x808580f03b32e62d:0x62dc2642b0573fea",
  "kgmid": "/g/11bwny13gr",
  "category": "Italian restaurant",
  "description": "Casual neighborhood trattoria with Italian classics & espresso in colorful, contemporary quarters.",
  "price": null,
  "latitude": 37.801362999999995,
  "longitude": -122.412033,
  "neighborhood": "Russian Hill",
  "street": "725 Columbus Ave",
  "city": "San Francisco",
  "state": "California",
  "postal_code": "94133",
  "country_code": "US",
  "phone_international": "+1 415-757-0087",
  "domain": "piccolo-forno-sf.com",
  "opening_hours": [
    {"day": "Monday", "hours": "11:45 AM–10 PM"},
    {"day": "Tuesday", "hours": "Closed"},
    {"day": "Wednesday", "hours": "11:45 AM–10 PM"},
    {"day": "Thursday", "hours": "11:45 AM–10 PM"},
    {"day": "Friday", "hours": "11:45 AM–10 PM"},
    {"day": "Saturday", "hours": "11:45 AM–10 PM"},
    {"day": "Sunday", "hours": "11:45 AM–10 PM"}
  ],
  "timezone": "America/Los_Angeles",
  "permanently_closed": false,
  "image_url": "https://lh3.googleusercontent.com/grass-cs/ACvplmOaCSW_8kML8cYCAeMcJaaqLelPtrlLcRushwRCby-qGUNeiOkVXxIdYoOnCeg-rDIO3OxP9G1iWM-qiA8YfKrWyKFvrAWirwpXv3DnmBc3lxwOrokGmMrO-A93Rc5wDF9UDv371Q=w1200-h900-k-no",
  "photo_count": 1877,
  "attributes": {
    "Accessibility": ["Wheelchair accessible entrance", "Wheelchair accessible restroom", "Wheelchair accessible seating"]
  },
  "query": "restaurants San Francisco, CA",
  "rank": 1,
  "scraped_at": "2026-10-04T16:49:33.005772+00:00"
}
```

This row came without full details, so `price` is empty and `attributes` has one group; with `includeReviews` a restaurant has its price range and 12 to 14 groups. `rank` is the position in Google's own list; places found on map tiles have none. With `includeReviews` a row also has `reviews_distribution` (`{"1": 60, "2": 34, "3": 94, "4": 303, "5": 1942}`; in a test of 60 places the five numbers added up to `review_count` every time) and `reviews`, each with `author`, `author_url`, `rating`, `text`, `language`, `published_at`, `age`, `url`, and the business's answer as `owner_reply` and `owner_reply_at` (empty when the owner did not reply). With `includePhotos` it has `photos`. With `scrapeContacts` it has `primary_email`, `emails` (each with `email`, `confidence` and the page `source`), `socials` (`facebook`, `instagram`, `linkedin` and others the site links), `has_contact_form` (a form with a message box or an email field on one of the pages read) and `website_pages_read`. The run also writes a `SUMMARY` record: places saved and read per search, how each search ended, and whether a boundary was applied.

### 💰 What a run costs

| Apify plan | Per 1,000 places until October 18, 2026 | From October 19, 2026 |
|---|---|---|
| Free | $10.00 | $1.50 |
| Bronze | $9.00 | $1.40 |
| Silver | $8.50 | $1.30 |
| Gold | $8.00 | $1.20 |
| Platinum | $7.50 | $1.20 |
| Diamond | $7.00 | $1.20 |

Apify's standard start event ($0.00005) is the only other charge. Full details, reviews, photos, website contacts (emails, social links, contact form), filters and the boundary are included. Not charged: a place a filter or an exclusion drops, a place outside the boundary, a place another search of the run saved, a place already delivered in only-new mode, a link without a place behind it, and a search without results.

### ⏱️ Measured on Apify (October 4, 2026)

| Run | Places | Time |
|---|---|---|
| Sample input (one search) | 10 | 5 s |
| Dentists in Pasadena, CA: Google's list plus map tiles, kept to the city boundary | 260 | 27 s |
| Bakeries in Boise, ID with full details: price range, "About" groups, star distribution, reviews | 60 | 19 s |
| Plumbers in Denver without a website, with 4.5 stars and 50 reviews or more: all 256 plumbers inside the city were read | 4 | 35 s |
| A place link, a place id, a link by name and a search link, with full details | 6 | 8 s |

A run of 200 coffee shops with full details that was aborted after 20 seconds and resurrected ended with 200 rows, none of them twice. All at 512 MB; the largest run used 239 MB.

### 🗺️ How it reads a whole city

1. Google's own list for "query location" comes first: the most relevant places, up to about 200, each with its `rank`.
2. If you asked for more, the map of the location is cut into four tiles and the same search is run in each.
3. A tile that returns 100 or more places inside itself is cut into four again, down to tiles about 300 metres high.
4. A place is saved once, however many tiles return it.

The status message says how each search ended: at your limit with more places on the map, or with the map read to its end.

### 🔔 Only new places

Turn on `onlyNew` and give the run a `monitorId`. Every place a run saves is remembered under that name, and later runs skip it. Two uses: read a large area in several runs, each continuing where the last one stopped; or, after one run that read a search to its end, put it on a schedule and get the businesses that appear later. The memory is a key-value store named `google-maps-monitor` in your own account; delete a record there to start over.

### 🤖 For AI agents

Smallest useful call:

```json
{"query": "coffee shop", "location": "Seattle, WA", "maxResults": 20}
```

Each row is one place with `name`, `address`, `phone`, `website`, `rating`, `review_count`, `category`, `latitude`, `longitude`, `opening_hours` and `place_id`. `queries`, `locations` and `startUrls` take several entries. A search without results returns no rows; the status message and the `SUMMARY` record say why. No credentials are needed.

### 💡 Use cases

- 📇 **Lead lists:** every business of a kind in a city, with phone and website, filtered by rating or by a missing website.
- 🗺️ **Market research:** how many competitors, where, with what ratings and price ranges.
- 🏪 **Directory building:** names, addresses, hours and categories with stable place ids for later updates.
- 🔁 **Monitoring:** new businesses in an area on a schedule, or the rating and review count of your own locations.

### ⚠️ Limits, stated plainly

- **Google decides what a search finds.** The Actor reads what Google Maps shows a visitor. A business Google does not list for your words is not found, and very small tiles are not cut further, so the densest blocks of a large city can hold a few more places than the run returns.
- **Review lists are not available.** Google shows a visitor up to eight reviews per place and asks for a signed-in account for the rest. `includeReviews` returns those eight and the exact star distribution.
- **Without full details some fields depend on Google.** Google gives some visitors a shorter record: contact data, rating and review count are there, but no price range, one "About" group and one photo. A row without full details has what the result list carried. With `includeReviews` the Actor reads each place's own page through a visitor that gets the complete record.
- **Emails only from the business's own website.** Google Maps does not publish them. With `scrapeContacts` the Actor reads the home, contact, Kontakt, Impressum and about pages of each place's website; a site that publishes no address gets none, and nothing is guessed. A place without a website gets empty contact fields.
- **The boundary is OpenStreetMap's, simplified to about 100 metres.** A place on the city line can fall on either side.
- **A boundary needs a place name.** A postcode, a street or "near Times Square" has no boundary in OpenStreetMap; the map view Google shows for it is searched instead and can include the surroundings. When OpenStreetMap and Google read a name as two different towns, Google's reading is used and no boundary is applied; the `SUMMARY` record says so.
- **`?cid=` links are not read.** Use the place link, the place id or the feature id.
- **Tested up to 5,000 places per search.** Larger runs work the same way but have not been measured here.

### ❓ FAQ

**Do I need a Google account or API key?** No.

**How many places can I get?** As many as Google lists for the search in the location, up to 20,000 per search. For one city and one kind of business that is usually a few hundred to a few thousand.

**Why did I get fewer places than I asked for?** Google has no more for that search inside the boundary, or filters removed the rest. A search with filters also stops after reading 1,000 places, or ten places for every place you asked for if that is more. The status message says which.

**Does it stay inside my city?** Yes, when OpenStreetMap has a boundary for the name you gave. In a test, 260 of 260 dentists for "Pasadena, CA" were in Pasadena and none in South Pasadena.

**Can I search several cities and several kinds of business in one run?** Yes, with `queries` and `locations`. A place found by two searches is saved and charged once.

**What changed for users of the earlier version?** The eleven fields it returned are still there under the same names and in the same order. The run no longer opens a browser, so it needs 512 MB instead of 2 GB. `maxResults` is now the number of places saved per search instead of the number looked at, and place links are all read. `price_level` (a number of dollar signs) became `price` (Google's price range as text). `includeReviews` returns up to eight reviews with exact dates, the most Google shows a visitor.

**I am switching from another Google Maps Actor. Which fields match?** `title` is `name` here, `totalScore` is `rating`, `reviewsCount` is `review_count`, `categoryName` is `category`, `location.lat` and `location.lng` are `latitude` and `longitude`, `placeId` is `place_id`, `fid` is `feature_id`, `additionalInfo` is `attributes`.

**How do I call it from code?** With the Apify API or the Python and JavaScript clients; every run returns a dataset you can fetch as JSON or CSV. It also works as a tool through Apify's MCP server.

**Is it legal?** The Actor reads business listings Google Maps shows publicly. Listings of sole traders and reviews with author names are personal data: GDPR, CCPA and similar rules apply to how you store and use them, CAN-SPAM and local rules to any outreach, and Google's terms apply to you as well.

### 🔗 You might also like

- [Website Contact Extractor](https://apify.com/benthepythondev/website-contact-extractor): emails, phones and social profiles from the websites in the `website` column
- [Google Maps Email Extractor](https://apify.com/benthepythondev/google-maps-email-scraper): places and the emails on their websites in one run
- [Facebook Pages Scraper](https://apify.com/benthepythondev/facebook-pages-scraper): contact details of business pages

City and region boundaries © OpenStreetMap contributors.

**Keywords:** google maps scraper, google maps business scraper, google maps leads, google places scraper, google maps data extractor, local business leads, google maps phone numbers, businesses without website, google maps api alternative, google maps csv export, place id, local seo data, lead generation, google maps reviews count, opening hours data, no api key

# Actor input Schema

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

What to search for on Google Maps, as you would type it there: a kind of business ("dentist", "coffee shop"), a brand or a business name. Searched in the location below.

## `location` (type: `string`):

City, district, state or country to search in, for example "San Francisco, CA", "Mitte, Berlin" or "Texas". With a location the Actor can read past Google's list of about 200 places by searching the map of that location piece by piece.

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

Several search queries for one run. Each query is searched in each location, and a place found by two searches is saved once.

## `locations` (type: `array`):

Several locations for one run, for example a list of cities. Each query is searched in each of them.

## `maxResults` (type: `integer`):

Places to save for each search (each query in each location), up to 20,000. One Google list holds about 120 to 240 places; for more the Actor searches the map of the location in tiles. With filters a search reads at most 1,000 places, or ten places per place asked for here if that is more.

## `geoSplit` (type: `boolean`):

On: when a search asks for more places than Google's one list holds (about 120 to 240), the location's area is cut into a grid of map tiles, each tile is searched, crowded tiles are cut again, and every place is saved once (by its place id). Off: only Google's one list is read.

## `startUrls` (type: `array`):

Google Maps place links, place ids (ChIJ…), feature ids (0x…:0x…) or Google Maps search links. Each place is read from its own page, every link is read regardless of the limit above. A search link is run as a search; a link with a map position (…/@37.76,-122.41,15z) searches that part of the map.

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

"search" runs the queries and reads the links. "direct_urls" reads only the links and ignores the query fields.

## `minRating` (type: `number`):

Save only places with at least this star rating (1.0 to 5.0). Places without a rating are left out. Filtered places are not charged.

## `minReviews` (type: `integer`):

Save only places with at least this many reviews. Filtered places are not charged.

## `websiteFilter` (type: `string`):

"has_website" saves only places with a website, "no_website" only places without one (prospects for web design and local marketing). Filtered places are not charged.

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

Leave out places Google marks as permanently closed. `skipClosed` is read as well.

## `requireWebsite` (type: `boolean`):

Save only places that list a website, the same as websiteFilter "has_website". Filtered places are not charged.

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

Reads each place's own page as well: price range, every group of Google's "About" tab, the number of 1 to 5 star reviews and the reviews Google shows a visitor on the overview (eight at most, with author, rating, text, date and the owner's reply). One more request per place, about four places a second. Without it a row has what Google's result list carried.

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

Reviews to keep per place when reviews are included. Google shows a visitor eight at most.

## `includePhotos` (type: `boolean`):

Adds `photos`: the photo links in Google's record of the place, between 1 and about 20. The main photo is always in `image_url`.

## `includeLeadScore` (type: `boolean`):

Adds a score from 0 to 100 computed from the row itself: website and phone present, rating, number of reviews, opening hours, photos.

## `scrapeContacts` (type: `boolean`):

Reads each place's website (home, contact, Kontakt, Impressum and about pages) and adds primary_email, emails, socials and has_contact_form to the row. Included in the place price, no extra event. Adds a few seconds per place; places without a website get empty fields.

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

Language of categories, opening hours and descriptions, as a language code: en, de, fr, es, it, pt-BR, ja.

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

Two-letter country code Google is told the visitor is in. It decides the format of addresses and phone numbers: with "us" a US phone is "(415) 772-9060", a German one "+49 30 81455310"; with "de" the German one is "030 81455310".

## `onlyNew` (type: `boolean`):

Skips every place an earlier run with the same monitor name saved. Use it to continue a large area over several runs, or on a schedule to get businesses that appear after a first complete run. Skipped places are not charged.

## `monitorId` (type: `string`):

Name of the memory used by "only places not delivered before". Runs with the same name share one memory.

## `excludePlaceUrls` (type: `array`):

Skip these places, given as long Google Maps place links. Excluded places are not saved or charged.

## `excludePlaceIds` (type: `array`):

Skip these places, given as place ids (ChIJ…), numeric CIDs or feature ids (0x…:0x…). Excluded places are not saved or charged.

## `debugMode` (type: `boolean`):

Logs every request with its size and time. For support.

## Actor input object example

```json
{
  "query": "restaurants",
  "location": "San Francisco, CA",
  "maxResults": 10,
  "geoSplit": true,
  "mode": "search",
  "websiteFilter": "any",
  "skipClosedPlaces": false,
  "requireWebsite": false,
  "includeReviews": false,
  "maxReviews": 10,
  "includePhotos": false,
  "includeLeadScore": true,
  "scrapeContacts": false,
  "language": "en",
  "countryCode": "us",
  "onlyNew": false,
  "debugMode": false
}
```

# Actor output Schema

## `results` (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 = {
    "query": "restaurants",
    "location": "San Francisco, CA"
};

// Run the Actor and wait for it to finish
const run = await client.actor("benthepythondev/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 = {
    "query": "restaurants",
    "location": "San Francisco, CA",
}

# Run the Actor and wait for it to finish
run = client.actor("benthepythondev/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 '{
  "query": "restaurants",
  "location": "San Francisco, CA"
}' |
apify call benthepythondev/google-maps-business-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,benthepythondev/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/uU8ybh0dgvI68Q3o2/builds/JhWJMkCsddaAc9TCj/openapi.json
