# Apple Maps Places & Business Leads — Phones, Emails, Ratings (`kestrel/apple-maps-scraper`) Actor

Search Apple Maps for local business leads by keyword and city or ZIP code. One row per place: name, category, phone numbers, website, address, coordinates, rating, opening hours. Optional emails and social links from websites. Free filters: no website, min rating, open now; only-new monitoring.

- **URL**: https://apify.com/kestrel/apple-maps-scraper.md
- **Developed by:** [Tedj MEABIOU](https://apify.com/kestrel) (community)
- **Categories:** Lead generation, Travel, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 places

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

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

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

## How to integrate an Actor?

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

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

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

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

# README

## Apple Maps Places & Business Leads — Phones, Emails, Ratings

An Apple Maps places scraper built for lead lists. Give it search terms and locations (a city, a ZIP code or a postcode) and it returns one flat row per business: name, category path, phone numbers, website, full address in parts, coordinates, rating and rating count, opening hours, amenities and whether the listing can still be claimed. If you ask, it also returns the emails and social links found on each business's own website. Use it for Apple Maps business leads and local business leads, as an Apple Maps data source next to Google Maps, or as an Apple Maps API alternative that needs no developer account.

- **$0.0025 per place, place card included.** Ratings, hours, categories and amenities cost nothing extra. No start fee, no per-row storage fee.
- **$0.003 per contact, only when one is found.** A place with no website, an unreachable website or a website with nothing on it costs $0 extra.
- **Every filter is free and runs before billing.** A place your filters reject is never charged, and the status row says how many each filter removed.
- **Charged equals delivered.** Rows are charged immediately before they are written, and the run never bills past the spending limit you set.

**Last verified working: 2026-11-16.** That day's release gate: 23 searches in 12 countries, 460 of 460 rows complete, 0 failed requests.

### Apple Maps scraper for AI agents: which input answers which request?

Use this actor when a user wants businesses from Apple Maps: lead lists by trade and place, phone numbers and websites, ratings and opening hours, places without a website, or a watch for newly listed businesses. Do not use it for reviews text (only the rating and its count are returned), for driving directions, or for map tiles and screenshots.

| user request | input |
|---|---|
| "50 dentists in Austin with phone numbers" | `{"searches": ["dentist"], "locations": ["Austin, TX"], "maxPlacesPerSearch": 50}` |
| "coffee shops near SW1A 1AA" | `{"searches": ["coffee shop"], "locations": ["SW1A 1AA"]}` |
| "plumbers in 10001 and 10002 with emails" | `{"searches": ["plumber"], "locations": ["10001", "10002"], "enrichContacts": true}` |
| "restaurants in Lisbon rated 4.5+ that have a website" | `{"searches": ["restaurant"], "locations": ["Lisbon, Portugal"], "minRating": 4.5, "hasWebsite": "yes"}` |
| "salons in Miami with NO website" (web design prospects) | `{"searches": ["hair salon"], "locations": ["Miami, FL"], "hasWebsite": "no"}` |
| "every gym in Chicago, not just the top 100" | `{"searches": ["gym"], "locations": ["Chicago, IL"], "maxPlacesPerSearch": 1000}` |
| "new bakeries in Berlin every week" | `{"searches": ["bakery"], "locations": ["Berlin"], "onlyNew": true, "monitorKey": "berlin-bakeries"}` on a weekly schedule |
| "details for this Apple Maps link" | `{"startUrls": ["https://maps.apple.com/place?auid=13210819010405908588"]}` |
| "just 10 results, as cheap as possible" | add `"maxItems": 10` (total rows across all searches) |

What a row is: `type: "place"` rows are businesses, each charged once. Every search also writes one free `type: "status"` row that accounts for what Apple Maps listed (`found`), what filters removed (`filtered`, `filtered_by`), `duplicates`, `already_seen` places (onlyNew), `details_failed`, `delivered` and `charged`. It also has a `status` of `ok`, `no_results`, `unknown_location`, `limit` or `error`, with a `note` and an `error` text, plus `target` (for a pasted link), `requested` (the cap), `pages` read, `grid_cells` and `contacts_found`. A search with no results costs nothing. A location Apple Maps does not know ends that search with `unknown_location` and $0. A run whose only problem is its input ends green with a message starting `Input problem`.

### Apple Maps places output: what is in a row?

Each place row carries, in this order:

- **Identity:** `place_id` (the Apple Maps place id, stable, I…), `muid` (the auid in maps.apple.com links), `apple_maps_url`, `name`, `rank` (position in Apple's list for that search), `search_term` and `search_location`.
- **Category:** `category` (what Apple Maps shows, e.g. "Cosmetic Dentist"), `categories` (the whole path, e.g. Cosmetic Dentist, Dentistry, Dental Clinic, Dentist), `category_id` (e.g. health_care.dentistry.dental_clinic.dentist) and `poi_category` (Apple's coarse class such as Restaurant or Cafe, often empty for trades).
- **Address:** `address` (one line), `street`, `house_number`, `street_name`, `district`, `city`, `county`, `state`, `state_code`, `postal_code`, `country`, `country_code`, `lat`, `lng`, `timezone`, plus `distance_km` from the centre of the searched location.
- **Contact (the Apple Maps phone numbers):** `phone` (E.164, e.g. +15124762336), `phone_formatted`, `phones_alt` (other numbers on the listing), `website` and `domain`.
- **Reputation:** `rating` (0–5), `rating_count` and `rating_source`, the partner the rating comes from (yelp, tripadvisor, booking, foursquare, tabelog …, or apple). Apple's own rating is in `apple_rating_percent` (share of people who recommend the place), with `apple_rating_count` and `apple_rating_categories` per aspect, e.g. `{"Customer Service": 83, "Atmosphere": 77}`. When Apple's percentage is the only rating, `rating` is that percentage / 20.
- **Hours (the Apple Maps opening hours):** `opening_hours` (`{"monday": "09:00-17:00", "sunday": "Closed", …}`, Monday first, "Open 24 hours" when it is) and `open_now` at the time of the run in the place's own time zone.
- **More from the place card:** `description`, `amenities` (e.g. "Accepts Apple Pay", "Wheelchair Accessible", "Delivery"), `image_url`, `photo_count`, `brand_id` (set for chains and brands Apple knows), `claimable` (true when Apple still offers the listing on Apple Business Connect) and `details_status` (ok, not_requested or unavailable).
- **Sources:** `source_vendor` and `source_id` name the data partner Apple attributes the listing to. `yelp_url` links the Yelp page when that partner is Yelp.
- **Helpers:** `lead_flags` (no_website, low_rating under 4, few_ratings under 10, claimable) and `fetched_at`.
- **With enrichContacts:** `emails` (each `{email, type: role|named, source_url}`), `email_primary`, `phones_from_site`, `contact_page_url`, `facebook`, `instagram`, `linkedin`, `x`, `youtube`, `tiktok`, `whatsapp` and `enrichment_status`.

Fill rates measured on the 460 rows of the release gate (23 searches, 12 countries):

| field | filled |
|---|---|
| phone | 98.5% |
| website | 94.8% |
| category path, city, time zone | 100% |
| opening hours | 92.8% |
| rating with count | 83% |
| amenities | 78.7% |
| photo | 77% |
| Apple's own rating % | 33.9% |

Ratings come from Apple's partners where Apple has no ratings of its own: on the gate, 146 from Yelp, 156 Apple percentages, 39 Tripadvisor, 14 Tabelog, 13 Booking and a few others.

### Apple Maps leads by city, ZIP or postcode: how do I get them?

Put the trade in `searches` and the place in `locations`. Every term runs in every location, so `{"searches": ["dentist", "orthodontist"], "locations": ["Austin, TX", "Round Rock, TX"]}` is four searches. A location can be a city, a neighbourhood, a ZIP code, a UK, Canadian or French postcode, or an address. The actor looks it up on Apple Maps first, then searches inside that area. A postcode search stays close: on the gate, the median result sat 0.4–1.2 km from the centre for five of six postcodes (5.6 km for gyms in 90210). A phrase that already says where also works with `locations` left empty: "dentists in Austin, TX", "pizza near 10001" or "cafes Berlin".

`maxPlacesPerSearch` (default 100) counts delivered places after filters. `maxItems` is the total across all searches; the Apify API and AI agents often send it. With `maxItems`, searches run one at a time in the order given and the run stops as soon as the total is reached. A search the total never reaches costs nothing and is marked `limit`.

```json
{
  "searches": ["dentist"],
  "locations": ["Austin, TX", "78701", "SW1A 1AA"],
  "maxPlacesPerSearch": 50,
  "hasPhone": "yes"
}
```

`language` (default "en") sets the language of names, categories and amenities. Search terms work in the local language too: "Zahnarzt in München" returned 20 dentists with `language` "en" on the gate.

### Apple Maps emails: how does contact enrichment work?

With `enrichContacts` on, the actor reads each place's own website after the place passes your filters and before it is charged. It reads the home page, then up to `maxPagesPerSite` − 1 contact, about and imprint pages. robots.txt is honoured, each site gets one request per second, and a slow site is abandoned after 40 seconds. It collects emails (ranked: the business's own domain first, mailto links first), phone numbers linked on the site, a contact page, and Facebook, Instagram, LinkedIn, X, YouTube, TikTok and WhatsApp links.

The `contact-found` fee ($0.003) is charged only when at least one email or social/WhatsApp link was found (`enrichment_status: "found"`). On the release run, 33 of 40 Denver dentists had one, from 147 pages read in 78 seconds. `none_found`, `no_website`, `site_unreachable`, `blocked_by_robots` and `social_only` (the listed website is itself a social profile) cost nothing beyond the place. A chain's branches that share one website are read once.

```json
{
  "searches": ["plumber"],
  "locations": ["Denver, CO"],
  "maxPlacesPerSearch": 100,
  "enrichContacts": true
}
```

### Businesses without a website, claimable listings and ratings: lead filters

All filters are free and are applied before billing:

- `hasWebsite`: "no" keeps only businesses without a website (prospects for web design and marketing agencies); "yes" keeps only those with one.
- `hasPhone`: "yes" or "no".
- `minRating` (0–5) and `minRatingCount` keep established, well-rated places. A place without a rating never passes `minRating`.
- `openNow` keeps places open at run time in their own time zone.
- `claimable`: "yes" keeps listings Apple still offers to claim on Apple Business Connect, i.e. owners who have not taken over their listing (prospects for local SEO). On the gate, 357 of 460 listings were claimable.
- `categoriesInclude` and `categoriesExclude` match words in the category path, e.g. `["dentist"]` or `["orthodontist"]`.
- `nameContains` and `nameExcludes` match the business name. Use `nameExcludes` for chains: `["Starbucks", "McDonald"]`.
- `excludePlaceIds` takes ids you already have, and they are never delivered again.

With filters the actor keeps reading Apple's list, up to 100 places per query, until `maxPlacesPerSearch` matching places are delivered or the list ends.

### Apple Maps ratings and opening hours: where do they come from?

Apple Maps search answers carry names, addresses, phones, websites and coordinates. Ratings, opening hours, the category path, alternate phones, amenities, photos and the claim status live on each place's card. With `includeDetails` (on by default, free) the actor reads the card of every place it is about to deliver: one more request per place, about half a second. Turn it off for the fastest possible lists with search fields only. Any rating, hours or claimable filter turns it back on, because those filters need the card.

### Can I monitor for new businesses on Apple Maps?

Yes. Set `onlyNew: true` and a `monitorKey` (for example "austin-dentists"), then schedule the same input daily or weekly. Each run delivers and bills only places that no earlier run with that key delivered; the rest are counted as `already_seen` and cost nothing. The memory is a named key-value store in your account that keeps up to 200,000 ids per key. The `monitorKey` is stored encrypted. It catches places that are new to Apple's list for that search, which includes newly opened businesses and places that just moved into the top results.

### FAQ: how many places can one search return, and what is full coverage?

Apple Maps answers a query with at most 100 places (5 pages of 20). To get more, `fullCoverage` splits the location into a grid of cells, up to `maxGridCells` (default 16, max 100), each `gridCellKm` wide or sized automatically. It searches every cell restricted to that cell, nearest the centre first, until `maxPlacesPerSearch` places are delivered. It turns on by itself when `maxPlacesPerSearch` or `maxItems` is above 100. Every cell is one more Apple Maps query; you pay only for delivered places.

#### What happens with a small town, or a location that does not exist?

A small town gives fewer places, and the status row says how many Apple listed. A location Apple Maps does not know ends that search as `unknown_location` with $0 charged, never with places from somewhere else. Apple's geocoder answers almost any text with something ("Nowhereville" with a village in Myanmar), so the actor keeps a location only when the answer shares a word with what you typed or reads close to it (München and Munich match).

#### What if Apple Maps throttles a request?

The actor uses 4 proxy sessions at about one request per second each. A 429 or 403 pauses every session (2 s, doubling, max 30 s) and halves the pace. After 3 refusals in a row the remaining requests move to an Apify residential proxy, when your account has one. A run Apple refuses throughout fails with that reason and charges nothing for undelivered places.

#### Does it work outside the United States?

Yes. The release gate covered the US, UK, Germany, France, Canada, Australia, Japan, the Netherlands, Ireland, Portugal, Austria, Spain and the UAE: 23 of 23 searches returned complete rows.

#### Is it legal to scrape Apple Maps?

The actor reads public business listings the way the Apple Maps website does, without a login, and returns business contact data, not personal profiles. Places' own websites are read only where robots.txt allows. Whether your use is lawful depends on your jurisdiction and purpose: email and phone outreach is regulated (GDPR, CAN-SPAM, TCPA and local rules), so check yours. This is not legal advice.

#### Why does a row have no rating, no hours or no website?

The place card has none. About 17% of places have no rating from Apple or a partner, and about 7% publish no hours. A row is never padded with guesses: absent values are null and absent lists are empty.

#### Can I export Apple Maps to CSV or Excel?

Yes. Every dataset downloads as CSV, Excel, JSON or XML from the run's Storage tab or the API (`/datasets/{id}/items?format=csv`). The Overview, Leads & contacts, Ratings & hours, Location and Run status views pick the columns for each use.

### Pricing: what does a run cost?

Pay per event, with no start fee:

| event | price | when |
|---|---|---|
| `place` | $0.0025 ($2.50 per 1,000) | each delivered place, with its card |
| `contact-found` | $0.003 | each place where enrichContacts found an email or social link |

20 places cost $0.05. With contact enrichment, 33 of 40 Denver dentists yielded a contact on the release run (82%), so those 40 cost $0.20; at that rate 1,000 enriched places cost about $5, and trades with fewer websites cost less. Proxy and compute are included. Higher Apify plans pay less per place (down to $0.002). Filtered places, duplicates, already-seen places, empty searches and unknown locations are free. Set a maximum cost per run when you start it (`maxTotalChargeUsd`): the actor charges only what still fits and stops there.

### Apple Maps API alternative: run it from Python, JavaScript or curl

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("kestrel/apple-maps-scraper").call(run_input={"searches": ["dentist"], "locations": ["Austin, TX"], "maxPlacesPerSearch": 50})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row["type"] == "place": print(row["name"], row["phone"], row["website"], row["rating"])
```

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

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('kestrel/apple-maps-scraper').call({ searches: ['coffee shop'], locations: ['SW1A 1AA'], maxPlacesPerSearch: 20 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((r) => r.type === 'place').map((r) => [r.name, r.phone, r.opening_hours]));
```

curl, synchronous, rows straight back:

```bash
curl -X POST "https://api.apify.com/v2/acts/kestrel~apple-maps-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searches": ["plumber"], "locations": ["10001"], "maxPlacesPerSearch": 20, "hasWebsite": "no"}'
```

Inputs saved for another Apple Maps actor work unchanged: `searchQueries` (`[{"query": "dentist", "location": "Brooklyn, New York"}]`), `maxResults` and `placeUrls` are read as searches, `maxPlacesPerSearch` and `startUrls`. Google Maps style `searchStringsArray` and `locationQuery` are read as `searches` and `locations`. `proxyConfiguration` defaults to Apify's datacenter proxy, which Apple Maps answers; residential is not needed.

### Apple Maps scraper in n8n, Make and AI agents (MCP)

To use this Apple Maps scraper in n8n or Make, add the Apify node or module "Run an Actor and get dataset items" with `kestrel/apple-maps-scraper` and one of the inputs above, then keep rows where `type` is `place`. AI agents reach it through the Apify MCP server: the input names are self-explanatory, `maxItems` is honoured as a total cap, unknown input fields are ignored rather than failing the run, and the status rows tell the agent why a search returned nothing.

### Pasted Apple Maps place links and ids

`startUrls` takes Apple Maps place links (`https://maps.apple.com/place?auid=…`, `?place-id=I…`), maps.apple short links, bare muids and place ids, and reads each one whole for $0.0025. Use it to refresh places you already track, or for "details for this link" requests.

### What this Apple Maps scraper does not do

- No review texts or reviewer names, only the rating, its count and the per-aspect Apple scores.
- No guides, directions, transit or map images.
- No guarantee that a query has as many places as you ask for. The status row says what Apple listed.
- No personal data beyond what a business publishes on its listing and its own website.

### Support

Open an issue on the actor's Issues tab with the run id. The status rows and the SUMMARY record (`places`, `found`, `filtered`, `details_failed`, `http`) usually show what happened. See the changelog for what changed in each version.

# Changelog

This Actor's version history is a separate document: https://apify.com/kestrel/apple-maps-scraper/changelog.md

# Actor input Schema

## `searches` (type: `array`):

What to look for, one per entry, as typed into Apple Maps: \["dentist"] or \["coffee shop", "plumber"]. Every term is searched in every entry of `locations`. A phrase that says where works with `locations` left empty: "dentists in Austin, TX", "cafes Berlin", "pizza near 10001". Use for "find N <businesses> in <place>".

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

Where to search, one per entry: a city ("Austin, TX", "Berlin"), a neighbourhood ("Shibuya, Tokyo"), a ZIP or postcode ("10001", "SW1A 1AA", "75001 Paris") or an address. Add the state or country when a name is ambiguous. A location Apple Maps does not know ends that search with an explanation and $0 charged, never with places from somewhere else.

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

Places delivered per search term per location, counted AFTER filters (30 asked = up to 30 matching places delivered). Cost: N × $0.0025, plus $0.003 for each place where enrichContacts finds an email or social link. Apple Maps lists at most 100 places per query; above 100 the location is split into a grid automatically (fullCoverage). A cap is not a guarantee that enough places exist.

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

Optional: Apple Maps place links or ids to read directly, one row each ($0.0025): https://maps.apple.com/place?auid=…, https://maps.apple.com/place?place-id=I…, maps.apple/p/… short links, a bare muid ("13210819010405908588") or a place id ("IB75641E56338C06C"). Use to refresh known places; no search is needed.

## `includeDetails` (type: `boolean`):

true (DEFAULT, free) = each row also carries rating and rating count, Apple's own rating, opening hours and open-now, the full category path, alternate phones, amenities, description, photo and the claimable flag, read from the place card. It costs nothing extra; the run takes about one more request per place. false = search fields only (name, address, phone, website, coordinates): use only when speed matters more than ratings and hours.

## `enrichContacts` (type: `boolean`):

true = also read each place's own website (home page plus up to 4 contact/about/imprint pages, robots.txt honoured) for emails, phone numbers and Facebook, Instagram, LinkedIn, X, YouTube, TikTok and WhatsApp links. Adds $0.003 only for a place where an email or social link is found; no website, unreachable site or nothing found = no contact fee. Use for "leads with emails".

## `fullCoverage` (type: `boolean`):

true = split each location into a grid of cells and search every cell (each restricted to its cell), for the full spread of a city instead of Apple's top 100 per query. Turned on automatically when maxPlacesPerSearch (or maxItems) is above 100. Each cell is one more Apple Maps query; only delivered places are charged.

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

Language of names, categories and amenities, and how Apple reads the search term: "en" (default), "de", "fr", "es", "it", "ja", "pt-BR", "zh-CN" … Type the term in that language ("Zahnarzt" works with "en" too).

## `hasWebsite` (type: `string`):

"no" = only places WITHOUT a website (prospects for web design and marketing agencies), "yes" = only places with one, "any" (default). Free; filtered places are not charged.

## `hasPhone` (type: `string`):

"yes" = only places with a phone number, "no" = only places without one, "any" (default). Free.

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

Keep places rated at least this on a 0–5 scale, e.g. 4.5. Apple's own rating (a percentage) counts as percentage / 20. 0 = no limit. Places without a rating do not pass. Free; needs the place card (read automatically).

## `minRatingCount` (type: `integer`):

Keep places with at least this many ratings, e.g. 20 (established businesses). 0 = no limit. Free.

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

true = keep only places open at the moment of the run, in their own time zone. Places without published hours do not pass. Free.

## `claimable` (type: `string`):

"yes" = only listings Apple still offers to claim on Apple Business Connect (the owner has not taken it over: prospects for local SEO and listing management), "no" = only listings that are not claimable, "any" (default). Free.

## `categoriesInclude` (type: `array`):

Keep places whose category path contains any of these words, e.g. \["dentist"] or \["pizza"] (the path holds names like "Health Care", "Dentistry", "Cosmetic Dentist"). Free.

## `categoriesExclude` (type: `array`):

Drop places whose category path contains any of these words, e.g. \["orthodontist"]. Free.

## `nameExcludes` (type: `array`):

Drop places whose name contains any of these words, e.g. chains \["Starbucks", "McDonald"]. Free.

## `nameContains` (type: `array`):

Keep places whose name contains any of these words, e.g. \["dental"]. Free.

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

true = deliver and bill only places that no earlier run with the same monitorKey delivered; already delivered places are skipped for free. Schedule the same input daily or weekly to get new businesses only. Set monitorKey too.

## `monitorKey` (type: `string`):

Name of the monitoring memory used with onlyNew, e.g. "austin-dentists" (1–60 letters, digits, dots, underscores or hyphens; empty = "default"). Runs that share the name share one list of delivered places. Stored encrypted.

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

Apple place ids (I…) or muids you already have: never delivered, never charged. Free.

## `gridCellKm` (type: `number`):

With fullCoverage: the width of one grid cell in km, e.g. 2. 0 (default) = sized from the location and maxGridCells.

## `maxGridCells` (type: `integer`):

With fullCoverage: at most this many cells per location, 1–100 (default 16). Each cell is one more Apple Maps query of up to 100 places.

## `maxPagesPerSite` (type: `integer`):

With enrichContacts: pages read per website (home page first, then contact, about and imprint pages). 1–10, default 5.

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

Apify datacenter proxies work for Apple Maps and are the default; residential is not needed.

## `searchQueries` (type: `array`):

\[{"query": "dentist", "location": "Brooklyn, New York"}] — each pair is one search. Accepted so an input saved for another Apple Maps actor can be pasted unchanged.

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

Same as Max places per search.

## `placeUrls` (type: `array`):

Same as Apple Maps place links.

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

Same as Search terms.

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

Same as one entry in Locations.

## Actor input object example

```json
{
  "searches": [
    "coffee shop"
  ],
  "locations": [
    "Austin, TX"
  ],
  "maxPlacesPerSearch": 20,
  "startUrls": [],
  "includeDetails": true,
  "enrichContacts": false,
  "fullCoverage": false,
  "language": "en",
  "hasWebsite": "any",
  "hasPhone": "any",
  "minRating": 0,
  "minRatingCount": 0,
  "openNow": false,
  "claimable": "any",
  "categoriesInclude": [],
  "categoriesExclude": [],
  "nameExcludes": [],
  "nameContains": [],
  "onlyNew": false,
  "excludePlaceIds": [],
  "gridCellKm": 0,
  "maxGridCells": 16,
  "maxPagesPerSite": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "searchQueries": [],
  "maxResults": 0,
  "placeUrls": [],
  "searchStringsArray": [],
  "locationQuery": ""
}
```

# Actor output Schema

## `dataset` (type: `string`):

One flat row per place with contact, rating, hours, category and lead-helper columns, plus one free status row per search that accounts for every place found, filtered, deduplicated, delivered and charged.

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

One JSON record with the counts this run delivered and charged, its filtered, duplicate and error tallies, and its HTTP stats.

# 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 = {
    "searches": [
        "coffee shop"
    ],
    "locations": [
        "Austin, TX"
    ],
    "maxPlacesPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kestrel/apple-maps-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 = {
    "searches": ["coffee shop"],
    "locations": ["Austin, TX"],
    "maxPlacesPerSearch": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("kestrel/apple-maps-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 '{
  "searches": [
    "coffee shop"
  ],
  "locations": [
    "Austin, TX"
  ],
  "maxPlacesPerSearch": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call kestrel/apple-maps-scraper --silent --output-dataset

```

## MCP server setup

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