{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Maps Places & Business Leads — Phones, Emails, Ratings",
    "description": "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.",
    "version": "1.0",
    "x-build-id": "C7544bLv1BaoEROcO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kestrel~apple-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kestrel-apple-maps-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/kestrel~apple-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kestrel-apple-maps-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/kestrel~apple-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kestrel-apple-maps-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searches": {
            "title": "Search terms",
            "type": "array",
            "description": "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>\".",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "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.",
            "default": 100
          },
          "startUrls": {
            "title": "Apple Maps place links",
            "type": "array",
            "description": "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.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Ratings, hours & categories",
            "type": "boolean",
            "description": "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.",
            "default": true
          },
          "enrichContacts": {
            "title": "Find emails & social links",
            "type": "boolean",
            "description": "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\".",
            "default": false
          },
          "fullCoverage": {
            "title": "Full coverage (grid)",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "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).",
            "default": "en"
          },
          "hasWebsite": {
            "title": "Website",
            "enum": [
              "any",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "\"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.",
            "default": "any"
          },
          "hasPhone": {
            "title": "Phone",
            "enum": [
              "any",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "\"yes\" = only places with a phone number, \"no\" = only places without one, \"any\" (default). Free.",
            "default": "any"
          },
          "minRating": {
            "title": "Min rating (0–5)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "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).",
            "default": 0
          },
          "minRatingCount": {
            "title": "Min number of ratings",
            "minimum": 0,
            "type": "integer",
            "description": "Keep places with at least this many ratings, e.g. 20 (established businesses). 0 = no limit. Free.",
            "default": 0
          },
          "openNow": {
            "title": "Open now",
            "type": "boolean",
            "description": "true = keep only places open at the moment of the run, in their own time zone. Places without published hours do not pass. Free.",
            "default": false
          },
          "claimable": {
            "title": "Claimable listing",
            "enum": [
              "any",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "\"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.",
            "default": "any"
          },
          "categoriesInclude": {
            "title": "Category contains",
            "type": "array",
            "description": "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.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoriesExclude": {
            "title": "Category excludes",
            "type": "array",
            "description": "Drop places whose category path contains any of these words, e.g. [\"orthodontist\"]. Free.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nameExcludes": {
            "title": "Name excludes",
            "type": "array",
            "description": "Drop places whose name contains any of these words, e.g. chains [\"Starbucks\", \"McDonald\"]. Free.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nameContains": {
            "title": "Name contains",
            "type": "array",
            "description": "Keep places whose name contains any of these words, e.g. [\"dental\"]. Free.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new places (monitoring)",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "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": {
            "title": "Exclude place ids",
            "type": "array",
            "description": "Apple place ids (I…) or muids you already have: never delivered, never charged. Free.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "gridCellKm": {
            "title": "Grid cell size (km)",
            "minimum": 0,
            "maximum": 50,
            "type": "number",
            "description": "With fullCoverage: the width of one grid cell in km, e.g. 2. 0 (default) = sized from the location and maxGridCells.",
            "default": 0
          },
          "maxGridCells": {
            "title": "Max grid cells",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "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.",
            "default": 16
          },
          "maxPagesPerSite": {
            "title": "Website pages per place",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "With enrichContacts: pages read per website (home page first, then contact, about and imprint pages). 1–10, default 5.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxies work for Apple Maps and are the default; residential is not needed.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxResults": {
            "title": "Max places per search (compatibility alias)",
            "type": "integer",
            "description": "Same as Max places per search.",
            "default": 0
          },
          "locationQuery": {
            "title": "Location (compatibility alias)",
            "type": "string",
            "description": "Same as one entry in Locations.",
            "default": ""
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}