{
  "openapi": "3.0.1",
  "info": {
    "title": "Local Business Lead Finder",
    "description": "Find local businesses worldwide, then verify them: MX emails, live vs parked websites, E.164 phones, 0-100 score. Pay per delivered lead on Apify.",
    "version": "1.2",
    "x-build-id": "o3mIdwek9Y8N5JHgH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/livable_stonework_1wd~local-business-lead-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-livable_stonework_1wd-local-business-lead-finder",
        "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/livable_stonework_1wd~local-business-lead-finder/runs": {
      "post": {
        "operationId": "runs-sync-livable_stonework_1wd-local-business-lead-finder",
        "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/livable_stonework_1wd~local-business-lead-finder/run-sync": {
      "post": {
        "operationId": "run-sync-livable_stonework_1wd-local-business-lead-finder",
        "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": [
          "location",
          "category"
        ],
        "properties": {
          "location": {
            "title": "City / location",
            "type": "string",
            "description": "City to search. Include region and country for best results, e.g. Austin, TX, USA or London, UK."
          },
          "category": {
            "title": "Niche",
            "enum": [
              "dentist",
              "orthodontist",
              "chiropractor",
              "clinic",
              "hospital",
              "pharmacy",
              "veterinary",
              "medspa",
              "restaurant",
              "cafe",
              "bar",
              "bakery",
              "pizza",
              "hotel",
              "motel",
              "gym",
              "yoga",
              "spa",
              "salon",
              "barber",
              "lawyer",
              "accountant",
              "insurance",
              "real_estate",
              "plumber",
              "electrician",
              "hvac",
              "roofer",
              "locksmith",
              "painter",
              "cleaner",
              "auto_repair",
              "car_dealer",
              "car_wash",
              "school",
              "daycare",
              "florist",
              "pet",
              "grocery",
              "bank",
              "coworking",
              "moving",
              "storage",
              "gas_station"
            ],
            "type": "string",
            "description": "Business type to extract. Each niche maps to OpenStreetMap tags used worldwide.",
            "default": "dentist"
          },
          "maxResults": {
            "title": "Max leads",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of businesses to return (1–1000).",
            "default": 100
          },
          "radiusKm": {
            "title": "Search radius (km)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How far from the city center to search. 12 km covers most mid-size cities. Use 25–40 for metro areas.",
            "default": 12
          },
          "customTags": {
            "title": "Custom OSM tags (optional)",
            "type": "string",
            "description": "Extra OpenStreetMap filters, comma-separated, e.g. amenity=clinic, healthcare=doctor. Combined with the selected niche."
          },
          "enrichContacts": {
            "title": "Visit websites for emails & socials",
            "type": "boolean",
            "description": "Open each business website (and contact page when needed) to collect public emails, extra phones, and social profiles. Turn off for a faster Maps-style dump.",
            "default": true
          },
          "onlyWithPhone": {
            "title": "Only leads with a phone",
            "type": "boolean",
            "description": "Drop businesses that have no phone number.",
            "default": false
          },
          "onlyWithWebsite": {
            "title": "Only leads with a website",
            "type": "boolean",
            "description": "Drop businesses that have no website.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only leads with an email",
            "type": "boolean",
            "description": "Keep rows that include a public email. Requires website enrichment.",
            "default": false
          },
          "verifyLeads": {
            "title": "Verify emails, websites, and phones",
            "type": "boolean",
            "description": "MX-check emails, probe websites (live vs parked vs dead), normalize phones to E.164, and score every row 0–100. On by default — this is how dead leads get dropped.",
            "default": true
          },
          "dropDeadLeads": {
            "title": "Drop dead leads",
            "type": "boolean",
            "description": "Remove parked domains, dead websites with no valid phone, and unreachable rows. You are not charged for dropped rows.",
            "default": true
          },
          "onlyVerified": {
            "title": "Only verified leads",
            "type": "boolean",
            "description": "Keep rows with verificationStatus = verified (valid phone or MX email, live site, high score). Stricter than Drop dead leads.",
            "default": false
          },
          "minScore": {
            "title": "Minimum verification score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Drop rows below this 0–100 score. 0 = keep all surviving rows. 70 ≈ verified-only. 45 ≈ likely + verified.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Used only when visiting business websites. OpenStreetMap queries do not use a proxy.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}