{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Maps Business Scraper — Phones, Websites, Ratings & Hours",
    "description": "Extract Apple Maps business data from place, guide and publisher links: phone, website, address, coordinates, ratings, hours, amenities and photos. No keyword or location search.",
    "version": "0.1",
    "x-build-id": "IeYy5M0PK3efTWjGl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zapticx~apple-maps-business-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zapticx-apple-maps-business-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/zapticx~apple-maps-business-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zapticx-apple-maps-business-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/zapticx~apple-maps-business-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zapticx-apple-maps-business-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": {
          "placeUrls": {
            "title": "Apple Maps place URLs",
            "type": "array",
            "description": "Links to Apple Maps places, e.g. <code>https://maps.apple.com/place?place-id=IBB4C75E7EBE40E08</code> or <code>https://maps.apple.com/place?auid=13496291822278020616</code>. A bare place ID (<code>I…</code>) or numeric auid also works, as do <code>maps.apple/p/…</code> share links. Search and address-only links are not supported.",
            "items": {
              "type": "string"
            }
          },
          "guideUrls": {
            "title": "Apple Maps guide URLs",
            "type": "array",
            "description": "Links to Apple Maps curated guides, e.g. <code>https://maps.apple.com/guides?curated=18213149583533332718</code>, or to a guide publisher, e.g. <code>https://maps.apple.com/guides?publisher=470765485244172689</code> (reads that publisher's guides). Every place in a guide is scraped in guide order and records which guide it came from.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum places",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many places are saved. You are only charged for saved places.",
            "default": 100
          },
          "maxPlacesPerGuide": {
            "title": "Maximum places per guide",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit of places taken from each guide.",
            "default": 200
          },
          "maxGuidesPerPublisher": {
            "title": "Maximum guides per publisher",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "For publisher links: how many of the publisher's guides to read.",
            "default": 10
          },
          "fetchGuidePlaceDetails": {
            "title": "Full details for guide places",
            "type": "boolean",
            "description": "On: open each guide place's own page for the full record (amenities, description, all photos, quick links). Off: faster, uses the summary the guide page already shows (name, phone, website, address, rating, hours, some photos).",
            "default": true
          },
          "includeEditorialText": {
            "title": "Include editorial text",
            "type": "boolean",
            "description": "Off (default): the editorial text Apple shows from partners (for example MICHELIN Guide or Wikipedia), guide authors' notes and the business's About text are left empty. On: they are included as published, with their source. These texts belong to their authors; check that your use is allowed.",
            "default": false
          },
          "language": {
            "title": "Language",
            "enum": [
              "en-US",
              "en-GB",
              "en-AU",
              "de-DE",
              "fr-FR",
              "es-ES",
              "es-MX",
              "it-IT",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "pt-BR",
              "nl-NL",
              "sv-SE",
              "da-DK",
              "pl-PL",
              "tr-TR",
              "ar-SA",
              "he-IL",
              "hi-IN",
              "ru-RU"
            ],
            "type": "string",
            "description": "Language for category names, amenities and other labels. Apple decides which languages a place's data exists in; names and addresses are often shown in the local language.",
            "default": "en-US"
          },
          "minRating": {
            "title": "Minimum rating (0–5)",
            "enum": [
              "",
              "3",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Keep only places rated at least this much. Apple's 0–100 score is compared as score ÷ 20 (90 = 4.5). Places without a rating are excluded when this is set.",
            "default": ""
          },
          "minReviewCount": {
            "title": "Minimum number of ratings",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only places with at least this many ratings."
          },
          "requirePhone": {
            "title": "Must have a phone number",
            "type": "boolean",
            "description": "Keep only places that list a phone number.",
            "default": false
          },
          "requireWebsite": {
            "title": "Must have a website",
            "type": "boolean",
            "description": "Keep only places that list a website.",
            "default": false
          },
          "openNow": {
            "title": "Open now",
            "type": "boolean",
            "description": "Keep only places open at run time, from their regular weekly hours in the place's own time zone. Places without published hours are excluded. Holiday hours are not taken into account.",
            "default": false
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Keep only places whose category contains one of these words, e.g. <code>Restaurant</code>, <code>Dentist</code>, <code>Coffee</code>.",
            "items": {
              "type": "string"
            }
          },
          "includeKeywords": {
            "title": "Name must contain",
            "type": "array",
            "description": "Keep only places whose name contains one of these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Name must not contain",
            "type": "array",
            "description": "Drop places whose name contains any of these words.",
            "items": {
              "type": "string"
            }
          },
          "countryCodes": {
            "title": "Countries",
            "type": "array",
            "description": "Keep only places in these countries (two-letter codes such as <code>US</code>, <code>GB</code>, <code>DE</code>).",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are loaded at the same time.",
            "default": 4
          },
          "maxRequestsPerMinute": {
            "title": "Maximum requests per minute",
            "minimum": 6,
            "maximum": 600,
            "type": "integer",
            "description": "Upper limit on the request rate for the whole run.",
            "default": 120
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for one page.",
            "default": 30
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Retries for timeouts and temporary server errors. Not-found places are never retried.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Apple Maps place pages normally load without a proxy.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}