{
  "openapi": "3.0.1",
  "info": {
    "title": "Restaurant & Business Leads – OpenStreetMap (Maps Alternative)",
    "description": "Extract restaurants, cafes, bars, hotels, shops and any business type for a city, area or radius from OpenStreetMap. Name, address, website, phone, opening hours, cuisine, diet tags, GPS. Cheap, no proxies, ODbL open data.",
    "version": "0.1",
    "x-build-id": "lApuYre93kFfnsXXM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nebulosa~osm-business-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nebulosa-osm-business-leads",
        "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/nebulosa~osm-business-leads/runs": {
      "post": {
        "operationId": "runs-sync-nebulosa-osm-business-leads",
        "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/nebulosa~osm-business-leads/run-sync": {
      "post": {
        "operationId": "run-sync-nebulosa-osm-business-leads",
        "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": "Cities or areas",
            "type": "array",
            "description": "Names of cities, towns or districts as they appear in OpenStreetMap, e.g. Málaga, Kraków, Lisboa, Berlin. Use the local name. Combine with 'Country code' to avoid same-name places.",
            "items": {
              "type": "string"
            }
          },
          "countryCode": {
            "title": "Country code (ISO 3166-1 alpha-2)",
            "type": "string",
            "description": "Restricts the city lookup to one country, e.g. ES, PL, PT, DE, FR, IT. Recommended."
          },
          "categories": {
            "title": "Business categories",
            "type": "array",
            "description": "Which kinds of places to extract.",
            "items": {
              "type": "string",
              "enum": [
                "restaurant",
                "cafe",
                "bar",
                "pub",
                "fast_food",
                "ice_cream",
                "biergarten",
                "food_court",
                "nightclub",
                "hotel",
                "guest_house",
                "hostel",
                "apartment",
                "bakery",
                "butcher",
                "pastry",
                "deli",
                "supermarket",
                "convenience",
                "wine",
                "alcohol",
                "greengrocer",
                "hairdresser",
                "beauty",
                "pharmacy",
                "clinic",
                "veterinary",
                "car_repair",
                "fitness_centre",
                "estate_agent"
              ],
              "enumTitles": [
                "Restaurants",
                "Cafes",
                "Bars",
                "Pubs",
                "Fast food",
                "Ice cream",
                "Beer gardens",
                "Food courts",
                "Nightclubs",
                "Hotels",
                "Guest houses / B&B",
                "Hostels",
                "Holiday apartments",
                "Bakeries",
                "Butchers",
                "Pastry shops",
                "Delis",
                "Supermarkets",
                "Convenience stores",
                "Wine shops",
                "Liquor stores",
                "Greengrocers",
                "Hairdressers",
                "Beauty salons",
                "Pharmacies",
                "Clinics",
                "Veterinarians",
                "Car repair",
                "Gyms",
                "Real estate agencies"
              ]
            },
            "default": [
              "restaurant",
              "cafe",
              "bar"
            ]
          },
          "customTags": {
            "title": "Custom OSM tags",
            "type": "array",
            "description": "Extra filters in key=value form, e.g. craft=brewery, shop=bicycle, tourism=museum. Each one is added as another category.",
            "items": {
              "type": "string"
            }
          },
          "bbox": {
            "title": "Bounding box (instead of cities)",
            "type": "string",
            "description": "south,west,north,east in decimal degrees, e.g. 36.70,-4.45,36.74,-4.40. Used only when no cities are given."
          },
          "center": {
            "title": "Center point lat,lon (instead of cities)",
            "type": "string",
            "description": "e.g. 50.0614,19.9366 (Kraków Main Square). Used with 'Radius' when no cities and no bounding box are given."
          },
          "radiusMeters": {
            "title": "Radius (meters)",
            "minimum": 50,
            "maximum": 50000,
            "type": "integer",
            "description": "Radius around the center point.",
            "default": 1000
          },
          "requireWebsite": {
            "title": "Only places with a website",
            "type": "boolean",
            "description": "Skip places without a website tag.",
            "default": false
          },
          "requirePhone": {
            "title": "Only places with a phone number",
            "type": "boolean",
            "description": "Skip places without a phone tag.",
            "default": false
          },
          "requireName": {
            "title": "Only named places",
            "type": "boolean",
            "description": "Skip places without a name.",
            "default": true
          },
          "includeContacts": {
            "title": "Include business contact fields",
            "type": "boolean",
            "description": "Include the venue's public phone, email, website and social links as tagged in OpenStreetMap. Turn off if you only need locations.",
            "default": true
          },
          "maxItems": {
            "title": "Max places",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of places to return (you pay per place).",
            "default": 200
          },
          "overpassUrl": {
            "title": "Overpass API endpoint",
            "type": "string",
            "description": "Optional. By default the actor uses public Overpass instances that allow commercial use (overpass.private.coffee, then the VK Maps instance as fallback). Set your own server URL here to use only that one."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}