{
  "openapi": "3.0.1",
  "info": {
    "title": "BizQuest Business-for-Sale Listing & Financials Extractor",
    "description": "Fetch BizQuest business-for-sale listings by search URL, keyword or state, with optional financial, broker and photo detail per listing.",
    "version": "1.0",
    "x-build-id": "mEBM2UC9H8E2Lp5TS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~bizquest-business-for-sale-listing-and-financials/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-bizquest-business-for-sale-listing-and-financials",
        "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/dataspryva~bizquest-business-for-sale-listing-and-financials/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-bizquest-business-for-sale-listing-and-financials",
        "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/dataspryva~bizquest-business-for-sale-listing-and-financials/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-bizquest-business-for-sale-listing-and-financials",
        "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": {
          "startUrls": {
            "title": "BizQuest search or listing URLs",
            "type": "array",
            "description": "Optional. Paste BizQuest search, category, state, city or individual listing URLs. When empty, the actor searches all US business listings and applies the filters below. Example: https://www.bizquest.com/businesses-for-sale-in-california-ca/",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Optional words to search for in the listing title and seller description, for example 'pizza' or 'HVAC'."
          },
          "state": {
            "title": "US state",
            "enum": [
              "any",
              "AL",
              "AK",
              "AZ",
              "AR",
              "CA",
              "CO",
              "CT",
              "DE",
              "FL",
              "GA",
              "HI",
              "ID",
              "IL",
              "IN",
              "IA",
              "KS",
              "KY",
              "LA",
              "ME",
              "MD",
              "MA",
              "MI",
              "MN",
              "MS",
              "MO",
              "MT",
              "NE",
              "NV",
              "NH",
              "NJ",
              "NM",
              "NY",
              "NC",
              "ND",
              "OH",
              "OK",
              "OR",
              "PA",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VT",
              "VA",
              "WA",
              "WV",
              "WI",
              "WY",
              "DC"
            ],
            "type": "string",
            "description": "Only return listings in this state. Choose 'Any state' to search nationwide.",
            "default": "any"
          },
          "industry": {
            "title": "Industry",
            "enum": [
              "any",
              "auto-and-automotive-businesses-for-sale",
              "building-and-construction-services-businesses-for-sale",
              "business-services-businesses-for-sale",
              "chemicals-businesses-for-sale",
              "clothing-and-fashion-businesses-for-sale",
              "communication-and-media-businesses-for-sale",
              "educational-businesses-for-sale",
              "entertainment-and-leisure-businesses-for-sale",
              "financial-businesses-for-sale",
              "food-and-beverage-businesses-for-sale",
              "general-merchandise-businesses-for-sale",
              "hair-and-beauty-businesses-for-sale",
              "health-and-medical-businesses-for-sale",
              "home-and-garden-businesses-for-sale",
              "home-and-office-furniture-businesses-for-sale",
              "internet-related-businesses-for-sale",
              "machinery-businesses-for-sale",
              "manufacturing-businesses-for-sale",
              "moving-storage-and-delivery-businesses-for-sale",
              "non-classifiable-establishments-for-sale",
              "office-businesses-for-sale",
              "personal-businesses-for-sale",
              "professional-services-businesses-for-sale",
              "real-estate-listings",
              "retail-stores-for-sale",
              "technology-businesses-for-sale",
              "transportation-businesses-for-sale",
              "wholesale-and-distribution-businesses-for-sale"
            ],
            "type": "string",
            "description": "Only return listings in this industry category. Choose 'Any industry' to search every category.",
            "default": "any"
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "any",
              "established-business",
              "asset-sale",
              "startup",
              "miscellaneous",
              "real-estate-for-sale",
              "real-estate-for-lease",
              "real-estate"
            ],
            "type": "string",
            "description": "Filter by how the business is being sold. Business real estate options cover property-only listings.",
            "default": "any"
          },
          "minPrice": {
            "title": "Minimum asking price (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only return listings asking at least this amount."
          },
          "maxPrice": {
            "title": "Maximum asking price (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only return listings asking at most this amount."
          },
          "minCashFlow": {
            "title": "Minimum cash flow (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only return listings reporting at least this cash flow or EBITDA. Listings that hide financials are excluded."
          },
          "maxCashFlow": {
            "title": "Maximum cash flow (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only return listings reporting at most this cash flow or EBITDA."
          },
          "minGrossRevenue": {
            "title": "Minimum gross revenue (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only return listings reporting at least this annual gross revenue."
          },
          "maxGrossRevenue": {
            "title": "Maximum gross revenue (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only return listings reporting at most this annual gross revenue."
          },
          "listedWithinDays": {
            "title": "Listed within (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only return listings first published within this many days. Use 0 or leave empty to skip."
          },
          "establishedAfterYear": {
            "title": "Established after year",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Only return businesses established after this year. Use 0 or leave empty to skip."
          },
          "sellerFinancing": {
            "title": "Seller financing available",
            "type": "boolean",
            "description": "Only return listings that advertise seller financing.",
            "default": false
          },
          "realEstateIncluded": {
            "title": "Real estate included",
            "type": "boolean",
            "description": "Only return listings where the business real estate is included in the asking price.",
            "default": false
          },
          "homeBased": {
            "title": "Home-based business",
            "type": "boolean",
            "description": "Only return home-based businesses.",
            "default": false
          },
          "absenteeOwner": {
            "title": "Absentee-owner business",
            "type": "boolean",
            "description": "Only return businesses that can be run by an absentee owner.",
            "default": false
          },
          "sbaApproved": {
            "title": "SBA loan approved",
            "type": "boolean",
            "description": "Only return listings marked as SBA loan approved.",
            "default": false
          },
          "priceReduced": {
            "title": "Price recently reduced",
            "type": "boolean",
            "description": "Only return listings whose asking price was recently reduced.",
            "default": false
          },
          "recentlyUpdated": {
            "title": "Recently updated",
            "type": "boolean",
            "description": "Only return listings updated recently by the seller or broker.",
            "default": false
          },
          "franchiseResales": {
            "title": "Franchise resales",
            "type": "boolean",
            "description": "Only return resales of existing franchise locations.",
            "default": false
          },
          "noAskingPrice": {
            "title": "No asking price published",
            "type": "boolean",
            "description": "Only return listings that do not publish an asking price.",
            "default": false
          },
          "withoutImage": {
            "title": "No photo",
            "type": "boolean",
            "description": "Only return listings without a photo.",
            "default": false
          },
          "coBrokering": {
            "title": "Co-brokering allowed",
            "type": "boolean",
            "description": "Only return listings that allow co-brokering.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of listings to save. The site exposes up to 10,000 listings per search.",
            "default": 50
          },
          "fetchDetails": {
            "title": "Load full listing details",
            "type": "boolean",
            "description": "Fetch each listing's detail page for the full seller write-up, financials, facilities, broker profile and photo gallery. Doubles the number of requests; leave off for the fastest, cheapest runs.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The actor reads BizQuest's public listing API and works without a proxy by default. Configure one only if your runs are rate-limited or blocked."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}