{
  "openapi": "3.0.1",
  "info": {
    "title": "Overture Local Leads",
    "description": "Local business leads from the open Overture Maps Places dataset: name, category, phone, website or no-website flag, address, brand and confidence for any bounding box, without touching Google Maps.",
    "version": "0.1",
    "x-build-id": "WFjXoUwPnEBBlzvOG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gmanner~overture-local-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gmanner-overture-local-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/gmanner~overture-local-leads/runs": {
      "post": {
        "operationId": "runs-sync-gmanner-overture-local-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/gmanner~overture-local-leads/run-sync": {
      "post": {
        "operationId": "run-sync-gmanner-overture-local-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": {
          "bbox": {
            "title": "Bounding box (west,south,east,north)",
            "type": "string",
            "description": "Area to search, in decimal degrees: west,south,east,north (min longitude, min latitude, max longitude, max latitude). Copy it from bboxfinder.com or any map tool. Up to 10 square degrees per run; split larger regions into several runs."
          },
          "centerLat": {
            "title": "Or: center latitude",
            "type": "string",
            "description": "Alternative to bbox: latitude of the center point, e.g. 30.27. Used only when bbox is empty."
          },
          "centerLon": {
            "title": "Or: center longitude",
            "type": "string",
            "description": "Alternative to bbox: longitude of the center point, e.g. -97.74. Used only when bbox is empty."
          },
          "radiusKm": {
            "title": "Radius around the center (km)",
            "type": "string",
            "description": "Half-width of the square around the center point, 0.05 to 150 km. Default 2.",
            "default": "2"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Overture category names, matched against the primary category, its parents and alternates. Examples: restaurant, cafe, dentist, plumber, hair_salon, real_estate_agent, lawyer, gym, hotel, car_dealer, bar, bakery. Lower case with underscores; leave empty for all businesses.",
            "items": {
              "type": "string"
            }
          },
          "websiteFilter": {
            "title": "Website filter",
            "enum": [
              "any",
              "without_website",
              "with_website"
            ],
            "type": "string",
            "description": "Pick 'without a website' for web-design and local-SEO prospecting.",
            "default": "any"
          },
          "requirePhone": {
            "title": "Only businesses with a phone number",
            "type": "boolean",
            "description": "Drop places without a phone number. Combine with 'without a website' for call lists.",
            "default": false
          },
          "minConfidence": {
            "title": "Minimum confidence (0 to 1)",
            "type": "string",
            "description": "Overture's existence confidence score. 0.5 keeps most real businesses; 0.8 keeps only well-corroborated ones. Default 0 (no filter).",
            "default": "0"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Optional ISO 3166-1 alpha-2 codes (US, GB, DE ...). Useful when the bbox crosses a border.",
            "items": {
              "type": "string"
            }
          },
          "excludeClosed": {
            "title": "Exclude permanently closed places",
            "type": "boolean",
            "description": "Skip places Overture marks as permanently closed. Temporarily closed places are kept.",
            "default": true
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Optional case-insensitive substring filter on the business name."
          },
          "maxResults": {
            "title": "Maximum leads",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many leads (highest confidence first). The run cost is bounded by this number.",
            "default": 1000
          },
          "release": {
            "title": "Overture release",
            "type": "string",
            "description": "Overture Maps release to read (monthly). See docs.overturemaps.org/release for the list.",
            "default": "2026-09-23.1"
          },
          "threads": {
            "title": "DuckDB threads",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Parallelism for reading parquet row groups. 4 is right for a 1 GB run.",
            "default": 4
          },
          "memoryLimit": {
            "title": "DuckDB memory limit",
            "type": "string",
            "description": "Keep below the run's memory. Raise together with the run memory for very large areas.",
            "default": "768MB"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}