{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Maps API | Places, Guides, Local Search & Refinements",
    "description": "Scrape Apple Maps and extract local business listings, place details, curated guides, and refinement filters in one Actor. Phone, ratings, reviews, hours, address, GPS, amenities, multi-source ratings. City-name or coordinate targeting. Pay per result. MCP-ready for Claude, ChatGPT, Cursor.",
    "version": "0.0",
    "x-build-id": "ynONGDkWfwaitStxW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/johnvc~apple-maps-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-johnvc-apple-maps-api",
        "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/johnvc~apple-maps-api/runs": {
      "post": {
        "operationId": "runs-sync-johnvc-apple-maps-api",
        "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/johnvc~apple-maps-api/run-sync": {
      "post": {
        "operationId": "run-sync-johnvc-apple-maps-api",
        "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",
        "required": [
          "search_mode",
          "query"
        ],
        "properties": {
          "search_mode": {
            "title": "Search Mode",
            "enum": [
              "search",
              "place",
              "guide",
              "refinement"
            ],
            "type": "string",
            "description": "Which Apple Maps result family to return. 'search' returns the broad mix (local listings, guides, and the refinement object). 'place' resolves a specific query to a single rich place detail object. 'guide' returns only curated Apple Maps guide collections. 'refinement' returns only the available toggles, multi-select filters, and sort options for the query.",
            "default": "search"
          },
          "query": {
            "title": "Search Query",
            "minLength": 1,
            "type": "string",
            "description": "The Apple Maps search term. Examples: 'coffee', 'dentists', 'plumbers in Brooklyn', 'Apple Park Cupertino', 'best ramen'. Combine with location or center for geo-targeted results. Required for every mode."
          },
          "location": {
            "title": "Location (place name)",
            "type": "string",
            "description": "City-level location name (e.g., 'Austin, Texas, United States', 'London', 'Brooklyn, New York'). Either this OR 'center' must be provided. Cannot be combined with 'center'."
          },
          "center": {
            "title": "Center (lat,lng)",
            "pattern": "^-?\\d+(\\.\\d+)?,-?\\d+(\\.\\d+)?$",
            "type": "string",
            "description": "Geographic center as 'latitude,longitude' (e.g., '30.3246,-97.7305'). Use instead of 'location' for fine-grained coordinate targeting. Either this OR 'location' must be provided. Cannot be combined with 'location'."
          },
          "span": {
            "title": "Span (latDelta,lngDelta)",
            "type": "string",
            "description": "Viewport dimensions as 'latitudeDelta,longitudeDelta' (e.g., '0.5,0.5'). Larger values widen the search radius. Default is '0.5,0.5'. Optional."
          },
          "sort": {
            "title": "Sort Order",
            "enum": [
              "default",
              "distance",
              "ratings"
            ],
            "type": "string",
            "description": "How to sort local results. 'default' lets Apple Maps decide; 'distance' sorts by proximity to the center; 'ratings' sorts by rating descending.",
            "default": "default"
          },
          "toggles": {
            "title": "Toggles",
            "type": "array",
            "description": "Single-value filter keys to apply (e.g., ['open_now'], ['drive_thru'], ['TOP_RATED']). Discoverable via 'refinement' mode. Sent as a comma-joined list to the upstream API.",
            "items": {
              "type": "string"
            }
          },
          "multi_select_options": {
            "title": "Multi-Select Options",
            "type": "array",
            "description": "Multi-value filter keys (chains, amenities, price tiers) discovered via 'refinement' mode. Pass each option key as a separate array element.",
            "items": {
              "type": "string"
            }
          },
          "open_at": {
            "title": "Open-At Timestamp",
            "minimum": 0,
            "type": "integer",
            "description": "Unix timestamp (seconds) for an 'open at this time' filter. Must be in the future and within the next 24 hours. Optional."
          },
          "locale": {
            "title": "Locale",
            "type": "string",
            "description": "Language and region code for the response (e.g., 'en-US', 'en-GB', 'fr-FR', 'de-DE'). Defaults to 'en-US'."
          },
          "max_results": {
            "title": "Maximum Results",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Caps how many local_result or guide_result items are kept and billed. Set 0 for unlimited (bounded by a safety cap of 100). Default 20. Ignored for 'place' and 'refinement' modes which always return a single object.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}