# Google Maps Scraper & Business Leads Extractor (`badr_xba/google-maps-business-leads`) Actor

Turn a Google Maps search into a B2B lead list: name, address, phone, website, rating and hours, plus optional website e-mails and socials, reviews, photos, Hunter.io leads and e-mail verification, and AI competitor analysis (your keys). Many locations per run. Pay only for what is delivered.

- **URL**: https://apify.com/badr_xba/google-maps-business-leads.md
- **Developed by:** [Badr Bouargan](https://apify.com/badr_xba) (community)
- **Categories:** Lead generation, Business, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.08 / 1,000 scraped 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 Leads Extractor

![Google Maps Scraper & Business Leads Extractor: find businesses, build lead lists from website contacts, analyse reviews and competitors](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/gmbl-01-hero.png)

### 1. Overview

**Google Maps Scraper & Business Leads Extractor** turns a search such as *"dentist in Chicago"* into a clean, ready-to-use business list: name, category, address, coordinates, phone, website, rating, review count, opening hours and Google identifiers for every place. Then, only if you switch them on, it adds the layers a sales or market team usually has to assemble by hand:

- **company contacts** read from each business's own website (company e-mail, phone and social pages only), every item with the page it was found on;
- **named business leads** (people, job titles, work e-mails) and **e-mail verification** through your own Hunter.io key, as a separate add-on;
- **company social profiles** linked from the official website;
- **reviews**, **images** and **place details**;
- an **AI competitor analysis** of each place, written by your own AI key from the data the run collected.

**Why it is worth a try**

- **Pay only for what is delivered.** Every add-on is its own event, off by default, and charged per item actually delivered. Duplicates, places removed by filters, websites that did not answer, login walls, inconclusive verifications and failed AI calls are never charged.
- **Nothing is guessed.** E-mails come from the business website or from Hunter.io, never from a name pattern. AI quotes that are not found word for word in the reviews are dropped.
- **Your keys, your costs, your data.** Leads, verification and AI run on your own provider accounts: you see exactly what each provider bills you.
- **A spending cap you can trust.** Set **Maximum cost of this run** (`maxCostUsd`, right under the main fields; Apify's "Maximum cost per run" is honoured too): the run stops cleanly before going over it, and paid work is reserved before it starts.
- **Many locations, all main categories.** One run can search several cities, regions or countries (one per line) and, if you want, 59 common Google Maps categories at once; a business found twice is saved and billed once.
- **Familiar input.** The main field names (`searchStringsArray`, `locationQuery`, `maxCrawledPlacesPerSearch`, `scrapeContacts`, `maxReviews`…) are the ones used by the most popular Google Maps scraper on the Store, so existing inputs run as they are.

### 2. Key features

| Feature | What you get | Event (only when on) |
|---|---|---|
| Business search | Places by keyword, category (or all main categories), one or many locations, radius, GeoJSON area, Google Maps URL or place ID | `place-scraped` |
| 14 filters | Rating, review count, website yes/no, phone, open now, city / country match, price level, closed places, name match, category, "with e-mail" | `filter-applied` per filter |
| Place details | Description, attributes, review distribution and tags, owner description, plus code, order-online link | `place-details-scraped` |
| Company contacts | E-mails, phones and social links from the official website, each with its source URL, plus free e-mail checks | `contact-details-scraped` |
| Business leads | Named people at the business domain via your Hunter.io key | `lead-scraped` |
| E-mail verification | Mailbox verification via your Hunter.io key; only decisive results charged | `lead-email-verified` |
| Social profiles | Public title, description, image and (when stated) follower count of the profiles linked on the website | `social-profile-scraped` |
| Reviews | About 5 reviews per place with stars, date, text, owner reply and its date | `review-scraped` |
| Images | A few photos per place with size, upload date and position | `image-scraped` |
| AI competitor analysis | Positioning, services, strengths and improvement areas quoted from reviews, ranks within the search | `competitor-analyzed` |
| Visual report | An interactive HTML page of the run, with charts, filters and CSV / JSON export | free |

![Search panel with several locations, a radius and filters](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/gmbl-02-search.png)

### 3. Business search

The top of the input form has four fields and the cost cap; the first click in Console already runs (*restaurant*, *Paris, France*, 20 places, English, at most $5):

- **Search term(s)** (`searchStringsArray`): `dentist`, `restaurant`, or the place in the term itself (`dentist in Chicago`). Google Maps links and place IDs can be pasted here too.
- **Locations** (`locations`): **one per line**, in plain words, anywhere in the world: `Casablanca, Morocco`, `Paris, France`, `Texas, USA`, `10001, USA`, `Shibuya, Tokyo, Japan`. Locations are processed one after the other and **every search term is searched in every location** (2 terms x 3 locations = 6 searches). Big areas (a region, a country) are split into smaller map squares automatically, so results are not capped at the ~120 places Google shows for one view.
- **Number of places** (`maxCrawledPlacesPerSearch`): **per search term, per location** (20 with 2 terms and 3 locations = up to 120 places). Empty = every place found.
- **Language** (`language`).
- **Maximum cost of this run (USD)** (`maxCostUsd`, recommended): the run stops cleanly before its charges would go over it. Estimate: places x price per place, e.g. **10,000 places ≈ $21.60** at $2.16 / 1,000 (Starter plan), before add-ons. Apify's own "Maximum cost per run" is honoured too; the lower limit wins.

A business found by two terms or in two locations is **saved and billed once** (matched by place ID, CID or FID).

> **Large runs.** A whole country, many locations or *All main categories* can return **hundreds of thousands of places**. When *All main categories* is on, more than 3 locations are given, or a region / country-sized location is searched with an empty *Number of places*, the run log starts with a warning that gives the number of searches, the maximum number of places, its estimated cost at your plan's price and whether a cost cap is set.

Then optional sections. Sections marked `*` are alternative ways to say where or what:

- **All main categories** (`searchAllMainCategories`, first option of the filters & categories section, off by default): adds the 59 common categories listed below to your own search terms (duplicates skipped) and searches each of them in each location. It finds **most** places of an area, **not 100 %**: a business whose only Google category is rare (a taxidermist, a bonsai nursery…) is missing unless Google also lists it under one of these words. It **multiplies the searches** (59 x locations), so it takes longer and costs more: keep *Number of places* and *Maximum cost* set. The words are English for every run language: Google Maps matches English category words in every country (`pharmacy` in Casablanca finds the *pharmacies*), and `language` still sets the language of the category names delivered.
- **Categories** (`searchCategories`, same section): your own extra categories, each searched like a term.
- **Geographic area\***: structured location (`countryCode`, `city`, `county`, `state`, `postalCode`), a circle (`latitude`, `longitude`, `radiusKm`; places outside are dropped and not charged) or a GeoJSON `customGeolocation` (Point + `radiusKm`, Polygon, MultiPolygon).
- **Google Maps URLs or place IDs\***: `startUrls` (place or search URLs) and `placeIds`.
- **Run limits & budget**: `maxCrawledPlaces`, a total number of places for the whole run.

<details>
<summary><b>The 59 "All main categories" search terms</b> (also in <code>src/categories.py</code>)</summary>

- **Food & drink**: `restaurant`, `fast food restaurant`, `cafe`, `bar`, `bakery`, `butcher shop`
- **Groceries & daily needs**: `supermarket`, `grocery store`, `convenience store`, `pharmacy`
- **Health**: `doctor`, `dentist`, `hospital`, `medical clinic`, `optician`, `veterinarian`, `physiotherapist`
- **Lodging & travel**: `hotel`, `travel agency`
- **Money & professional services**: `bank`, `insurance agency`, `lawyer`, `accountant`, `real estate agency`
- **Car & transport**: `gas station`, `car repair`, `car dealer`, `car wash`, `parking`
- **Beauty & fitness**: `hair salon`, `barber shop`, `beauty salon`, `spa`, `gym`
- **Education**: `school`, `kindergarten`, `driving school`
- **Trades & home services**: `plumber`, `electrician`, `locksmith`, `general contractor`, `moving company`, `laundry`
- **Shops**: `clothing store`, `shoe store`, `jewelry store`, `electronics store`, `mobile phone store`, `furniture store`, `hardware store`, `home goods store`, `florist`, `book store`, `pet store`, `sporting goods store`, `shopping mall`
- **Worship & public services**: `church`, `mosque`, `post office`

</details>

**Older inputs keep working unchanged.** `locationQuery` (one location, the field name of inputs written before 2026-11-11 and of the most popular Google Maps scraper) is still accepted and hidden in the form; when both `locationQuery` and `locations` are given they are merged, duplicates removed. Inputs written for other popular Google Maps scrapers (`locationQuery`, `maxCrawledPlacesPerSearch`, `scrapeSocialMediaProfiles` with `twitters`, `maxQuestions`…) validate and run as before.

There is **no "all places without a search term" mode**: Google's map search answers nothing for an empty query, and generic words (`business`, `shop`) return a biased subset, not every place (checked live on 2026-11-11). *All main categories* is the closest option: it covers most places, not all.

Large areas are split into smaller squares automatically to go past the ~120 results Google shows for one view. Inputs that cannot be used (unknown location, malformed place ID, non-Google link…) are skipped, listed in `FAILED_INPUTS` with an error code, never charged, and never make the run fail. An empty API input runs the same demo as the form's first click (restaurants in Paris, France, 20 places at most).

### 4. Place details

Every place comes with the fields of the Google Maps search answer: `title`, `placeId`, `cid`, `fid`, `kgmid`, `categoryName`, `categories`, `address`, `street`, `city`, `state`, `postalCode`, `countryCode`, `location` (lat / lng), `phone`, `phoneInternational`, `website`, `domain`, `totalScore`, `reviewsCount`, `openingHours`, `openState`, `permanentlyClosed`, `temporarilyClosed`, `imageUrl`, `timezone`, `rank`, `scrapedAt`.

With **Add-on: place details** (`scrapePlaceDetailPage`) the place's detail answer is read and adds `reviewsDistribution` (1 to 5 stars), `reviewsTags`, `ownerDescription`, `plusCode`, `orderOnlineUrl` and, when Google sends it, `popularTimes`.

![Sample place card, extracted fields and a JSON dataset item](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/gmbl-03-extraction.png)

### 5. Contacts enrichment

**Add-on: company contacts** (`scrapeContacts`) opens the official website of each place (home page, then up to four contact / about pages when the home page shows no e-mail) and collects **business contacts only**:

- `emails` and `email` (first address), with `contacts.emails[].sourceUrl`, the page each one was found on;
- phones published as `tel:` links (`contacts.phones[]`);
- the company's social links (`facebookUrl`, `instagramUrl`, `linkedinUrl`, `twitterUrl`, `youtubeUrl`, `tiktokUrl`, `whatsappUrl`, and `contacts.socialLinks[]` with their source page);
- `contacts.pagesRead`, the exact pages visited.

**Business contacts only.** Website e-mails that look like a named person's address are left out: two alphabetic parts joined by `.`, `_` or `-` (`jean.dupont@`, `j.smith@`), on the company's domain or on a free-mail domain (Gmail, Outlook…), unless one part is a role word (`sales.team@`, `contact.paris@`) or the address starts with the business's own name (`cafe.dupont@` for *Café Dupont*, `apams-plomberie@` for *APAMS*). Addresses without a separator (`marie@`) cannot be told apart from a business address and are kept. The count of e-mails left out is in `RUN_SUMMARY.stats.personalEmailsSkipped`. LinkedIn links are kept only for company / school / showcase pages: personal profiles (`linkedin.com/in/…`) are never collected or visited. Named people come only from the separate business leads add-on below.

Masked addresses (Cloudflare e-mail protection, `name [at] domain [dot] com`) are decoded; nothing is ever generated from a name pattern. Each e-mail also gets a **free local check** (`emailChecks[]`): `syntaxValid`, `mxFound` (DNS), `disposableDomain`, `roleAddress` (info@, contact@…). An MX record means the domain receives mail, **not** that the mailbox exists: mailbox verification is the separate add-on below.

When the place's "website" is only a social profile or a directory listing (facebook.com, instagram.com, linktr.ee, yelp.com, tripadvisor.com, booking.com…), it is **not read and not charged**; a social profile is still delivered as its link (`instagramUrl`, `facebookUrl`…).

`onlyWithEmail` keeps only places with an e-mail after the websites are read (it counts as one filter).

![Company contacts with their source URLs, then named leads with verification status](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/gmbl-04-contacts-leads.png)

### 6. Business leads enrichment

**Add-on: business leads per place** (`maximumLeadsEnrichmentRecords`, 1 to 100) asks the **Hunter.io Domain Search API, with your own Hunter key** (`hunterApiKey`), for the people working at the domain of each business website. Each lead in `leads[]` has `fullName`, `firstName`, `lastName`, `position`, `department`, `seniority`, `email`, `emailType`, `confidence` (Hunter's score), `linkedinUrl`, `twitter`, `phone` (when Hunter has one), `hunterVerificationStatus`, `organization`, `domain` and `source: "hunter.io"`.

- Narrow the search with `leadsEnrichmentDepartments` (executive, sales, marketing, it, finance, hr…) and `leadsSeniority` (junior, senior, executive).
- Websites on shared platforms (facebook.com, instagram.com, wixsite.com, linktr.ee, booking.com…) are skipped: Hunter would return the platform's own staff.
- A chain with the same domain in several places is searched once; repeats are shown again with `repeatedFromEarlierPlace: true` and not charged again.
- No key: the add-on is skipped with a warning and nothing is charged. A refused key or an exhausted Hunter plan stops only this add-on; the run continues.

Hunter bills its credits to your Hunter account (at the time of writing, 1 credit per e-mail found by Domain Search; see hunter.io/pricing).

- **Your key only.** The add-on uses only the `hunterApiKey` (and optional `emailVerificationApiKey`) of your input. The Actor has no Hunter key of its own and never reads one from its environment: without your key, leads and verification are skipped and nothing is charged.
- **Person data comes only from Hunter's API.** The Actor itself never visits LinkedIn profiles or any personal page; the `linkedinUrl` of a lead is the link Hunter returned.
- **Nothing kept outside your run.** Leads are written only to your run's default dataset (and counted in `RUN_SUMMARY` / the `REPORT` page of your run's key-value store). No shared or named storage is used, and names and e-mail addresses are masked in log messages.

**GDPR and similar laws.** Named leads are personal data and **you are the controller**: use them lawfully (typically B2B prospecting on a documented legitimate interest), tell the people concerned where their data came from, honour objections and opt-outs at once, and collect only what you need (`leadsEnrichmentDepartments`, `leadsSeniority`, a small `maximumLeadsEnrichmentRecords`). Use the data in line with Hunter.io's terms.

### 7. Email verification

**Add-on: e-mail verification** (`verifyLeadsEnrichmentEmails`) checks the lead and website e-mails with the **Hunter Email Verifier, using your key** (`hunterApiKey`, or a separate `emailVerificationApiKey`). Each result in `emailVerifications[]` has `email`, `status`, `decisive`, `provider`, `score`.

| `status` | Meaning | Charged |
|---|---|---|
| `valid` | The mailbox exists | yes |
| `invalid` | The mailbox does not exist | yes |
| `disposable` | Throw-away mailbox provider | yes |
| `accept_all` | The server accepts every address: the mailbox cannot be confirmed | no |
| `webmail` | Webmail address (Gmail…) | no |
| `unknown` | No conclusive answer (or still processing) | no |

Each address is verified once per run, at most 10 per place. Hunter bills its own verification credits to your account (at the time of writing, 0.5 credit per verification).

### 8. Social media enrichment

**Add-on: social media profiles** (`scrapeSocialMediaProfiles`, e.g. `{"instagrams": true, "linkedins": true}`) enriches only the profiles the business links from its **own website**, so you get the business's official accounts, not look-alikes. Supported keys: `facebooks`, `instagrams`, `youtubes`, `tiktoks`, `linkedins` (LinkedIn **company** pages only; personal `/in/` profiles are never visited). X (Twitter) profiles are not visited, because X's terms forbid automated collection; the X link found on the website is still delivered as `twitterUrl`.

Each profile in `socialProfiles[]` has `platform`, `handle`, `url`, `status`, `title`, `description`, `imageUrl`, `followersText`, `followersCount`, `foundOn` (the website page that links it) and `verification: "linkedFromOfficialWebsite"`.

- One logged-out visit per profile: no login, no cookies kept, no proxy rotation, a pause between two requests to the same platform.
- Only public meta tags are read (`og:title`, `og:description`, `og:image`). A follower count is given only when the public description states it literally ("374 followers"); nothing is estimated.
- `status`: `enriched` (charged), `notAccessible` (login wall, HTTP 401/403/429), `noPublicData`, `error` (none of these is charged). Facebook and Instagram usually show a login wall to logged-out visitors, so expect most enriched profiles to come from LinkedIn and YouTube.

![Official social profiles linked from a website, with Enriched, No public data and Not accessible statuses](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/gmbl-06-social.png)

### 9. Reviews scraper

**Add-on: reviews per place** (`maxReviews`) delivers the reviews Google embeds with each place: **about 5 per place, its most relevant ones**. Each review has `reviewId`, `stars`, `text`, `publishAt`, `publishedAtDate`, `reviewerNumberOfReviews`, `isLocalGuide`, `reviewOrigin`, `responseFromOwnerText`, `responseFromOwnerDate`, `reviewImageUrls` and, if `scrapeReviewsPersonalData` is on (off by default), the reviewer's name, ID, profile URL and photo. *Personal data (GDPR): off by default; switch it on only with a lawful reason — you are responsible for how you use it (honour objections, keep only what you need).*

Free options: `reviewsSort` (re-orders the reviews received), `reviewsStartDate` (`2024-05-03` or `3 months`), `reviewsFilterString`. The **Reviews** view gives one review per row.

![Review cards with stars, dates and owner responses, and a rating distribution](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/gmbl-05-reviews.png)

### 10. Images scraper

**Add-on: images per place** (`maxImages`) delivers the photos Google sends with each place (a few per place). Each image has `imageUrl`, `photoId`, `sizeSuffix`, `originalWidth`, `originalHeight`, `uploadedAt`, `fromReview`, `latitude`, `longitude` and `authorName` when Google sends it and `scrapeImageAuthors` is on (off by default). *Personal data (GDPR): off by default; switch it on only with a lawful reason — you are responsible for how you use it (honour objections, keep only what you need).* `imageUrls` and `imagesCount` summarise them.

### 11. AI competitor analysis

**Add-on: AI competitor analysis** (`enableCompetitorAnalysis`) writes a short competitor profile of each place with **your own AI key**: Anthropic (`anthropicApiKey`, default model `claude-haiku-5-5`), OpenAI (`openaiApiKey`, default `gpt-6-luna`) or Google Gemini (`geminiApiKey`, default `gemini-3.5-flash-lite`); `aiModel` picks another model of the same provider.

The model receives **only data collected by this run**: the place's fields, up to 10 of its reviews, a snippet of its website text (when contacts are on) and the other places of the same search (up to 15). The result in `competitorAnalysis` contains:

- `positioning` and `services` (only services named in the data);
- `strengths[]` and `improvementAreas[]`, each `{point, evidence[]}` where every quote must appear word for word in the reviews; unverified quotes are dropped and counted in `droppedUnverifiedQuotes`;
- `comparison`: `ratingRank`, `reviewsCountRank`, `rankedAmong`, `peersCount`, `peerAverageRating` (computed in code, not by the model) and a short `summary`;
- `dataQuality` (`sufficient` / `thin`, e.g. fewer than 3 reviews), `dataUsed`, `tokens`, `status`.

`maxAnalyses` (default 10) caps both the `competitor-analyzed` events and your AI spend. Only successful analyses are charged. Turn reviews and contacts on for richer analyses.

![AI analysis card with positioning, services, quoted strengths and improvement areas, beside ranks within the search](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/gmbl-07-ai-competitor.png)

### 12. Quick start

1. Open the Actor: the form is pre-filled (*restaurant*, *Paris, France*, 20 places, $5 cap). Type your own **Search term(s)** (`dentist`) and **Locations**, one per line (`Chicago, USA`, `Toronto, Canada`).
2. Set **Number of places** (per term, per location) and check **Maximum cost of this run (USD)** just below. Open the **Add-on** sections you need (each one is off until you switch it on; `($)` marks paid options). Paste your Hunter.io or AI key only for the add-ons that need one.
3. Optional: switch on **All main categories** to cover most businesses of the area without typing terms.
4. Click **Start**. Download JSON, CSV or Excel, or open the **Visual report** from the run's Output tab.

Output views: **Overview**, **Contacts & leads**, **Reviews** (one per row), **Social** (one profile per row), **AI analysis**. Every run also writes `RUN_SUMMARY` (counts, add-ons, billable events, estimated cost), `FAILED_INPUTS` and the `REPORT` page to the key-value store.

![Visual report with key figures, charts and a places table](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/gmbl-08-dashboard.png)

### 13. Input JSON

```json
{
  "searchStringsArray": ["dentist"],
  "locations": ["Chicago, USA", "Toronto, Canada"],
  "maxCrawledPlacesPerSearch": 50,
  "language": "en",
  "maxCostUsd": "5",
  "placeMinimumStars": "four",
  "website": "withWebsite",
  "scrapePlaceDetailPage": true,
  "scrapeContacts": true,
  "scrapeSocialMediaProfiles": { "linkedins": true, "youtubes": true },
  "maximumLeadsEnrichmentRecords": 3,
  "leadsEnrichmentDepartments": ["executive", "management"],
  "hunterApiKey": "YOUR_HUNTER_KEY",
  "verifyLeadsEnrichmentEmails": true,
  "maxReviews": 5,
  "reviewsSort": "newest",
  "scrapeReviewsPersonalData": false,
  "maxImages": 3,
  "enableCompetitorAnalysis": true,
  "aiProvider": "anthropic",
  "anthropicApiKey": "YOUR_ANTHROPIC_KEY",
  "maxAnalyses": 20
}
```

Keys are secret input fields: stored encrypted by Apify, never written to logs, the dataset or the key-value store.

Most businesses of a few towns (all main categories, 30 places per category per town, capped at $10):

```json
{
  "searchAllMainCategories": true,
  "locations": ["Ifrane, Morocco", "Azrou, Morocco"],
  "maxCrawledPlacesPerSearch": 30,
  "maxCostUsd": "10"
}
```

An older input with one `locationQuery` still runs as it is: `{"searchStringsArray": ["plumber"], "locationQuery": "Austin, USA"}`.

### 14. Output JSON

A real row from a local test run on 2026-11-10 (*"bakery", Paris, 5 reviews, contacts, AI with Gemini*), trimmed: one review kept, long URLs shortened, reviewer data not collected.

```json
{
  "title": "Petite Ile boulangerie",
  "placeId": "ChIJ9_NpNqZv5kcRDrE-riLHFkM",
  "cid": "4834270201794965774",
  "kgmid": "/g/11sphnprss",
  "categoryName": "Bakery",
  "categories": ["Bakery"],
  "address": "8 Rue des Filles du Calvaire, 75003 Paris, France",
  "street": "8 Rue des Filles du Calvaire",
  "city": "Paris",
  "postalCode": "75003",
  "countryCode": "FR",
  "location": { "lat": 48.8623212, "lng": 2.3655368 },
  "website": "https://instagram.com/petite.ile.paris",
  "totalScore": 4.7,
  "reviewsCount": 544,
  "openState": "Closes soon · 6 PM · Opens 8 AM Wed",
  "timezone": "Europe/Paris",
  "rank": 1,
  "searchString": "bakery",
  "searchLocation": "Paris, France",
  "scrapedAt": "2026-11-10T16:36:44.024843+00:00",
  "reviews": [
    {
      "reviewId": "Ci9DQUlRQUNvZENodHljRjlv…",
      "stars": 5,
      "text": "An unexpected gem in Paris, this bakery brings something genuinely different to the table with its Asian and Taiwanese-inspired creations. …",
      "publishAt": "3 months ago",
      "publishedAtDate": "2026-07-18T13:36:00.000Z",
      "isLocalGuide": true,
      "reviewOrigin": "Google",
      "responseFromOwnerText": "Thank you so much for visiting us and for your kind support. …",
      "responseFromOwnerDate": "2026-07-18T19:17:55.000Z"
    }
  ],
  "competitorAnalysis": {
    "provider": "gemini",
    "model": "gemini-3.5-flash-lite",
    "status": "ok",
    "dataUsed": ["placeFields", "reviews(5)", "websiteText", "peers(2)"],
    "positioning": "Petite Ile boulangerie is a bakery located at 8 Rue des Filles du Calvaire in Paris, France, offering Asian and Taiwanese-inspired baked goods, coffee, and whole beans in a space with hipster charm.",
    "services": ["Bakery", "Asian and Taiwanese-inspired creations", "Pain au chocolat au sésame", "Matcha brioche", "Lattes", "Whole beans"],
    "strengths": [
      {
        "point": "Good coffee and beverage selection",
        "evidence": ["Their lattes are also pretty good and they have a good selection of whole beans to buy from."]
      }
    ],
    "improvementAreas": [
      {
        "point": "Croissant texture consistency",
        "evidence": ["the croissant wasn’t very flaky and buttery. With the inside having a texture and taste similar to a supermarket"]
      }
    ],
    "comparison": { "peersCount": 2, "ratingRank": 2, "reviewsCountRank": 3, "rankedAmong": 3, "peerAverageRating": 4.55 },
    "dataQuality": "sufficient",
    "droppedUnverifiedQuotes": 0,
    "tokens": { "inputTokens": 2265, "outputTokens": 497 }
  }
}
```

Contacts, e-mail checks and social profile of another real row (*"yoga studio", Austin*, same day):

```json
{
  "email": "hello@pranawellness.love",
  "emails": ["hello@pranawellness.love", "info@pranawellness.love"],
  "contacts": {
    "emails": [
      { "value": "hello@pranawellness.love", "sourceUrl": "http://www.pranawellness.love/" },
      { "value": "info@pranawellness.love", "sourceUrl": "http://www.pranawellness.love/" }
    ],
    "phones": [],
    "socialLinks": [
      { "platform": "instagram", "url": "https://www.instagram.com/pranawellnessclub", "sourceUrl": "http://www.pranawellness.love/" }
    ],
    "pagesRead": ["http://www.pranawellness.love/"]
  },
  "emailChecks": [
    { "email": "hello@pranawellness.love", "syntaxValid": true, "mxFound": true, "disposableDomain": false, "roleAddress": true }
  ],
  "socialProfiles": [
    {
      "platform": "instagram",
      "handle": "pranawellnessclub",
      "url": "https://www.instagram.com/pranawellnessclub/",
      "status": "noPublicData",
      "followersCount": null,
      "foundOn": "http://www.pranawellness.love/",
      "verification": "linkedFromOfficialWebsite"
    }
  ]
}
```

Shape of a lead and of a verification (field names from the code; sample values):

```json
{
  "leads": [
    {
      "fullName": "Jane Morgan", "position": "Practice Manager", "department": "management", "seniority": "senior",
      "email": "jane@example.com", "emailType": "personal", "confidence": 94,
      "linkedinUrl": "https://www.linkedin.com/in/example", "organization": "Example Dental",
      "domain": "example.com", "source": "hunter.io"
    }
  ],
  "emailVerifications": [
    { "email": "jane@example.com", "status": "valid", "decisive": true, "provider": "hunter", "score": 97 }
  ]
}
```

### 15. API examples (cURL)

Run the Actor and get the dataset items in one call (for small runs):

```bash
curl -X POST "https://api.apify.com/v2/acts/badr_xba~google-maps-business-leads/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchStringsArray":["dentist"],"locations":["Chicago, USA"],"maxCrawledPlacesPerSearch":20,"scrapeContacts":true,"maxCostUsd":"2"}'
```

Start a run asynchronously, then read one view of its dataset:

```bash
curl -X POST "https://api.apify.com/v2/acts/badr_xba~google-maps-business-leads/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchStringsArray":["plumber"],"locations":["Austin, USA","Dallas, USA"],"maxCrawledPlacesPerSearch":50,"maxReviews":5,"maxCostUsd":"3"}'

curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?view=reviews&format=csv&token=$APIFY_TOKEN"
```

### 16. Python and JavaScript examples

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("badr_xba/google-maps-business-leads").call(run_input={
    "searchStringsArray": ["dentist"],
    "locations": ["Chicago, USA"],
    "maxCrawledPlacesPerSearch": 50,
    "scrapeContacts": True,
    "maximumLeadsEnrichmentRecords": 3,
    "hunterApiKey": "<HUNTER_KEY>",
    "maxCostUsd": "5",
})

for place in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(place["title"], place.get("email"), len(place.get("leads") or []))
```

**JavaScript / Node.js** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('badr_xba/google-maps-business-leads').call({
    searchStringsArray: ['restaurant'],
    locations: ['Lyon, France', 'Marseille, France'],
    maxCrawledPlacesPerSearch: 30,
    maxCostUsd: '5',
    maxReviews: 5,
    enableCompetitorAnalysis: true,
    aiProvider: 'gemini',
    geminiApiKey: '<GEMINI_KEY>',
    maxAnalyses: 30,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((p) => console.log(p.title, p.totalScore, p.competitorAnalysis?.comparison?.ratingRank));
```

The Actor also works with Apify integrations (webhooks, Make, Zapier, n8n) and the Apify MCP server.

### 17. Pricing

Pay per event: you pay for each item delivered, at the price of your Apify plan. Platform usage is included. Add-ons cost nothing while they are off.

| Event | Charged per | Free | Starter | Scale | Business |
|---|---|---:|---:|---:|---:|
| `place-scraped` | place saved | $2.88 / 1,000 | $2.16 / 1,000 | $1.44 / 1,000 | $1.08 / 1,000 |
| `filter-applied` | saved place × active filter | $0.72 / 1,000 | $0.72 / 1,000 | $0.54 / 1,000 | $0.378 / 1,000 |
| `place-details-scraped` | place delivered with details | $1.44 / 1,000 | $1.44 / 1,000 | $1.08 / 1,000 | $0.756 / 1,000 |
| `contact-details-scraped` | website actually read | $1.44 / 1,000 | $1.44 / 1,000 | $1.08 / 1,000 | $0.756 / 1,000 |
| `lead-scraped` | person delivered (your Hunter key) | $2.70 / 1,000 | $1.80 / 1,000 | $1.35 / 1,000 | $1.08 / 1,000 |
| `lead-email-verified` | decisive verification (your Hunter key) | $0.90 / 1,000 | $0.72 / 1,000 | $0.54 / 1,000 | $0.45 / 1,000 |
| `social-profile-scraped` | profile enriched | $7.20 / 1,000 | $5.76 / 1,000 | $5.04 / 1,000 | $4.32 / 1,000 |
| `review-scraped` | review delivered | $0.36 / 1,000 | $0.36 / 1,000 | $0.2664 / 1,000 | $0.1872 / 1,000 |
| `image-scraped` | image delivered | $0.36 / 1,000 | $0.36 / 1,000 | $0.2664 / 1,000 | $0.1872 / 1,000 |
| `competitor-analyzed` | successful AI analysis (your AI key) | $9.00 / 1,000 | $7.20 / 1,000 | $6.30 / 1,000 | $5.40 / 1,000 |
| `apify-actor-start` | run start (per GB of memory) | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

**Bring-your-own-key services are billed by those providers to you, not by this Actor**: Hunter.io credits for leads and verification, and the tokens of your Anthropic, OpenAI or Gemini account for the AI analysis. As an order of magnitude, one analysis uses about 2,000-2,500 input and 300-500 output tokens (measured in real runs), i.e. well under $0.001 with `claude-haiku-5-5` or `gpt-6-luna` at list prices.

**Worked examples** (Actor charges only; the start event is negligible):

| Example | Free | Starter | Scale | Business |
|---|---:|---:|---:|---:|
| **A.** 1,000 places, no add-ons | $2.88 | $2.16 | $1.44 | $1.08 |
| **B.** 1,000 places, 2 filters, contacts (800 websites read) | $5.47 | $4.75 | $3.38 | $2.44 |
| **C.** 100 places with details, 5 reviews each, contacts (80 sites), 150 leads, 112 decisive verifications, 100 AI analyses | $3.04 | $1.73 | $1.37 | $1.09 |

In example C you also pay Hunter for 150 e-mails found and 150 verifications on your Hunter plan, and your AI provider for 100 analyses (about $0.05 with Claude Haiku 5.5 at list prices).

Keep control: `maxCostUsd` (at the top of the form), `maxCrawledPlacesPerSearch` (per term, per location), `maxCrawledPlaces`, `maxAnalyses` and `maximumLeadsEnrichmentRecords` all bound the cost before the run starts. Quick estimate: searches = terms x locations (*All main categories* adds 59 terms); places at most = searches x *Number of places*; cost ≈ places x your plan's `place-scraped` price (10,000 places ≈ $21.60 on Starter), before add-ons. `RUN_SUMMARY.billing` lists the billable events and the estimated cost of every run.

### 18. FAQ

**Do I need a Google API key?** No. The Actor reads the public Google Maps web answers.

**Do I need a Hunter.io key?** Only for business leads and mailbox verification. Search, details, contacts, free e-mail checks, social profiles, reviews and images work without any key.

**Why only about 5 reviews per place?** Google embeds its ~5 most relevant reviews in the public place answer. The full review list needs a signed-in browser session, which this Actor does not use. `maxReviews` above ~5 changes nothing, and you are only charged for reviews delivered.

**Are the e-mails verified?** Website e-mails get a free syntax / MX / disposable / role check, which is not a mailbox verification. Mailbox verification is the separate add-on with your Hunter key, and only `valid`, `invalid` and `disposable` results are charged.

**Can the AI invent things?** It is instructed to use only the data provided, and the code drops any review quote not found word for word. With few reviews the result says `dataQuality: "thin"`. Treat the text as a summary of the collected data, not as an audit of the business.

**Why is a Facebook or Instagram profile not enriched?** Those platforms usually show a login wall to logged-out visitors. The link is kept with its source page and not charged.

**What happens if a run is interrupted?** The run state is saved: after a migration or a resume, places already delivered are not delivered or charged again.

**Which export formats?** JSON, CSV, Excel, XML, HTML, RSS from the dataset, plus the interactive visual report.

### 19. Limits and compliance

**What this Actor does not do (honestly)**

- **Reviews**: about 5 per place (the ones Google sends with the place), not the full history.
- **Images**: a few per place; image authors are usually absent.
- **Questions & answers**: not available. Google removed public Q\&A from Maps; `maxQuestions` is accepted for compatibility, ignored and never charged.
- **Popular times**: not available in practice; the field stays `null` unless Google sends it. Nothing is estimated.
- **Social profiles**: public meta only, one logged-out visit; Facebook and Instagram are often login-walled; follower counts only when publicly stated. Profiles are only those linked from the business website.
- **Leads and verification** require your own Hunter.io key; there is no built-in lead database.
- **Free MX check is not mailbox verification.**
- **AI analysis** is built only from the data the run collected (place fields, reviews, website snippet, other places of the search) and needs your own AI key.
- **Filters** use the search-list data (except "with e-mail"), so the "open now" and price-level filters exclude places for which Google sends no value.
- Hotel listings mix in partner reviews (e.g. Tripadvisor) whose `stars` value is empty.

**Memory**: the default run memory is **512 MB**, enough for every add-on. With heavy add-ons (place details, contacts, social profiles, leads, reviews, images, AI analysis) the run checks its memory at start-up, before any Google request: under **256 MB** it stops ("Run again with 512 MB of memory (Run options → Memory)"); under **512 MB** with more than 2,000 places expected (or `maxCrawledPlaces` unset = all places) it stops ("Run again with 1 GB …"). The run is marked failed with `notEnoughMemory` in `FAILED_INPUTS` and **nothing is charged**. Thresholds keep ~2x headroom over measured peaks (all add-ons: 94 MB for 20 places, 106 MB for 100 places).

**Compliance**

- The Actor collects **publicly available data only**: the public Google Maps answers, the business's own public website and public social profile pages. No login, no cookies, no CAPTCHA solving.
- This Actor is an independent tool. It is **not affiliated with, endorsed or sponsored by Google** or by any social network.
- The company contacts add-on returns **business contacts only** (person-like e-mails and personal LinkedIn profiles are left out). Named leads (Hunter add-on, your key) and reviewer names are **personal data**. Under the GDPR and similar laws, **you are the controller** of the data you collect and use: you need a legal basis (often legitimate interest, with a documented balancing test), you must inform the people concerned, and you must respect objections, opt-outs and data-minimisation. Turn `scrapeReviewsPersonalData` off and filter leads by department when you do not need more. Use the data in line with the terms of Hunter.io, your AI provider and the platforms concerned.
- Results are stored only in your run's default dataset and key-value store; nothing is kept by the Actor's developer.
- Your API keys are secret inputs: stored encrypted by Apify and redacted from logs and outputs.

### 20. Business use cases

- **B2B prospecting**: every dentist, accountant or gym of a region, with the website e-mail, the decision-makers' work e-mails and a verification status, ready for your CRM.
- **Web and marketing agencies**: businesses without a website (`website: "withoutWebsite"`), with poor ratings, or with few reviews, to pitch a site, SEO or reputation management.
- **Local SEO and reputation**: ratings, review distribution, review topics and owner reply habits across a market.
- **Competitor benchmarking**: the AI analysis ranks each place against the other places of the same search and quotes what customers praise and criticise.
- **Market research and site selection**: density of a category per city or radius, opening hours, closed businesses.
- **Data teams**: stable Google identifiers (`placeId`, `cid`, `fid`, `kgmid`) for deduplication and joins.

#### Which of our Google Maps Actors should I pick?

| You need | Pick |
|---|---|
| Lead lists with e-mails, worldwide, one flat price per place | [Google Maps Leads Scraper](https://apify.com/badr_xba/google-maps-scraper) |
| French businesses across French cities, results in French | [Google Maps Scraper France](https://apify.com/badr_xba/google-maps-france) |
| Everything above plus named leads, mailbox verification, social profiles and AI competitor analysis with your own keys | **This Actor** |

### Related Actors

Other Actors by the same developer that work well with this one:

- [Business Email Finder](https://apify.com/Badr_xba/business-email-finder) – run it on the website column of your leads to get the public e-mails published on the websites you just collected (pay only per e-mail found).
- [Phone Number Validator & WhatsApp Checker](https://apify.com/Badr_xba/whatsapp-number-scraper) – clean and validate the phone numbers of your leads before calling or messaging.
- [Google Maps Scraper France](https://apify.com/Badr_xba/google-maps-france) – French businesses with French field values and a bilingual form.
- [Ultimate SEO Audit & Website Analyzer](https://apify.com/Badr_xba/ultimate-seo-audit) – audit the websites of your prospects and open the conversation with real findings.

### Feedback and reviews

If this Actor saved you time, a short review on its [Store page](https://apify.com/badr_xba/google-maps-business-leads/reviews) helps other users find it. If something did not work as expected, please open an issue on the [Issues tab](https://apify.com/badr_xba/google-maps-business-leads/issues) with your run ID: we read every issue.

# Changelog

This Actor's version history is a separate document: https://apify.com/badr_xba/google-maps-business-leads/changelog.md

# Actor input Schema

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

Words you would type in the Google Maps search box, one per line: <b>restaurant</b>, <b>dentist</b>, <b>car repair</b>. Each term is a separate search in each location below. You may also write the place inside the term (<b>dentist in Chicago</b>). The same business found by two terms is saved and billed once.

## `searchAllMainCategories` (type: `boolean`):

Adds <b>59 common Google Maps categories</b> to your search terms (restaurant, cafe, bakery, supermarket, pharmacy, doctor, dentist, hospital, hotel, bank, gas station, car repair, hair salon, beauty salon, gym, school, lawyer, accountant, real estate agency, plumber, electrician, clothing store, electronics store, furniture store, hardware store, car dealer, church, mosque, parking, post office... full list in the README). A business found by several categories is saved and billed once. It finds <b>most</b> places of the area, <b>not 100 %</b>: businesses whose only Google category is rare may be missing. It <b>multiplies the searches</b> (59 terms x each location), so the run takes longer and can cost much more: keep <b>Number of places</b> and <b>Maximum cost of this run</b> set. The words are English whatever the language: Google matches them in every country. Billed only as the places found (<code>place-scraped</code>).

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

Where to search, <b>one location per line</b>: a city, region, postal code or country in plain words - <b>Casablanca, Morocco</b>, <b>Paris, France</b>, <b>Texas, USA</b>, <b>10001, USA</b>, <b>Shibuya, Tokyo, Japan</b>, <b>São Paulo, Brazil</b>. Locations are processed one after the other and <b>every search term is searched in every location</b> (2 terms x 3 locations = 6 searches). A business found in two locations or by two terms is saved and billed once. Big areas (a region, a whole country) are split into smaller map squares automatically, so results are not capped at one map view - but they can return a very large number of places: set <b>Number of places</b> and <b>Maximum cost of this run</b>. For a radius or a drawn area, use the <b>Geographic area\*</b> section instead.

## `maxCrawledPlacesPerSearch` (type: `integer`):

Maximum places saved for <b>each search term in each location</b>: 20 with 2 terms and 3 locations = up to 120 places. Leave empty to get every place Google lists (a city can give thousands, a country hundreds of thousands). This number caps your cost: at most this many <code>place-scraped</code> events per term per location.

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

Language Google uses for categories, opening hours and descriptions. It does not limit which places are found. Free.

## `maxCostUsd` (type: `string`):

<b>Set it.</b> A whole country, many locations or <b>All main categories</b> can return <b>hundreds of thousands of places</b>. The run stops cleanly before its charges would go over this amount (paid work is reserved before it starts). Empty = no cap from this field. <b>Estimate:</b> places x price per place, e.g. 10,000 places ≈ $21.60 at $2.16 / 1,000 places (Starter plan), before add-ons - see the <a href='https://apify.com/badr_xba/google-maps-business-leads/pricing' target='_blank'>pricing tab</a> for your plan. Apify's own <i>Maximum cost per run</i> (Run options) is honoured too: the lower limit wins.

## `searchCategories` (type: `array`):

Extra search terms given as categories (<b>plumber</b>, <b>electrician</b>): each one is searched like a search term. Billed only as the places it brings (<code>place-scraped</code>), not as a filter.

## `categoryFilterWords` (type: `array`):

Keep places whose Google category contains one of these words (<b>pizza</b> keeps "Pizza restaurant"). Without a search term, these words are searched too. Counts as 1 filter.

## `searchMatching` (type: `string`):

Useful when you search one brand or business name and want no look-alikes. Counts as 1 filter when not "Off".

## `placeMinimumStars` (type: `string`):

Keep places rated at least this many stars. Counts as 1 filter.

## `placeMinimumReviews` (type: `integer`):

Keep places with at least this many Google reviews. 0 = off. Counts as 1 filter.

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

Businesses without a website are a classic prospect list for web agencies. Counts as 1 filter when not "All places".

## `onlyWithPhone` (type: `boolean`):

Keep places that show a phone number on Google Maps. Counts as 1 filter.

## `openNow` (type: `boolean`):

Keep places Google shows as open at the time of the run. Places with no open state are left out (counted as openNowUnknown in RUN_SUMMARY). Counts as 1 filter.

## `cityMatch` (type: `boolean`):

Google often adds places from nearby towns: keep only places whose city is the city searched. Counts as 1 filter.

## `countryMatch` (type: `boolean`):

Keep only places located in the searched country. Counts as 1 filter.

## `priceLevels` (type: `array`):

Keep places with one of these price levels. Google rarely sends a price level, so places without one are left out. Counts as 1 filter.

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

Leave out places marked temporarily or permanently closed. Counts as 1 filter.

## `scrapePlaceDetailPage` (type: `boolean`):

Adds the description, attributes (accessibility, payments, amenities...), opening hours, star distribution, review tags, owner description, plus code, order-online link, and popular times when Google sends them.

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

Opens the website of each place (home page, then up to four contact / about pages if needed) and returns the company e-mail(s), phone numbers from <code>tel:</code> links and the company's social links (Facebook, Instagram, LinkedIn company page, YouTube, TikTok, X, WhatsApp). Each e-mail gets a free syntax / MX / disposable-domain check.

## `onlyWithEmail` (type: `boolean`):

After the websites are read, keep only places where a company e-mail was found. Turns the contacts add-on on. Counts as 1 filter (<code>filter-applied</code>).

## `scrapeSocialMediaProfiles` (type: `object`):

For the social links found on the business website, read the public page of the company profile (title, description, follower count when it is shown publicly). LinkedIn: company pages only. X (Twitter) is never visited. Turns the contacts add-on on. One <code>social-profile-scraped</code> event per profile enriched; login walls are not billed.

## `maximumLeadsEnrichmentRecords` (type: `integer`):

How many people to return for each business domain (1 to 100). 0 = off. Needs your Hunter.io API key below; without it the add-on is skipped and nothing is billed. Websites on shared platforms (Facebook, Wix, Linktree...) are skipped. You are the controller of the personal data you collect: lawful basis, right to object and data minimisation apply.

## `hunterApiKey` (type: `string`):

From hunter.io (Dashboard, API). Used only for this run, stored encrypted by Apify, never logged. The Actor has no key of its own: without yours, leads and verification are skipped and not billed.

## `leadsEnrichmentDepartments` (type: `array`):

Only people from these departments (data minimisation: ask only for the roles you will contact). Empty = all. Free.

## `leadsSeniority` (type: `array`):

Only people with this seniority. Empty = all. Free.

## `verifyLeadsEnrichmentEmails` (type: `boolean`):

Checks the lead and company e-mails with the Hunter Email Verifier (your key). Billed only for a decisive answer (valid, invalid, disposable); accept-all, unknown and errors are free.

## `emailVerificationApiKey` (type: `string`):

A second Hunter key for verification only. Empty = your Hunter.io API key above.

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

0 = off. Each review has its text, stars, date, owner reply and its date, and photos. A value above ~5 gives no more reviews (and costs nothing more).

## `reviewsSort` (type: `string`):

Re-orders the reviews received. Free.

## `reviewsStartDate` (type: `string`):

A date (<b>2024-05-03</b>) or a period (<b>3 months</b>). Older reviews are left out and not billed. Free.

## `reviewsFilterString` (type: `string`):

Keep only reviews that contain this text. Free.

## `scrapeReviewsPersonalData` (type: `boolean`):

Reviewer name, ID, profile link and photo. Personal data (GDPR): off by default; switch it on only if you have a lawful reason, you are responsible for how you use it (e.g. honour objections and keep only what you need). Free.

## `maxImages` (type: `integer`):

0 = off. Each image has its URL, photo ID, original size and upload date.

## `scrapeImageAuthors` (type: `boolean`):

Name of the person who posted each photo, when Google sends it. Personal data (GDPR): off by default; switch it on only if you have a lawful reason, you are responsible for how you use it (e.g. honour objections and keep only what you need). Free.

## `enableCompetitorAnalysis` (type: `boolean`):

Works best with reviews and company contacts switched on. Failed calls and a missing key are not billed.

## `aiProvider` (type: `string`):

Provider of the key you give below.

## `anthropicApiKey` (type: `string`):

Used when the provider is Anthropic. Stored encrypted, never logged.

## `openaiApiKey` (type: `string`):

Used when the provider is OpenAI. Stored encrypted, never logged.

## `geminiApiKey` (type: `string`):

Used when the provider is Gemini. Stored encrypted, never logged.

## `aiModel` (type: `string`):

Empty = claude-haiku-5-5 (Anthropic), gpt-6-luna (OpenAI) or gemini-3.5-flash-lite (Gemini).

## `maxAnalyses` (type: `integer`):

Places analysed at most in the run. Caps both the <code>competitor-analyzed</code> events and your AI spend.

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

Country of the search. Also used by the "Country must match" filter.

## `city` (type: `string`):

e.g. <b>Pittsburgh</b>. With State, County or Postal code, it replaces the Locations field.

## `state` (type: `string`):

e.g. <b>Pennsylvania</b>.

## `county` (type: `string`):

e.g. <b>Allegheny County</b>.

## `postalCode` (type: `string`):

One postal code, best used with Country.

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

e.g. <b>48.8584</b>. With longitude and radius, only places inside the circle are kept (others are not billed).

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

e.g. <b>2.2945</b>.

## `radiusKm` (type: `integer`):

Radius of the circle around the centre above.

## `customGeolocation` (type: `object`):

A GeoJSON <b>Point</b> (add "radiusKm"), <b>Polygon</b> or <b>MultiPolygon</b>. Coordinates are written \[longitude, latitude].

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

Place links (<code>.../maps/place/...</code>, <code>?cid=...</code>, <code>maps.app.goo.gl/...</code>) or search links (<code>.../maps/search/pizza/@48.85,2.35,14z</code>, searched in the area shown).

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

Google place IDs, one per line (they start with <b>ChIJ</b>).

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

Total cap across all terms, locations, URLs and place IDs. Empty = no total cap.

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

Leave off: Google is read directly, with Apify datacenter addresses only as a fallback.

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

Requests sent to Google at the same time.

## `dedupeAcrossSearches` (type: `boolean`):

A business found by several terms is saved and billed once (matched by place ID, CID or FID).

## `strictArea` (type: `boolean`):

Drop places Google returns outside the requested area (not billed).

## `maxPagesPerTile` (type: `integer`):

Result pages (20 places each) read in one map square before it is split.

## `maxSplitDepth` (type: `integer`):

How many times a full square may be split into four smaller ones.

## `locationQuery` (type: `string`):

Single location of inputs written before the Locations list. Still read: merged with Locations (duplicates removed), every term searched in each.

## `maxQuestions` (type: `integer`):

Accepted for compatibility only: Google no longer publishes Q\&A on Maps. Ignored and never billed.

## `emailVerificationProvider` (type: `string`):

Only Hunter.io ("hunter") is supported; kept so that inputs written before 2026-11-11 still validate.

## Actor input object example

```json
{
  "searchStringsArray": [
    "restaurant"
  ],
  "searchAllMainCategories": false,
  "locations": [
    "Paris, France"
  ],
  "maxCrawledPlacesPerSearch": 20,
  "language": "en",
  "maxCostUsd": "5",
  "searchMatching": "all",
  "placeMinimumStars": "",
  "placeMinimumReviews": 0,
  "website": "allPlaces",
  "onlyWithPhone": false,
  "openNow": false,
  "cityMatch": false,
  "countryMatch": false,
  "skipClosedPlaces": false,
  "scrapePlaceDetailPage": false,
  "scrapeContacts": false,
  "onlyWithEmail": false,
  "scrapeSocialMediaProfiles": {
    "facebooks": false,
    "instagrams": false,
    "youtubes": false,
    "tiktoks": false,
    "linkedins": false
  },
  "maximumLeadsEnrichmentRecords": 0,
  "verifyLeadsEnrichmentEmails": false,
  "maxReviews": 0,
  "reviewsSort": "mostRelevant",
  "scrapeReviewsPersonalData": false,
  "maxImages": 0,
  "scrapeImageAuthors": false,
  "enableCompetitorAnalysis": false,
  "aiProvider": "anthropic",
  "maxAnalyses": 10,
  "countryCode": "",
  "radiusKm": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "maxConcurrency": 8,
  "dedupeAcrossSearches": true,
  "strictArea": true,
  "maxPagesPerTile": 5,
  "maxSplitDepth": 2
}
```

# Actor output Schema

## `visualReport` (type: `string`):

Interactive page: business cards with the place photo and photo gallery when place details or images were collected, rating, review distribution, category, address, contacts, opening hours and price level; filters, charts and CSV/JSON export of the filtered rows.

## `overview` (type: `string`):

Name, category, address, phone, website, rating and reviews count.

## `contacts` (type: `string`):

Website e-mails and phones with their source, free e-mail checks, Hunter.io leads, verifications.

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

One review per row.

## `social` (type: `string`):

One social profile per row (social media add-on).

## `ai` (type: `string`):

AI competitor analysis per place.

## `allFields` (type: `string`):

Every field, as JSON, CSV or Excel.

## `runSummary` (type: `string`):

Places delivered, add-ons billed, searches and failures.

## `failedInputs` (type: `string`):

Searches or places that gave nothing, with the reason.

# 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": [
        "restaurant"
    ],
    "locations": [
        "Paris, France"
    ],
    "maxCrawledPlacesPerSearch": 20,
    "language": "en",
    "maxCostUsd": "5",
    "scrapeSocialMediaProfiles": {
        "facebooks": false,
        "instagrams": false,
        "youtubes": false,
        "tiktoks": false,
        "linkedins": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("badr_xba/google-maps-business-leads").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": ["restaurant"],
    "locations": ["Paris, France"],
    "maxCrawledPlacesPerSearch": 20,
    "language": "en",
    "maxCostUsd": "5",
    "scrapeSocialMediaProfiles": {
        "facebooks": False,
        "instagrams": False,
        "youtubes": False,
        "tiktoks": False,
        "linkedins": False,
    },
}

# Run the Actor and wait for it to finish
run = client.actor("badr_xba/google-maps-business-leads").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": [
    "restaurant"
  ],
  "locations": [
    "Paris, France"
  ],
  "maxCrawledPlacesPerSearch": 20,
  "language": "en",
  "maxCostUsd": "5",
  "scrapeSocialMediaProfiles": {
    "facebooks": false,
    "instagrams": false,
    "youtubes": false,
    "tiktoks": false,
    "linkedins": false
  }
}' |
apify call badr_xba/google-maps-business-leads --silent --output-dataset

```

## MCP server setup

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

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/7ou3eQZOtIuLnhE2A/builds/oPjC8IkZP41xeioQW/openapi.json
