{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Maps Scraper: Places & Leads Data",
    "description": "Extract live Apple Maps & Apple Business Connect places data at scale. Get business names, websites, phone numbers, verified emails, addresses, ratings, reviews, categories, and full opening hours with real-time JSON streaming.",
    "version": "0.0",
    "x-build-id": "3BnZ3z3wuCDaDbJ2s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~Apple-Maps-Real-Time-Data-Scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-Apple-Maps-Real-Time-Data-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/b2b_leads~Apple-Maps-Real-Time-Data-Scraper/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-Apple-Maps-Real-Time-Data-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/b2b_leads~Apple-Maps-Real-Time-Data-Scraper/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-Apple-Maps-Real-Time-Data-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": {
          "enableSearch": {
            "title": "Keyword search",
            "type": "boolean",
            "description": "Search Apple Maps places by keyword and location. Enabled by default.",
            "default": true
          },
          "searchTasks": {
            "title": "Search tasks",
            "type": "array",
            "description": "Add one row per search: a keyword plus a city or area. Free trial users receive 2 places per run; upgrade to a paid Apify plan for full uncapped output.",
            "items": {
              "type": "object",
              "properties": {
                "query": {
                  "title": "Keyword",
                  "type": "string",
                  "description": "What to search for (e.g. \"coffee shops\", \"pizza\", \"dentists\", or a business name).",
                  "editor": "textfield"
                },
                "location": {
                  "title": "Location",
                  "type": "string",
                  "description": "Where to search. City name, state, neighbourhood, or postal code (e.g. \"Austin, TX\", \"Manhattan, NY\", \"90210\").",
                  "editor": "textfield"
                },
                "placesPerQuery": {
                  "title": "Max places",
                  "type": "integer",
                  "description": "Maximum places to collect for this task. Uses the default below when omitted.",
                  "minimum": 1,
                  "editor": "number"
                },
                "latitude": {
                  "title": "Centre latitude",
                  "type": "number",
                  "description": "Optional centre latitude coordinates (e.g. 30.2672).",
                  "editor": "number"
                },
                "longitude": {
                  "title": "Centre longitude",
                  "type": "number",
                  "description": "Optional centre longitude coordinates (e.g. -97.7431).",
                  "editor": "number"
                },
                "radiusMeters": {
                  "title": "Radius (metres)",
                  "type": "integer",
                  "description": "Keep only businesses within this radius of the centre coordinates. Requires both latitude and longitude.",
                  "minimum": 50,
                  "maximum": 100000,
                  "editor": "number"
                }
              },
              "required": [
                "query"
              ]
            }
          },
          "placesPerQuery": {
            "title": "Default max places per task",
            "minimum": 1,
            "type": "integer",
            "description": "Default maximum places per search task. Override per task in the list above.",
            "default": 10
          },
          "enableNearby": {
            "title": "Nearby discovery",
            "type": "boolean",
            "description": "Discover businesses by category around one location without typing custom queries.",
            "default": false
          },
          "nearbyCategories": {
            "title": "Categories",
            "type": "array",
            "description": "Business categories to discover around the location below.",
            "items": {
              "type": "string",
              "enum": [
                "restaurants",
                "cafes",
                "bars",
                "hotels",
                "gyms",
                "dentists",
                "doctors",
                "pharmacies",
                "gas_stations",
                "shopping",
                "beauty_salons",
                "auto_repair",
                "lawyers",
                "real_estate",
                "bakeries",
                "banks"
              ],
              "enumTitles": [
                "Restaurants",
                "Cafes & Coffee",
                "Bars & Nightlife",
                "Hotels",
                "Gyms & Fitness",
                "Dentists",
                "Doctors & Clinics",
                "Pharmacies",
                "Gas stations",
                "Shopping",
                "Beauty & Hair Salons",
                "Auto repair",
                "Lawyers & Legal",
                "Real estate",
                "Bakeries",
                "Banks & ATMs"
              ]
            },
            "default": [
              "cafes",
              "restaurants",
              "hotels",
              "gyms",
              "dentists"
            ]
          },
          "nearbyLocation": {
            "title": "Location",
            "type": "string",
            "description": "City or area for nearby discovery (e.g. \"Austin, TX\").",
            "default": ""
          },
          "placesPerCategory": {
            "title": "Places per category",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum places to collect for each selected category.",
            "default": 10
          },
          "enableScrapeByUrl": {
            "title": "Scrape place URLs",
            "type": "boolean",
            "description": "Resolve specific Apple Maps place URLs into full structured records.",
            "default": false
          },
          "scrapeUrls": {
            "title": "Apple Maps place links",
            "type": "array",
            "description": "One link per place, e.g. https://maps.apple.com/place?place-id=I7E9063646CAF2C87",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enableLeadDetails": {
            "title": "Enrich lead details (Website emails & socials)",
            "type": "boolean",
            "description": "Enrich places with contact emails and social media links mined from the business website. Every discovered business is exported to the dataset — no records are ever dropped or filtered.",
            "default": false
          },
          "fetchPlaceDetails": {
            "title": "Enrich full opening hours & amenities",
            "type": "boolean",
            "description": "Enrich each record in place with full weekly opening hours, amenities, reviews, and provider attribution.",
            "default": true
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language for business names and categories (e.g. en-US, es-ES, de-DE).",
            "default": "en-US"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code for geocoding and proxy routing (e.g. us, gb, ca, au).",
            "default": "us"
          },
          "maxItems": {
            "title": "Max total places",
            "minimum": 1,
            "type": "integer",
            "description": "Global cap on total places collected across all tasks. Paid plans receive up to this limit; free plan accounts receive a 2-place sample.",
            "default": 10000
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional webhook destination. Every place record is pushed in real time to your CRM, Slack, Zapier, or webhook service.",
            "default": ""
          },
          "webhookFormat": {
            "title": "Webhook format",
            "enum": [
              "json",
              "slack"
            ],
            "type": "string",
            "description": "json = full place record object; slack = formatted Slack message.",
            "default": "json"
          },
          "proxyConfiguration": {
            "title": "Proxy settings",
            "type": "object",
            "description": "Apify residential proxy is recommended and enabled by default for high reliability.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}