{
  "openapi": "3.0.1",
  "info": {
    "title": "Local Business Leads: Google Maps alternative from open data",
    "description": "Give it a business type and a place, get every matching business with address, phone, website, socials and coordinates, or a market count. Overture Maps open data, no Google Maps scraping. $0.40 per 1,000 businesses.",
    "version": "0.1",
    "x-build-id": "wab6Ccojjn3ssAvv0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opstoolkit~local-business-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opstoolkit-local-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/opstoolkit~local-business-leads/runs": {
      "post": {
        "operationId": "runs-sync-opstoolkit-local-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/opstoolkit~local-business-leads/run-sync": {
      "post": {
        "operationId": "run-sync-opstoolkit-local-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",
        "required": [
          "categories"
        ],
        "properties": {
          "categories": {
            "title": "Business types",
            "type": "array",
            "description": "Types of business to find, one per entry, in plain words. Example: [\"dentist\", \"coffee shop\"]. Plural is fine. A broad type includes its sub-types, so 'restaurant' also finds sushi and pizza places. Overture category codes such as dental_clinic also work. Up to 20 types per run. Required.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "City, region or country",
            "type": "string",
            "description": "The place to search, with its state or country if the name is common. Examples: 'Austin, TX', 'Beirut', 'Manchester, UK', 'Bavaria'. The search covers the rectangle around the place, so nearby suburbs inside it are included. Up to about 2.5 million km2 per run, which fits any US state except Alaska. Leave empty when you give a bounding box or a latitude and longitude."
          },
          "mode": {
            "title": "What to return",
            "enum": [
              "leads",
              "count"
            ],
            "type": "string",
            "description": "'leads' (default) returns one row per business. 'count' returns one row per business type with how many there are, how many have a website or phone, and the biggest chains. Use count to size a market before you pull a list.",
            "default": "leads"
          },
          "maxResults": {
            "title": "Max leads",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most businesses to return, from 1 to 100,000. Default 100 (the form is prefilled with 50). The most confident matches come first. You pay only for rows returned.",
            "default": 100
          },
          "requireWebsite": {
            "title": "Only businesses with a website",
            "type": "boolean",
            "description": "true keeps only businesses that have a website in the data. Default false. A free filter. Useful before passing the list to a contact finder or tech-stack check.",
            "default": false
          },
          "requirePhone": {
            "title": "Only businesses with a phone number",
            "type": "boolean",
            "description": "true drops businesses with no phone number in the data. Default false. A free filter.",
            "default": false
          },
          "requireEmail": {
            "title": "Only businesses with a role email (info@, bookings@)",
            "type": "boolean",
            "description": "true keeps only businesses that have a role email such as info@ or bookings@ in the data. Default false. Overture rarely has emails, so this leaves few rows. For more emails, keep it off and run the websites through a contact finder.",
            "default": false
          },
          "requireSocial": {
            "title": "Only businesses with a social profile",
            "type": "boolean",
            "description": "true keeps businesses with a Facebook, Instagram, LinkedIn company page, X, YouTube or TikTok link. Default false. A free filter.",
            "default": false
          },
          "excludeChains": {
            "title": "Independents only (drop chains and franchises)",
            "type": "boolean",
            "description": "true drops places that carry a brand, such as Starbucks or Aspen Dental, so only independents remain. Default false. Do not turn it on together with 'Chains only'.",
            "default": false
          },
          "onlyChains": {
            "title": "Chains only",
            "type": "boolean",
            "description": "true keeps only places that carry a brand. Default false. Useful for counting a franchise's locations. Do not turn it on together with 'Independents only'.",
            "default": false
          },
          "onlyInNamedCity": {
            "title": "Only addresses in the named city",
            "type": "boolean",
            "description": "true drops suburbs inside the search rectangle by checking the city in each address. Places with no city in their address are dropped too. Default false.",
            "default": false
          },
          "minConfidence": {
            "title": "Minimum confidence (0 to 1)",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Overture's score, from 0 to 1, for how sure it is that the place exists. Default 0.4, which keeps most real businesses. Raise it to 0.7 for fewer, cleaner rows.",
            "default": 0.4
          },
          "includeClosed": {
            "title": "Include places marked closed",
            "type": "boolean",
            "description": "Places Overture marks as permanently or temporarily closed are left out unless this is true. Default false.",
            "default": false
          },
          "boundingBox": {
            "title": "Bounding box instead of a place name",
            "type": "string",
            "description": "Optional. Four comma-separated numbers: min longitude, min latitude, max longitude, max latitude. Example: -97.94,30.10,-97.56,30.52. Overrides the place name."
          },
          "latitude": {
            "title": "Latitude of the centre",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Optional. Latitude of the centre of a circle search, from -90 to 90. Example: 33.8938. Use together with longitude and radius. Adds distanceKm to each row and overrides the place name."
          },
          "longitude": {
            "title": "Longitude of the centre",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Optional. Longitude of the centre of a circle search, from -180 to 180. Example: 35.5018. Use together with latitude and radius."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0.05,
            "maximum": 200,
            "type": "number",
            "description": "Optional. Radius of the circle search in kilometres, from 0.05 to 200. Example: 2. Defaults to 5 when latitude and longitude are given. Ignored without them."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}