{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Maps Scraper: Leads, Guides & Full Place Cards",
    "description": "Apple Maps scraper for searches, place links, search links and curated guides. Each place has its full card: every phone line, website, address parts, opening hours, ratings on one 0-5 scale, guides, unclaimed-listing flag, EV plugs, transit and trails. $2.50 per 1,000 places.",
    "version": "0.0",
    "x-build-id": "2hVxq93fwPzp0r5nC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~apple-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~apple-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~apple-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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": "Searches",
            "type": "array",
            "description": "One search per line: what you want, then \"in\" or \"near\", then the city or area. Examples: \"bike shop in Austin, TX\", \"ramen near Shibuya, Tokyo\", \"dentist in Soho, London\". A line with no area uses the Area field below. Leave empty when you only paste links.",
            "items": {
              "type": "string"
            }
          },
          "area": {
            "title": "Area for searches that name none",
            "type": "string",
            "description": "City or neighborhood used for every search line that has no \"in\" or \"near\" part. Example: \"Lyon, France\" turns the search \"florist\" into florists in Lyon. Leave empty when each search names its own area."
          },
          "links": {
            "title": "Apple Maps links",
            "type": "array",
            "description": "One link per line, in any of these forms. A place link (maps.apple.com/place?auid=… or ?place-id=…, also look-around links) or a bare place id saves that one place. A search link (maps.apple.com/search?query=…&center=…) repeats that search on that part of the map. A guide link (maps.apple.com/guides?curated=…) saves every place in the guide, in guide order, with the guide's note on each. A publisher link (maps.apple.com/guides?publisher=…) goes through that publisher's guides one by one. An address link (maps.apple.com/place?address=…) saves the places Apple lists at that address. Short links (maps.apple/p/…) are opened to see which kind they are. Example: https://maps.apple.com/guides?curated=9052076297964235250",
            "items": {
              "type": "string"
            }
          },
          "maxPlaces": {
            "title": "Places to save (whole run)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most places this run saves, across every search, link and guide. Default 20. From 1 to 1000 on a paid plan; a free plan saves up to 5. Each saved place is billed once, and a place found twice is saved once."
          },
          "perSearchLimit": {
            "title": "Places per search or guide",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most places from any single search, guide, or nearby search, so one busy search cannot use up the whole run. Example: 3 searches with 25 here and 100 for the whole run gives up to 25 each. Leave empty for no separate limit."
          },
          "orderBy": {
            "title": "Order",
            "enum": [
              "best_match",
              "nearest",
              "top_rated"
            ],
            "type": "string",
            "description": "Which places come first, and so which are kept when there are more than you asked for. \"best_match\" (default) keeps the search's own order. \"nearest\" puts the closest to the search point first; each row has distanceKm. \"top_rated\" reads more places than you asked for and keeps the best rated, weighing how many people rated them, so a single 5-star review does not beat 900 reviews at 4.8."
          },
          "widenSearch": {
            "title": "Search the surrounding area too",
            "type": "boolean",
            "description": "Also searches a ring of points about 2 km around each search point, even for small pulls. Use it in dense areas where the first answer misses places just outside it. Runs of more than 20 places do this anyway. Off by default.",
            "default": false
          },
          "nearbyKeyword": {
            "title": "Find nearby",
            "type": "string",
            "description": "A search run around each place link, for example \"coffee\" or \"parking\". Each place found is saved with nearPlaceId and nearPlaceName (the place it is near) and distanceKm. The per-search limit applies to each place. Leave empty to save only the linked places."
          },
          "requirePhone": {
            "title": "With a phone number",
            "type": "boolean",
            "description": "Save only places that list a phone number. Off by default.",
            "default": false
          },
          "requireWebsite": {
            "title": "With a website",
            "type": "boolean",
            "description": "Save only places that list a website. Off by default.",
            "default": false
          },
          "ratingAtLeast": {
            "title": "Rated at least (0-5)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Save only places rated this high or higher, from 0 to 5. Ratings Apple shows out of 100 are compared on the same 0-5 scale (91 out of 100 counts as 4.55). Places with no rating are left out. Example: 4.5. Leave empty for no rating limit."
          },
          "onlyOpenNow": {
            "title": "Open at run time",
            "type": "boolean",
            "description": "Save only places open when the run reaches them, judged in each place's own time zone. Places with no published hours are left out. Off by default.",
            "default": false
          },
          "skipClosedForGood": {
            "title": "Skip places closed for good",
            "type": "boolean",
            "description": "Leave out places Apple Maps marks as permanently closed. When off, they are saved with permanentlyClosed: true. Off by default.",
            "default": false
          },
          "country": {
            "title": "Country (two-letter code)",
            "type": "string",
            "description": "Two-letter country code such as US, GB or FR. Search areas are looked up in this country (\"Paris\" with US means Paris, Texas), and places outside it are left out. Leave empty for any country."
          },
          "language": {
            "title": "Language of the results",
            "type": "string",
            "description": "Language for categories, amenities and other Apple Maps text, as a code such as en-US, fr-FR, de-DE or ja-JP. Place names stay as the place writes them. Default en-US.",
            "default": "en-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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}