{
  "openapi": "3.0.1",
  "info": {
    "title": "BizQuest Scraper: Businesses for Sale with Financials",
    "description": "BizQuest scraper: US businesses for sale by keyword, state, city and industry with asking price and location. Add seller or broker name and phone, cash flow, revenue, year established and reason for selling. Filter by price, cash flow and listing age. From $0.0005 per listing.",
    "version": "0.1",
    "x-build-id": "HGRrBZiozgWIRd1Wi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/firsthand~bizquest-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-firsthand-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/firsthand~bizquest-scraper/runs": {
      "post": {
        "operationId": "runs-sync-firsthand-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/firsthand~bizquest-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-firsthand-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "What you would type in the BizQuest keyword box, for example 'laundromat', 'HVAC' or 'car wash'. Every keyword runs in every location. Empty lists all businesses.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (US state or city)",
            "type": "array",
            "description": "US states or cities with the state code, for example 'Texas', 'CA' or 'Austin, TX'. Empty searches the whole country.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Industry",
            "type": "string",
            "description": "BizQuest industry name, for example 'Restaurants', 'Retail Stores', 'Auto & Automotive' or 'Health & Medical'. Empty means all industries."
          },
          "listingTypes": {
            "title": "Listing types",
            "type": "array",
            "description": "Which BizQuest listing types to include. Empty means established businesses, business assets and business real estate (the site default).",
            "items": {
              "type": "string",
              "enum": [
                "40",
                "30",
                "20",
                "80"
              ],
              "enumTitles": [
                "Established businesses",
                "Business assets",
                "Start-up businesses",
                "Business real estate (for sale or lease)"
              ]
            }
          },
          "priceMin": {
            "title": "Asking price from",
            "minimum": 0,
            "type": "integer",
            "description": "US dollars. Empty or 0 means no limit."
          },
          "priceMax": {
            "title": "Asking price to",
            "minimum": 0,
            "type": "integer",
            "description": "US dollars. Empty or 0 means no limit."
          },
          "cashFlowMin": {
            "title": "Cash flow from",
            "minimum": 0,
            "type": "integer",
            "description": "US dollars. Empty or 0 means no limit."
          },
          "cashFlowMax": {
            "title": "Cash flow to",
            "minimum": 0,
            "type": "integer",
            "description": "US dollars. Empty or 0 means no limit."
          },
          "revenueMin": {
            "title": "Gross revenue from",
            "minimum": 0,
            "type": "integer",
            "description": "US dollars. Empty or 0 means no limit."
          },
          "revenueMax": {
            "title": "Gross revenue to",
            "minimum": 0,
            "type": "integer",
            "description": "US dollars. Empty or 0 means no limit."
          },
          "listedWithinDays": {
            "title": "Listed within days",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings added in the last N days, for example 7 or 30. Empty means any time."
          },
          "establishedAfterYear": {
            "title": "Established after year",
            "minimum": 0,
            "type": "integer",
            "description": "Only businesses established after this year."
          },
          "startUrls": {
            "title": "BizQuest search links",
            "type": "array",
            "description": "Search result pages copied from bizquest.com with your filters, for example https://www.bizquest.com/businesses-for-sale-in-texas-tx/?q=... A link keeps its own filters; links run before keywords and locations, so clear those fields if you want only the links. Single listing pages are not supported.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Add cash flow, revenue and seller write-up",
            "type": "boolean",
            "description": "Opens each listing for the contact name and phone, industry, cash flow, gross revenue, EBITDA, inventory, FF&E, year established, employees, reason for selling, facilities, financing and the full description. Charged once per listing. Off when the field is missing from an API call."
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Listings in total across all keywords, locations and links. 100 if empty, 0 means no limit."
          },
          "maxItemsPerQuery": {
            "title": "Max listings per keyword and location",
            "minimum": 0,
            "type": "integer",
            "description": "Limit for each keyword in each location and for each link (the site shows up to 10,000). Empty or 0 means no limit."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "BizQuest search pages work without a proxy. Turn Apify Proxy on only if runs get refused."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}