{
  "openapi": "3.0.1",
  "info": {
    "title": "BizQuest Business for Sale & Broker Contact Scraper",
    "description": "Scrape US businesses for sale on BizQuest with broker or seller contact name, company and phone, asking price, EBITDA, industry and location. Filter by keyword, state and price. Export to JSON, CSV or Excel.",
    "version": "0.2",
    "x-build-id": "CAAkXZDlKsyhyOyJk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapers_lat~bizquest-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapers_lat-bizquest-scraper",
        "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/scrapers_lat~bizquest-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapers_lat-bizquest-scraper",
        "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/scrapers_lat~bizquest-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapers_lat-bizquest-scraper",
        "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": {
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of listings to collect. Optional."
          },
          "withDetails": {
            "title": "Include broker contact and financials",
            "type": "boolean",
            "description": "When on (default), each listing also includes the business broker or seller contact (name, company, phone, profile URL) plus financials BizQuest exposes pre-login (listing type, EBITDA, real-estate-included flag, franchise fees). No extra requests are made. Note: BizQuest does not publish broker email addresses (they are gated behind a contact form), and cash flow is hidden behind 'Sign In to View', so those stay null. Turn this off for a lean listings-only output.",
            "default": true
          },
          "startUrl": {
            "title": "Start URL",
            "type": "string",
            "description": "Optional. A BizQuest businesses-for-sale listing URL to scrape directly, for example https://www.bizquest.com/restaurants-for-sale-in-florida-fl/ or https://www.bizquest.com/businesses-for-sale-in-texas-tx/. When set, it overrides the keyword, industry and state filters below. Leave empty to build the search from the filters."
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Optional keyword to search, for example coffee, laundromat, pizza, gym. BizQuest matches the keyword as a category slug, so single business-type words work best."
          },
          "category": {
            "title": "Industry",
            "enum": [
              "restaurants",
              "food-and-beverage",
              "retail",
              "auto-and-automotive",
              "health-and-medical",
              "beauty-and-personal-care",
              "business-services",
              "building-and-construction",
              "manufacturing",
              "transportation-and-storage",
              "education-and-children",
              "entertainment-and-recreation",
              "agriculture",
              "wholesale-and-distribution",
              "technology-and-internet",
              "financial-services",
              "pet-services",
              "travel"
            ],
            "type": "string",
            "description": "Optional industry to filter by. Pick one of the main BizQuest categories."
          },
          "state": {
            "title": "State",
            "enum": [
              "alabama-al",
              "alaska-ak",
              "arizona-az",
              "arkansas-ar",
              "california-ca",
              "colorado-co",
              "connecticut-ct",
              "delaware-de",
              "florida-fl",
              "georgia-ga",
              "hawaii-hi",
              "idaho-id",
              "illinois-il",
              "indiana-in",
              "iowa-ia",
              "kansas-ks",
              "kentucky-ky",
              "louisiana-la",
              "maine-me",
              "maryland-md",
              "massachusetts-ma",
              "michigan-mi",
              "minnesota-mn",
              "mississippi-ms",
              "missouri-mo",
              "montana-mt",
              "nebraska-ne",
              "nevada-nv",
              "new-hampshire-nh",
              "new-jersey-nj",
              "new-mexico-nm",
              "new-york-ny",
              "north-carolina-nc",
              "north-dakota-nd",
              "ohio-oh",
              "oklahoma-ok",
              "oregon-or",
              "pennsylvania-pa",
              "rhode-island-ri",
              "south-carolina-sc",
              "south-dakota-sd",
              "tennessee-tn",
              "texas-tx",
              "utah-ut",
              "vermont-vt",
              "virginia-va",
              "washington-wa",
              "west-virginia-wv",
              "wisconsin-wi",
              "wyoming-wy"
            ],
            "type": "string",
            "description": "Optional US state to filter by."
          },
          "minPrice": {
            "title": "Minimum Asking Price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only listings with an asking price at or above this amount (USD). Listings without a published price are excluded when this is set."
          },
          "maxPrice": {
            "title": "Maximum Asking Price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only listings with an asking price at or below this amount (USD). Listings without a published price are excluded when this is set."
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional proxy settings. BizQuest listing pages are reachable without a proxy, so this can be left disabled. Enable a US proxy only if you run very large jobs and start seeing blocks.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}