# Local Business Leads from Google Maps: Phone, Email (`bardach_technologies/google-maps-places-scraper`) Actor

Business lead lists from the public Google Maps search: phrases x locations in, one row per place out (name, category, address, coordinates, phone, website, rating, hours, place ID); optional role e-mails and company links from the website; optional split area for more places. USD 2 / 1,000 places.

- **URL**: https://apify.com/bardach_technologies/google-maps-places-scraper.md
- **Developed by:** [Bardach Technologies](https://apify.com/bardach_technologies) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 place delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

Local business leads from Google Maps, read from the public map search: give search phrases and locations (or map search links) and get one row per business place with name, category, address, coordinates, listing phone, website, rating, reviews count, opening hours and place ID, plus, if you want, role e-mail addresses on the business's own domain and its company social links. Places outside the location you asked for are free and marked `wrongLocation`.

**Use it when**

- you need a lead list of local businesses ("dentist" in "Austin, Texas", "bakery" in "10115 Berlin") as a table;
- you want the business e-mail and social links from the company's own website next to each map listing;
- you run many phrase x location searches in one job and want a clear status per search (ok, not found, blocked).

**Do not use it when**

- you need the reviews themselves, reviewer names or photos (this Actor reads none of them, only the rating and reviews count);
- you need personal e-mails, private social profiles or names of owners and employees (none are returned), or mobile numbers (numbers identified as mobile are withheld; where a country's numbering cannot show the type, as in the US and Canada, a delivered number can still be a mobile, see "Phone numbers");
- you need every place in a whole country from one search: one search returns about 185 to 220 places (measured 18.11.2026: restaurants in Berlin 218, hairdressers in London 185); use more locations or `splitArea`;
- you need single place links (`/maps/place/...`) looked up; only search phrases and map search links are supported.

Minimal input:

```json
{"searchStrings": ["dentist"], "locations": ["Austin, Texas"], "maxPlacesPerSearch": 10, "visitWebsite": true}
```

One output row (a real place read on 18.11.2026; the two links are shortened here):

```json
{"type": "place", "status": "ok", "searchString": "dentist in Tbilisi", "searchIndex": 0, "rank": 1,
 "name": "Dream Dental & Aesthetic Group", "category": "Dental clinic", "address": "6-8-10 Nikoloz Baratashvili St, Tbilisi",
 "city": "Tbilisi", "countryCode": "GE", "latitude": 41.6968658, "longitude": 44.8059267,
 "phone": null, "phoneInternational": null, "phoneType": "withheldMobile", "website": "https://<business-site>/",
 "locationMatch": true, "rating": 4.7, "reviewsCount": 725, "openingHours": [{"day": "Monday", "hours": "10 am–10 pm"}],
 "currentStatus": "Open · Closes 10 pm", "businessStatus": "operational", "timezone": "Asia/Tbilisi",
 "placeId": "ChIJbxzeWeQMREARvu_-GxTPYQs", "cid": "13675875143791883583", "url": "https://<map-link>",
 "websiteVisit": "found", "emails": ["info@<business-site>"],
 "emailDetails": [{"email": "info@<business-site>", "type": "role"}], "personalEmailsWithheld": 0, "socialLinks": {"facebook": "https://<page>"},
 "contactDetailsFound": true, "scrapedAt": "2026-11-18T14:02:07+00:00"}
```

Cost in plain words: USD 2 per 1,000 places, plus USD 1 per 1,000 places whose own website was visited and gave contact details the place row does not already have (only with the website visit on). Example: 100 dentists with the website visit on, 60 of them with contact details found: 100 x 0.002 + 60 x 0.001 = USD 0.26, plus Apify's start event (USD 0.00005). Blocked, not-found and wrong-location results cost nothing.

### What it reads

- **The public map search**, the same result list a visitor sees for `google.com/maps/search/<phrase in location>`: the search page, then its result list (20 places per page) page by page, up to your limit. No login, no cookies from accounts, no consent page is ever accepted, no check page or CAPTCHA is solved.
- **With "Visit website for contact details" on: the business's own website** (the link on its map listing): the home page and up to 3 same-site contact, imprint or about pages. robots.txt of each site is respected; every request to one site, robots.txt included, leaves at least 1 second after the previous one; public addresses only. A 401, 403, 407, 429 or check page from that site ends the visit of that site. Phone numbers on the website are not read: a tel link cannot be told apart from a person's mobile number (the map listing's own number follows the rules under "Phone numbers"). Social links are kept only for LinkedIn company pages and for pages whose address carries the website's name (`facebook.com/acme` for `acme.example`); other profiles are left out, so some real company pages under another name are lost. A listing whose "website" is a personal social profile or link page (Facebook, Instagram, X, TikTok, YouTube, a LinkedIn `/in/` profile, `linktr.ee`, `t.me`) is dropped: the row gets `website: null` and `websiteVisit: noWebsite`, no social link and no contact charge. Only a LinkedIn company, school or showcase page kept as the website is not visited: the row gets `websiteVisit: socialWebsite`, that link in `socialLinks`, and no contact charge.

#### Phone numbers

The number comes from the map listing and is classified offline from its numbering plan. `phoneType` says what was found: `landline`, `business` (toll-free, shared-cost or premium), `unknown`, or `withheldMobile`. A number identified as mobile, pager or personal is **withheld**: `phone` and `phoneInternational` are null, and the place row is still delivered and charged, because a mobile on a listing can be someone's own number. This loses real business numbers, most of all in countries where small businesses list mobiles (in 1,031 recorded listing phones about a quarter had a mobile-format prefix; an estimate).

**Limit:** `unknown` means the type could not be determined. The United States and Canada, among others, do not separate mobile and landline numbers, so a delivered `unknown` number **can be a mobile number**. Number ranges also change, so the classification can be wrong in rare cases.

Names, categories, addresses, status lines and opening hours have e-mail addresses and phone numbers masked (`[e-mail removed]`, `[phone removed]`). Website links lose login parts; a query or fragment with private content is cut, a path with a contact detail leaves only the site's address, and numeric or local addresses are dropped.

#### E-mail addresses: role mailboxes only

E-mails come from mailto links and page text of the business's own site. Every returned address has a `type` in `emailDetails`:

- `role`: a mailbox of the business, not of a person: the part before the @ holds role words only (info, contact, hello, office, sales, support, booking, reservations, mail, admin, team, enquiries, info1 or sales.support, in English, German, French, Spanish, Italian, Portuguese, Dutch and Polish, for example kontakt, buero, vertrieb, reservierung, contacto, ventas, prenotazioni, accueil);
- `named`: looks like a person's address (christa@, john.smith@, info.anna@) or is not a known role word: never returned;
- `freemail`: a mailbox at a free-mail provider (gmail.com, gmx.de, libero.it, orange.fr ...), which may belong to a private person: never returned.

Only `role` addresses on the business's own domain are returned; `personalEmailsWithheld` counts the others that were seen and dropped, including addresses on another company's domain. There is no switch to get the others. The word list is a heuristic: an unusual role word or a variant such as info.berlin is withheld, which loses some real business mailboxes. Using contact data (storing it, e-mailing or calling) is your legal responsibility, for example under the GDPR and e-mail marketing rules in your country.

### Output

One `place` row per place in the asked location (charged; with the website visit on it also carries `websiteVisit` and `websitePagesRead`, the number of website pages read), one short free `wrongLocation` row per place outside it (place ID, the location asked and the reason, none of the place's details) and, after the places of each search, one free `search` row:

| search row field | meaning |
|---|---|
| `status` | `ok`, `notFound` (the search found no places), `wrongLocation` (every place returned lies outside the asked location; free), `blocked` (check page, rate limit, consent page, denial, unexpected redirect, page without a result list, unreadable answer or a server error that did not end; never retried with another route), `notTried` (the site refused earlier in the run, so no request was sent) or `error` (the chosen proxy gave no usable address and no request was sent, or the search could not be processed; free) |
| `locationAsked`, `placesWrongLocation`, `siteRefused` | the location compared, the free wrong-place rows of this search, and whether the site refused during this search |
| `placesDelivered`, `placesFound`, `duplicatesSkipped` | place rows written, places read, places already delivered by an earlier search of this run |
| `placesMalformed` | entries of the site's list that could not be delivered (no usable name or place ID); left out and free |
| `pagesRead`, `requests`, `stopReason` | result pages, requests (network and server errors are asked again up to 3 times; a refusal never), and why it stopped: `limit`, `end`, `pageCap`, `blocked`, `wrongLocation`, `maxCharge` |

#### Wrong places are free

The map search answers a location it does not know with places from somewhere else (seen live on 18.11.2026: a made-up location returned 20 places in Rexburg, US). So every place is compared with the location you asked for, from `locations`, from the end of a phrase ("pizza in Rome") or from the end of the phrase in a map search link. Only places whose own address fields name it are `place` rows with `locationMatch: true` and are charged. The others are free rows of type `wrongLocation` (`locationMatch: false`) that hold only `placeId`, `locationAsked` and `reason`, get no website visit, and a page holding only such places ends that search's paging and split area.

The comparison is without case or accents: every comma part of the location must equal a whole part of the place's address or its city, district or state field, so "Paris, Texas" needs both and "York" is not confirmed by "New York". US states and common countries also match by code. A part with the word "city" is a city name: "New York City" needs that name, the city field New York or an address part New York followed by a region, so a state or country of the same name does not confirm it (Albany, NY is not New York City; Guadalajara is not Mexico City). The street never counts, also when the address gives it only as a numbered first part. Real results can therefore be treated as wrong and given away free: another language or spelling (Wien and Vienna), a longer official name (Frankfurt and Frankfurt am Main), a district or region the address does not name (Manhattan, Bavaria), a qualifier outside the built-in lists, or a neighbouring town inside the search area. A location without a qualifier cannot be told apart from another place of the same name (Paris alone matches Paris, Texas). Searches that name no location are not checked (`locationMatch: null`). In a phrase, "in downtown Austin" asks for Austin, and a time ("open in the evening") is not a location. `wrongLocation` rows are not leads and hold no place details; if many appear, reword the location.

The run summary (key-value store record `OUTPUT`) says `complete`, `stoppedEarly` (your maximum charge) or `incomplete` (a search was blocked or only partly read, was not tried, or returned only wrong places), with counts per status, the blocked map cells and the events charged. If no search delivered a charged place because all were blocked, not tried, wrong-location or failed, the run ends as failed with that message.

`businessStatus` comes from the structured data, in every language: `permanentlyClosed` from the site's closed flag; `temporarilyClosed` or `permanentlyClosed` when the status line or closed badge says so (words in the main European languages); `closed` for a closed badge in other wording; `operational` only when there is no closed flag and opening hours are present; otherwise `null` (unknown, for example a place that shows no opening hours). A status text alone never makes a place `operational`. Measured 18.11.2026: two permanently closed places in English and German came out `permanentlyClosed`; no temporarily closed place was found live, so that case rests on the status words only.

`name` is the label of the result list; for 2 of 25 places checked by hand it was longer than the name on the place page ("Santa Rita Valencia" vs "Santa Rita"). `category` is the first category of the list; for 1 of 25 the place page showed another category first. Both are kept as the list shows them.

### How many places one search returns, and split area

One search returns about **185 to 220 places**: the site's list ends there with an empty page (measured 18.11.2026: restaurants in Berlin 218, hairdressers in London 185). `maxPlacesPerSearch` above that is not reached without split area.

`splitArea` (default off) covers a larger area: after the normal search, when its list ended below your limit, the phrase is searched again in `splitGridSize` x `splitGridSize` map viewports (2 to 5, at most 25 cells) laid over the area of the first list's places, and all places are merged once per place ID. Each place is delivered and charged once. With split area on, `maxPlacesPerSearch` can go up to 5,000 for the whole search. Start URLs are never split.

Measured live 18.11.2026 (restaurant in Berlin, grid 2 x 2, from this Mac, about one request per 1.1 seconds): **539 places instead of 199**, 0 duplicates, 45 requests in 58 seconds, 4 of 4 cells read.

Cost note: every cell is one more map search (one search page plus up to 25 result pages, usually 8 to 12), so the run takes longer, and more places means more charges: 539 places cost USD 1.08 where the single search cost USD 0.40. Set `maxPlacesPerSearch` and your maximum charge per run. Map cells can be blocked: the site sometimes answers one cell with a check page or an unreadable answer. A blocked cell is not retried, and the cells after it are not asked (a refusal ends the run's map requests; the pages and cells already read are kept). It is free, is counted in the search row (`areaCellsBlocked`) and in the run summary (`areaCellsBlocked`, `searchesPartlyBlocked`), marks the search `stopReason: blocked`, and the run ends as `incomplete` (a partial result) with the count in its status message. The places of the other cells are delivered and charged once each; run the search again later to fill the gap.

Measured on Apify 18.11.2026 (restaurants in Vienna, default Apify Proxy): split area 2 x 2 gave **508 places in 163 s** with 1 of 4 cells blocked; split area 3 x 3 gave **893 places in 247 s** after two blocked attempts (an attempt whose first search page was blocked fails and costs nothing). No duplicates; each place was charged once. These figures were taken with the old cell retry, which no longer exists: a blocked cell now ends the search, so expect fewer places per split-area search than these figures. Not re-measured on Apify.

### Blocking and measured success (honest limits)

Measured 18.11.2026:

- From this Mac (home connection): 11 of 13 searches succeeded; the 2 failures were scrambled (unreadable) answers, not check pages.
- On Apify with the datacentre proxy: 10 of 10 searches succeeded.
- On Apify without proxy: 9 of 10 searches succeeded (the failed one got a scrambled answer 4 times, on new proxy sessions, and became a free `blocked` row).
  These counts were measured when the Actor retried on a new proxy session; it no longer does. A check page, rate limit (429), any other 4xx except 404 and 410, an unexpected redirect, consent page, unreadable answer or page without a result list now ends that search at once as a free `blocked` row (places already read are kept), and every later search of the run is `notTried` with no request, also after a platform restart (the refusal is saved at once). Network errors and server errors are asked up to 3 times; a server error that does not end, or 3 requests in a row that stay unanswered, stop the run's requests too. The success rate without those retries was not measured. Residential proxy, runs with hundreds of searches, and speed and memory at large inputs were not measured. The site may answer large or fast runs with check pages; that is reported as `blocked` and never charged.

### Proxy

`proxyConfiguration` defaults to **no proxy**: the map search requests go direct (measured on Apify 18.11.2026: 9 of 10 searches). You can choose Apify's datacentre group or your own proxy URLs; every other Apify group is refused, Apify Proxy without a group means the datacentre group, and the whole run uses one proxy session. A proxy that refuses the connection (for example HTTP 407) is a refusal: it is not retried and later searches are `notTried`. If the chosen proxy cannot be set up or gives no address, no map request is sent and the searches get free `error` rows; the run never falls back to a direct request. Website visits go directly to each business site.

### Pricing

Pay per event:

- `place-scraped`: USD 0.002 per place row written (USD 2 per 1,000).
- `contact-details-found`: USD 0.001 per place whose own website was actually visited and gave at least one returned role e-mail or company social link that the place row does not already carry (a social link equal to the listing's website does not count), only when the website visit is on.
- `apify-actor-start`: USD 0.00005, charged by Apify at every start, also for empty or bad input.
  Search rows, `wrongLocation` rows, blocked and not-found searches and cells, unreadable websites, social-page websites, withheld personal e-mails and places already delivered in the same run cost nothing. Rows are charged right after they are written, in batches of up to 20; your maximum charge per run is never exceeded (the run stops cleanly and lists the searches not started). After a crash or migration the run resumes from its own output: finished searches are not read again and no place is written or charged twice (a batch written just before a crash is charged once on the restart, using the platform's own charged counts; this restart path was tested with fakes only).

### Input

| field | meaning |
|---|---|
| `searchStrings` | what to look for, up to 200; a phrase may include its place ("pizza in Rome") |
| `locations` | areas, up to 200; every phrase is searched in every location (at most 1,000 searches per run) |
| `startUrls` | map search links (`google.com/maps/search/...`, other country domains too), up to 200 |
| `maxPlacesPerSearch` | 1 to 500, default 20 (one search returns about 185 to 220); up to 5,000 with `splitArea` (the code enforces both limits; the input form's own limit field shows 5,000) |
| `language` | en, de, fr, pt-BR ... (default en) |
| `countryCode` | optional two-letter country bias |
| `visitWebsite` | default off |
| `maxWebsitePages` | 1 to 4 pages per website, default 2 |
| `splitArea` | default off: search the phrase again in a grid of map cells and merge once per place |
| `splitGridSize` | 2 to 5 (cells = size x size, at most 25), default 3 |
| `proxyConfiguration` | default no proxy (direct); only the datacentre group or your own proxy URLs |

Empty input (no phrases and no links) ends at once and charges nothing. For the Store test the prefill searches "dentist" in "Austin, Texas" with 10 places (about USD 0.02).

The map data is read from the publicly shown search result list of the site; this Actor is not affiliated with or endorsed by the map provider. Using the contact data is your legal responsibility (for example the GDPR and e-mail marketing rules in your country).

### How to scrape Google Maps places

1. Enter **search phrases** and **locations**, or paste map search links.
2. Set `maxPlacesPerSearch`. One search returned about 185 to 220 places when measured; use more locations or `splitArea` for more.
3. Optional: switch on `visitWebsite` for contact details from each business's own website.
4. Set a maximum charge per run and start. Read the place rows, the free `search` rows and the `OUTPUT` summary.

### Use cases

- **Local lead lists:** `{"searchStrings": ["dentist"], "locations": ["Austin, Texas"], "maxPlacesPerSearch": 10, "visitWebsite": true}`.
- **Several markets in one job:** every phrase is searched in every location, with one status row per search.
- **Denser coverage of one city:** `{"searchStrings": ["restaurant"], "locations": ["Berlin"], "maxPlacesPerSearch": 600, "splitArea": true, "splitGridSize": 2}`.

### FAQ

**Does it return reviews?** No, only the rating and the reviews count.

**Does it return personal e-mail addresses?** No. Only role mailboxes on the business's own domain are returned, and no website phone numbers or personal profiles. Using contact data is your legal responsibility.

**Why are places marked `wrongLocation`?** Their address does not name the location you asked for. They are free and show only the place ID and the reason. Try the name as it appears in local addresses.

**What does a blocked search cost?** Nothing. It gets a free `blocked` row; Apify's start event is still charged for the run.

**Can I look up a single place link?** No. Only search phrases and map search links are supported.

# Actor input Schema

## `searchStrings` (type: `array`):

What to look for, one per entry, for example dentist or vegan restaurant (1 to 200 characters each, up to 200 entries; repeated phrases count once). With locations, every phrase is searched in every location. A phrase can hold its own place too: pizza in Rome. Empty together with start URLs: the run ends at once and charges nothing.

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

Areas to search in, one per entry, for example Austin, Texas or 10115 Berlin (up to 200). Each phrase x location pair is one search; at most 1,000 searches per run. Empty: the phrases are searched as written. Places whose address does not name the location are free wrongLocation rows, so use the name local addresses use.

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

Optional map search links (https://www.google.com/maps/search/..., other country domains such as google.de work too), up to 200. Each link is one search. Single place links (/maps/place/...) are not supported.

## `maxPlacesPerSearch` (type: `integer`):

Most places delivered (and charged, USD 0.002 each) per search, default 20. One search returns about 185 to 220 places (measured 18.11.2026: restaurants in Berlin 218, hairdressers in London 185). Up to 500 without split area; up to 5,000 with split area on.

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

Language of category names, opening hours and status texts, as a code such as en, de, fr or pt-BR. Default en.

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

Optional two-letter country code (us, de, gb ...) that biases the search toward that country. Empty: no bias.

## `visitWebsite` (type: `boolean`):

Open each place's own website (home page plus up to 3 contact, imprint or about pages) and add role e-mail addresses on its own domain and its company social links. Website phone numbers, personal e-mails and personal profiles are not returned. Costs USD 0.001 more per place only when the visit found something the place row does not already have. robots.txt is respected, requests to one site are at least 1 second apart, and a refusal by that site ends its visit.

## `maxWebsitePages` (type: `integer`):

Pages read per website when visiting is on: 1 = home page only, up to 4 (home page + 3 contact pages). Default 2. Pages are free; only found contact details are charged.

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

Proxy for the map search requests. Default: none (direct; 9 of 10 searches read on Apify, 18.11.2026). Only Apify's datacentre group or your own proxy URLs are accepted, with one session for the whole run. If the chosen proxy cannot be set up nothing is sent; it never becomes a direct request. Nothing is retried on another route after a refusal, a check page or a rate limit (the search ends and the run asks for nothing more, also after a restart). Website visits go directly, without proxy.

## `splitArea` (type: `boolean`):

Default off. On: after the normal search the phrase is searched again in a grid of map cells over the area of the first results and places are merged once per place ID (each charged once). Measured 18.11.2026: restaurant in Berlin, 2 x 2 grid, 539 places instead of 199. Each cell is one more map search, so the run takes longer and costs more (more places); set Max places per search and your maximum charge. Start URLs are not split.

## `splitGridSize` (type: `integer`):

Cells per side with split area on: 2 = 4 cells ... 5 = 25 cells (hard cap). Default 3 (9 cells).

## Actor input object example

```json
{
  "searchStrings": [
    "dentist"
  ],
  "locations": [
    "Austin, Texas"
  ],
  "startUrls": [],
  "maxPlacesPerSearch": 10,
  "language": "en",
  "visitWebsite": false,
  "maxWebsitePages": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "splitArea": false,
  "splitGridSize": 3
}
```

# Actor output Schema

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

One row per place (type place, charged), followed by one free row per search with its status (ok, notFound, blocked, notTried) and counts.

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

How the run ended (complete, stoppedEarly or incomplete), each search's status and the events charged.

# 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 = {
    "searchStrings": [
        "dentist"
    ],
    "locations": [
        "Austin, Texas"
    ],
    "maxPlacesPerSearch": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bardach_technologies/google-maps-places-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 = {
    "searchStrings": ["dentist"],
    "locations": ["Austin, Texas"],
    "maxPlacesPerSearch": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("bardach_technologies/google-maps-places-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 '{
  "searchStrings": [
    "dentist"
  ],
  "locations": [
    "Austin, Texas"
  ],
  "maxPlacesPerSearch": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call bardach_technologies/google-maps-places-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bardach_technologies/google-maps-places-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/wLokKFzstN6dADbCp/builds/SBcnd9RBnJ4JFD8cc/openapi.json
