{
  "openapi": "3.0.1",
  "info": {
    "title": "Local Business Leads from OpenStreetMap",
    "description": "Find local businesses in any city or region from OpenStreetMap open data: name, address, phone, website, email, opening hours and coordinates. 50+ categories or free OSM tags, area or radius search, website and phone filters. Pay per place.",
    "version": "0.1",
    "x-build-id": "kQrrMaslShb1nWrEa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/forgeloop~osm-business-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-forgeloop-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/forgeloop~osm-business-leads/runs": {
      "post": {
        "operationId": "runs-sync-forgeloop-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/forgeloop~osm-business-leads/run-sync": {
      "post": {
        "operationId": "run-sync-forgeloop-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": "Locations",
            "type": "array",
            "description": "City, district or region names, like \"Graz, Austria\" or \"Kreuzberg, Berlin\". Add the country to avoid a place with the same name elsewhere. Nominatim turns each name into its OSM boundary. You can also enter an OSM relation like \"relation/34719\". Whole large countries are rejected. Each location is searched on its own.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Business types to find. Each maps to one or more OSM tags, shown in brackets. Combine them with free OSM tag filters below.",
            "items": {
              "type": "string",
              "enum": [
                "restaurant",
                "fast_food",
                "cafe",
                "bar",
                "pub",
                "ice_cream",
                "hotel",
                "guest_house",
                "dentist",
                "doctors",
                "pharmacy",
                "physiotherapist",
                "veterinary",
                "optician",
                "hairdresser",
                "beauty",
                "tattoo",
                "car_repair",
                "car_dealer",
                "car_wash",
                "fuel",
                "driving_school",
                "bakery",
                "butcher",
                "supermarket",
                "convenience",
                "clothes",
                "shoes",
                "jewelry",
                "florist",
                "bookshop",
                "electronics",
                "furniture",
                "hardware",
                "bicycle_shop",
                "pet_shop",
                "travel_agency",
                "laundry",
                "lawyer",
                "notary",
                "accountant",
                "real_estate_agent",
                "insurance",
                "architect",
                "it_company",
                "bank",
                "plumber",
                "electrician",
                "carpenter",
                "painter",
                "roofer",
                "photographer",
                "gym"
              ],
              "enumTitles": [
                "Restaurant (amenity=restaurant)",
                "Fast food (amenity=fast_food)",
                "Cafe (amenity=cafe)",
                "Bar (amenity=bar)",
                "Pub (amenity=pub)",
                "Ice cream shop (amenity=ice_cream, shop=ice_cream)",
                "Hotel (tourism=hotel)",
                "Guest house, B&B, hostel (tourism=guest_house, tourism=hostel, tourism=apartment)",
                "Dentist (amenity=dentist, healthcare=dentist)",
                "Doctor (amenity=doctors, healthcare=doctor)",
                "Pharmacy (amenity=pharmacy)",
                "Physiotherapist (healthcare=physiotherapist)",
                "Veterinarian (amenity=veterinary)",
                "Optician (shop=optician)",
                "Hairdresser (shop=hairdresser)",
                "Beauty salon, nails, spa (shop=beauty, shop=cosmetics)",
                "Tattoo studio (shop=tattoo)",
                "Car repair (shop=car_repair)",
                "Car dealer (shop=car)",
                "Car wash (amenity=car_wash)",
                "Fuel station (amenity=fuel)",
                "Driving school (amenity=driving_school)",
                "Bakery (shop=bakery, shop=pastry)",
                "Butcher (shop=butcher)",
                "Supermarket (shop=supermarket)",
                "Convenience store (shop=convenience)",
                "Clothes shop (shop=clothes)",
                "Shoe shop (shop=shoes)",
                "Jeweller (shop=jewelry)",
                "Florist (shop=florist)",
                "Bookshop (shop=books)",
                "Electronics shop (shop=electronics, shop=mobile_phone, shop=computer)",
                "Furniture shop (shop=furniture)",
                "Hardware store, DIY (shop=hardware, shop=doityourself)",
                "Bicycle shop (shop=bicycle)",
                "Pet shop (shop=pet)",
                "Travel agency (shop=travel_agency, office=travel_agent)",
                "Laundry, dry cleaning (shop=laundry, shop=dry_cleaning)",
                "Lawyer (office=lawyer)",
                "Notary (office=notary)",
                "Accountant, tax advisor (office=accountant, office=tax_advisor)",
                "Real estate agent (office=estate_agent, shop=estate_agent)",
                "Insurance agent (office=insurance)",
                "Architect (office=architect)",
                "IT company (office=it)",
                "Bank (amenity=bank)",
                "Plumber (craft=plumber, craft=hvac)",
                "Electrician (craft=electrician)",
                "Carpenter, joiner (craft=carpenter, craft=joiner)",
                "Painter (craft=painter)",
                "Roofer (craft=roofer)",
                "Photographer (craft=photographer, shop=photo)",
                "Gym, fitness centre (leisure=fitness_centre)"
              ]
            }
          },
          "tagFilters": {
            "title": "OSM tag filters",
            "type": "array",
            "description": "Extra OSM tags to search for, one per line. Formats: \"shop=bicycle\", \"craft=*\" (any value), \"cuisine=pizza|kebab\" (one of several values), \"amenity=restaurant&cuisine=pizza\" (all parts must match). See the OSM wiki Map features page for tags.",
            "items": {
              "type": "string"
            }
          },
          "onlyWithWebsite": {
            "title": "Only with website",
            "type": "boolean",
            "description": "Keep only places with a website, contact:website or url tag.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only with phone",
            "type": "boolean",
            "description": "Keep only places with a phone, contact:phone, mobile or contact:mobile tag.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only with email",
            "type": "boolean",
            "description": "Keep only places with an email or contact:email tag. Few places in OSM have one.",
            "default": false
          },
          "maxResultsPerLocation": {
            "title": "Max results per location",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many places per location. Every place is one charged result, so this also caps the cost. 1 to 5000.",
            "default": 100
          },
          "latitude": {
            "title": "Center latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Search around a point instead of, or in addition to, the locations. Latitude like 47.0707."
          },
          "longitude": {
            "title": "Center longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of the center point, like 15.4395."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "Radius around the center point in kilometres. 0.1 to 50.",
            "default": 2
          },
          "onlyNamed": {
            "title": "Only places with a name",
            "type": "boolean",
            "description": "Skip places without a name tag. They are rarely useful as leads.",
            "default": true
          },
          "includeAllTags": {
            "title": "Include all OSM tags",
            "type": "boolean",
            "description": "Add every OSM tag of the place under allTags. Without it, only the tags of interest are kept under tags.",
            "default": false
          },
          "queryTimeoutSecs": {
            "title": "Query timeout (seconds)",
            "minimum": 30,
            "maximum": 180,
            "type": "integer",
            "description": "Time limit for one Overpass query. Overpass runs queries with shorter limits first. Raise it only for large regions. 30 to 180.",
            "default": 60
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}