{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Maps Scraper - Phones, Ratings, Hours, Amenities & Photos",
    "description": "Extract places, businesses, contacts phone numbers & emails, hours, ratings, reviews, amenities, and photos from Apple Maps by search query, location, or direct place URL.",
    "version": "0.1",
    "x-build-id": "QwvzZMr9M0Vr6gogv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/karamelo~apple-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-karamelo-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/karamelo~apple-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-karamelo-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/karamelo~apple-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-karamelo-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": {
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Search for places by keyword and location. The location is automatically resolved to geographical coordinates — you can provide any city, neighborhood, or street address.<br><br>Each query searches its surrounding area and tiles automatically for deep coverage. Queries execute with their own independent result limits.",
            "items": {
              "type": "object",
              "required": [
                "query",
                "location"
              ],
              "properties": {
                "query": {
                  "title": "Search Query",
                  "type": "string",
                  "description": "What to search for — works like the Apple Maps search bar.<br><br>Examples:<br>• <code>Coffee shop</code><br>• <code>Bakery</code><br>• <code>Italian restaurant</code><br>• <code>EV charging station</code>",
                  "editor": "textfield"
                },
                "location": {
                  "title": "Location",
                  "type": "string",
                  "description": "Where to search. Resolved to coordinates automatically.<br><br>Examples:<br>• <code>San Francisco, CA</code><br>• <code>SoHo, Manhattan, NY</code><br>• <code>Shibuya, Tokyo</code><br>• <code>Westminster, London</code><br><br>More specific locations yield faster and more precise results.",
                  "editor": "textfield"
                },
                "maxResults": {
                  "title": "Max Results",
                  "type": "integer",
                  "description": "Optional override for <b>Max Results per Query</b> for this specific search. Leave empty to inherit the global setting.",
                  "minimum": 1,
                  "maximum": 1000,
                  "editor": "number"
                }
              }
            }
          },
          "maxResults": {
            "title": "Max Results per Query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of places to collect <b>per search query or search URL</b>. Applies to each query independently unless overridden inside a specific Search Query item.",
            "default": 50
          },
          "placeUrls": {
            "title": "Place URLs",
            "type": "array",
            "description": "Direct links to specific Apple Maps places. Fetches complete place details for each link provided.<br><br>Accepted formats:<br>• <code>https://maps.apple.com/place?auid=11327320202390494766</code><br>• <code>https://maps.apple.com/place?place-id=I918CB7E77B4C7910</code><br><br>Copy any place link from <a href=\"https://maps.apple.com\" target=\"_blank\">maps.apple.com</a> via Share → Copy Link.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Apple Maps search URLs with search terms and coordinates included. Ideal for replaying a search seen in your browser.<br><br>Format: <code>https://maps.apple.com/search?query=coffee+shops&center=37.7749,-122.4194&span=0.05,0.05</code><br><br>The <code>span</code> parameter controls the search bounding area.",
            "items": {
              "type": "string"
            }
          },
          "includePlaceDetails": {
            "title": "Include Extended Place Details",
            "type": "boolean",
            "description": "Whether to enrich each result with weekly operating hours, full reviews, Yelp links, high-resolution photos, amenities, and Apple Business claim links. Turn off for faster, lightweight runs.",
            "default": true
          },
          "countryCode": {
            "title": "Country Code",
            "type": "string",
            "description": "<b>Changes which places are returned and how Apple ranks them.</b><br><br>Apple ranks search results according to country affinity. Searching in Paris with <code>US</code> returns tourist-frequented locations, whereas <code>FR</code> returns local favorites.<br><br>Set this to the country where your target businesses are located.",
            "default": "US"
          },
          "language": {
            "title": "Language / Locale",
            "type": "string",
            "description": "<b>Controls language localization and category naming.</b><br><br>Formats localized category names (e.g., <code>Café</code> vs <code>Coffee Shop</code>), address labels, and ranking priorities.",
            "default": "en-US"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional proxy routing. For large queries, Apify residential proxies help avoid rate limits.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}