{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenStreetMap Places Scraper — POIs, Addresses, Opening Hours",
    "description": "Points of interest from OpenStreetMap by place or map box: restaurants, shops, hotels, pharmacies, 62 categories or any OSM tag, with address, coordinates, opening hours and website.",
    "version": "0.1",
    "x-build-id": "ETZhdG1PEzkZTwGwU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/highbrow_fame~openstreetmap-places/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-highbrow_fame-openstreetmap-places",
        "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/highbrow_fame~openstreetmap-places/runs": {
      "post": {
        "operationId": "runs-sync-highbrow_fame-openstreetmap-places",
        "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/highbrow_fame~openstreetmap-places/run-sync": {
      "post": {
        "operationId": "run-sync-highbrow_fame-openstreetmap-places",
        "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": {
          "locations": {
            "title": "Places",
            "type": "array",
            "description": "Cities, towns, districts or postcodes (Szentendre, Mitte, Berlin, 10115 Berlin), found with OpenStreetMap's Nominatim and searched inside their boundary. Or paste an openstreetmap.org link to a relation or way (https://www.openstreetmap.org/relation/1244004). One per line.",
            "items": {
              "type": "string"
            }
          },
          "boundingBoxes": {
            "title": "Bounding boxes",
            "type": "array",
            "description": "Or an exact rectangle: south, west, north, east in degrees, e.g. 47.49, 19.03, 47.52, 19.08. One per line.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "uniqueItems": true,
            "type": "array",
            "description": "What kind of places to get. Each place (or box) is searched once per category.",
            "items": {
              "type": "string",
              "enum": [
                "restaurant",
                "cafe",
                "bar",
                "pub",
                "fast_food",
                "ice_cream",
                "nightclub",
                "hotel",
                "motel",
                "hostel",
                "guest_house",
                "camp_site",
                "museum",
                "attraction",
                "supermarket",
                "convenience",
                "bakery",
                "butcher",
                "clothes",
                "shoes",
                "electronics",
                "mobile_phone",
                "hardware",
                "furniture",
                "florist",
                "books",
                "jewelry",
                "optician",
                "hairdresser",
                "beauty",
                "car_dealer",
                "car_repair",
                "bicycle",
                "any_shop",
                "pharmacy",
                "hospital",
                "clinic",
                "doctors",
                "dentist",
                "veterinary",
                "bank",
                "atm",
                "fuel",
                "charging_station",
                "car_rental",
                "car_wash",
                "school",
                "kindergarten",
                "university",
                "library",
                "post_office",
                "police",
                "townhall",
                "place_of_worship",
                "cinema",
                "theatre",
                "gym",
                "sports_centre",
                "estate_agent",
                "lawyer",
                "accountant",
                "insurance"
              ],
              "enumTitles": [
                "Restaurants",
                "Cafés",
                "Bars",
                "Pubs",
                "Fast food",
                "Ice cream",
                "Nightclubs",
                "Hotels",
                "Motels",
                "Hostels",
                "Guest houses / B&Bs",
                "Campsites",
                "Museums",
                "Tourist attractions",
                "Supermarkets",
                "Convenience stores",
                "Bakeries",
                "Butchers",
                "Clothes shops",
                "Shoe shops",
                "Electronics shops",
                "Mobile phone shops",
                "Hardware / DIY stores",
                "Furniture shops",
                "Florists",
                "Bookshops",
                "Jewellers",
                "Opticians",
                "Hairdressers",
                "Beauty salons",
                "Car dealers",
                "Car repair / garages",
                "Bicycle shops",
                "Every kind of shop",
                "Pharmacies",
                "Hospitals",
                "Clinics",
                "Doctors",
                "Dentists",
                "Vets",
                "Banks",
                "ATMs",
                "Fuel stations",
                "EV charging stations",
                "Car rental",
                "Car washes",
                "Schools",
                "Kindergartens",
                "Universities / colleges",
                "Libraries",
                "Post offices",
                "Police stations",
                "Town halls",
                "Places of worship",
                "Cinemas",
                "Theatres",
                "Gyms / fitness centres",
                "Sports centres",
                "Estate agents",
                "Lawyers",
                "Accountants",
                "Insurance offices"
              ]
            }
          },
          "osmTags": {
            "title": "OSM tags",
            "type": "array",
            "description": "Optional, for anything not in the list: OpenStreetMap tags as key=value (amenity=restaurant), key for any value (shop), key=a|b for either, several joined with & (amenity=restaurant & cuisine=pizza), or Overpass brackets ([\"cuisine\"~\"pizza\"]). Each line is one more category.",
            "items": {
              "type": "string"
            }
          },
          "onlyNamed": {
            "title": "Only places with a name",
            "type": "boolean",
            "description": "Leaves out unnamed places (a bench, an unnamed car park). Turn off to get them too.",
            "default": true
          },
          "radiusKm": {
            "title": "Radius around the place (km)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Optional: search this many km around the centre of each place instead of inside its boundary. Handy for a landmark or an address. 0 = the boundary.",
            "default": 0
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stops each place × category search after this many places.",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Parallel searches",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "How many searches run at the same time. The public Overpass servers allow two queries at a time per IP.",
            "default": 2
          },
          "overpassUrl": {
            "title": "Your own Overpass server (optional)",
            "type": "string",
            "description": "The interpreter URL of an Overpass server you run or pay for, e.g. https://overpass.example.com/api/interpreter. Empty = the public servers (overpass-api.de, then maps.mail.ru and overpass.private.coffee when one is busy)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Used only when a connection fails: the requests go out directly, and the servers' rate limits are waited out, not dodged.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}