{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenStreetMap Scraper: Business Leads by Category & City",
    "description": "Extract local businesses from OpenStreetMap by category and area (city, district, bounding box or radius): name, address, phone, website, email, opening hours, cuisine and coordinates. An open alternative to Google Maps scraping. ODbL data with attribution.",
    "version": "0.1",
    "x-build-id": "LUUAM3Ra3vvca88ZL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/latamdatatools~osm-business-poi-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-latamdatatools-osm-business-poi-extractor",
        "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/latamdatatools~osm-business-poi-extractor/runs": {
      "post": {
        "operationId": "runs-sync-latamdatatools-osm-business-poi-extractor",
        "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/latamdatatools~osm-business-poi-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-latamdatatools-osm-business-poi-extractor",
        "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 districts",
            "type": "array",
            "description": "Place names, one per line (e.g. \"Palermo, Buenos Aires\", \"Austin, Texas\", \"Lyon, France\"). Resolved with OpenStreetMap Nominatim to the official boundary. Max 30,000 km² per place.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Business categories",
            "type": "array",
            "description": "One or more. A business matching several categories appears once.",
            "items": {
              "type": "string",
              "enum": [
                "restaurant",
                "cafe",
                "bar",
                "fast_food",
                "bakery",
                "hotel",
                "dentist",
                "doctor",
                "pharmacy",
                "veterinary",
                "hairdresser",
                "beauty",
                "gym",
                "car_repair",
                "car_dealer",
                "car_wash",
                "fuel",
                "supermarket",
                "clothes",
                "electronics",
                "hardware",
                "furniture",
                "florist",
                "optician",
                "jewelry",
                "pet",
                "bookstore",
                "real_estate",
                "lawyer",
                "accountant",
                "insurance",
                "it_company",
                "coworking",
                "bank",
                "school",
                "plumber",
                "electrician",
                "carpenter",
                "photographer",
                "all_shops",
                "all_offices",
                "all_crafts"
              ],
              "enumTitles": [
                "Restaurants",
                "Cafes",
                "Bars & pubs",
                "Fast food",
                "Bakeries & pastry",
                "Hotels, hostels, guest houses",
                "Dentists",
                "Doctors & clinics",
                "Pharmacies",
                "Veterinarians",
                "Hairdressers & barbers",
                "Beauty, nails, massage, tattoo",
                "Gyms & fitness",
                "Car repair & tyres",
                "Car & motorcycle dealers",
                "Car wash",
                "Fuel stations",
                "Supermarkets, groceries, butchers",
                "Clothes & shoes",
                "Electronics & phones",
                "Hardware & DIY",
                "Furniture & home",
                "Florists & garden centres",
                "Opticians",
                "Jewelry & watches",
                "Pet shops & grooming",
                "Books & stationery",
                "Real estate agents",
                "Lawyers & notaries",
                "Accountants & tax advisors",
                "Insurance offices",
                "IT & telecom companies",
                "Coworking spaces",
                "Banks & exchange",
                "Language, music, driving schools",
                "Plumbers & HVAC",
                "Electricians",
                "Carpenters",
                "Photographers",
                "ALL shops",
                "ALL offices",
                "ALL crafts / trades"
              ]
            },
            "default": [
              "restaurant"
            ]
          },
          "customTags": {
            "title": "Custom OSM tags",
            "type": "array",
            "description": "Any other OpenStreetMap tag, one per line: shop=bicycle, craft=winery, cuisine=sushi, office=architect, amenity=dentist|clinic, or just a key (craft).",
            "items": {
              "type": "string"
            }
          },
          "boundingBoxes": {
            "title": "Bounding boxes",
            "type": "array",
            "description": "\"south,west,north,east\" in decimal degrees, max 5,000 km² each.",
            "items": {
              "type": "string"
            }
          },
          "centers": {
            "title": "Center + radius",
            "type": "array",
            "description": "\"lat,lon,radiusMeters\" (max 50,000 m), e.g. 40.7484,-73.9857,800.",
            "items": {
              "type": "string"
            }
          },
          "requireName": {
            "title": "Only named businesses",
            "type": "boolean",
            "description": "Skip objects without a name (usually not useful for leads).",
            "default": true
          },
          "onlyWithContact": {
            "title": "Only with phone, website or email",
            "type": "boolean",
            "description": "Keep only businesses that have at least one contact field in OpenStreetMap.",
            "default": false
          },
          "includeExtraTags": {
            "title": "Include extra business tags",
            "type": "boolean",
            "description": "Adds an extraTags object: cuisine details, diets, takeaway, delivery, payment methods, wheelchair, operator, stars...",
            "default": false
          },
          "onlyNew": {
            "title": "Only new businesses",
            "type": "boolean",
            "description": "Return only places not delivered in earlier runs with the same alert name (newly mapped businesses). Schedule weekly or monthly.",
            "default": false
          },
          "alertName": {
            "title": "Alert name",
            "type": "string",
            "description": "Separate memory per alert.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max businesses per run",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Total cap (and charge cap).",
            "default": 1000
          },
          "overpassUrl": {
            "title": "Own Overpass API endpoint (optional)",
            "type": "string",
            "description": "Leave empty to use the public Overpass servers (with backoff when they are busy). If you run your own Overpass instance, put its /api/interpreter URL here."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}