{
  "openapi": "3.0.1",
  "info": {
    "title": "BizBuySell Scraper [Only $1.2/1K💰] | Broker Leads | M&A Deals",
    "description": "Scrape businesses for sale from BizBuySell: asking price, cash flow/SDE, EBITDA, gross revenue, location, category and broker contact data for acquisition research and lead generation.",
    "version": "0.0",
    "x-build-id": "JgIJxYOJlF9xTBxYV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~bizbuysell-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-bizbuysell-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/ahmed_jasarevic~bizbuysell-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-bizbuysell-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/ahmed_jasarevic~bizbuysell-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-bizbuysell-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": {
          "startUrls": {
            "title": "BizBuySell search/category URLs",
            "type": "array",
            "description": "Search pages to scrape, e.g. https://www.bizbuysell.com/california-businesses-for-sale/ or https://www.bizbuysell.com/businesses-for-sale/. Each URL is converted into the internal listing feed query and paginated automatically. Detail pages (https://www.bizbuysell.com/business-opportunity/…) are also supported. Leave empty for the nationwide feed. Category URLs (e.g. .../restaurants-and-food-businesses-for-sale/) are scraped without the category filter unless filters.industryId is set.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "filters": {
            "title": "Search filters",
            "type": "object",
            "description": "Additional search criteria applied to every search URL (values here override filters encoded in a start URL).",
            "properties": {
              "keyword": {
                "title": "Keyword",
                "type": "string",
                "description": "Free-text keyword search, e.g. \"laundromat\".",
                "editor": "textfield"
              },
              "askingPriceMin": {
                "title": "Min asking price",
                "type": "integer",
                "description": "Minimum asking price in USD.",
                "minimum": 0
              },
              "askingPriceMax": {
                "title": "Max asking price",
                "type": "integer",
                "description": "Maximum asking price in USD.",
                "minimum": 0
              },
              "cashFlowMin": {
                "title": "Min cash flow (SDE)",
                "type": "integer",
                "description": "Minimum cash flow in USD.",
                "minimum": 0
              },
              "cashFlowMax": {
                "title": "Max cash flow (SDE)",
                "type": "integer",
                "description": "Maximum cash flow in USD.",
                "minimum": 0
              },
              "grossIncomeMin": {
                "title": "Min gross revenue",
                "type": "integer",
                "description": "Minimum gross revenue in USD.",
                "minimum": 0
              },
              "grossIncomeMax": {
                "title": "Max gross revenue",
                "type": "integer",
                "description": "Maximum gross revenue in USD.",
                "minimum": 0
              },
              "listingTypeIds": {
                "title": "Listing types",
                "type": "array",
                "description": "Type(s) of listings to include. BizBuySell defaults to 30 (Businesses for sale), 40 (Franchises) and 80 (Business opportunities).",
                "editor": "stringList",
                "default": [
                  30,
                  40,
                  80
                ]
              },
              "daysListedAgo": {
                "title": "Listed in the last N days",
                "type": "integer",
                "description": "0 = any time. E.g. 30 = only listings posted in the last 30 days.",
                "minimum": 0,
                "default": 0
              },
              "establishedAfterYear": {
                "title": "Established after year",
                "type": "integer",
                "description": "Only businesses established after this year (e.g. 2010). 0 = any.",
                "minimum": 0,
                "default": 0
              },
              "industryId": {
                "title": "Industry ID (experimental)",
                "type": "integer",
                "description": "Experimental: single BizBuySell industry-hierarchy id sent inside the search criteria. The site uses ids such as 2600 (Airports/FBO) and 2606 (Bar). Mapping is not documented and may be ignored by the API.",
                "minimum": 0
              },
              "location": {
                "title": "Location filter",
                "type": "string",
                "description": "Overrides the location for every search URL. Accepts a state (name, 2-letter code or URL slug, e.g. \"California\", \"CA\" or \"california\"), \"City, ST\", or a US state name.",
                "editor": "textfield"
              },
              "customLocation": {
                "title": "Custom location JSON (advanced)",
                "type": "string",
                "description": "Escape hatch: raw JSON of the BizBuySell location object (or array of them) used in the search request body, e.g. captured from the browser's _sl cookie or DevTools network payload. Overrides filters.location.",
                "editor": "textarea"
              },
              "absenteeOwnerListings": {
                "title": "Absentee owner only",
                "type": "boolean",
                "description": "Only listings where the owner does not work in the business.",
                "default": false
              },
              "listingsWithPriceReduced": {
                "title": "Price reduced only",
                "type": "boolean",
                "description": "Only listings that have had their price reduced.",
                "default": false
              },
              "listingsRecentlyUpdated": {
                "title": "Recently updated only",
                "type": "boolean",
                "description": "Only listings updated recently.",
                "default": false
              },
              "listingsWithNoAskingPrice": {
                "title": "Include no-asking-price listings",
                "type": "boolean",
                "description": "Include listings that do not show an asking price.",
                "default": false
              },
              "homeBasedListings": {
                "title": "Home-based businesses only",
                "type": "boolean",
                "description": "Only home-based businesses.",
                "default": false
              },
              "includeRealEstateForLease": {
                "title": "Include real estate for lease",
                "type": "boolean",
                "description": "Include real-estate-for-lease listings.",
                "default": false
              },
              "listingsWithSellerFinancing": {
                "title": "Seller financing only",
                "type": "boolean",
                "description": "Only listings offering seller financing.",
                "default": false
              },
              "realEstateIncluded": {
                "title": "Real estate included only",
                "type": "boolean",
                "description": "Only listings where the real estate is included in the sale.",
                "default": false
              },
              "showRelocatableListings": {
                "title": "Show relocatable businesses",
                "type": "boolean",
                "description": "Include businesses that can be relocated.",
                "default": false
              }
            }
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of business listings to scrape across all start URLs. Free users are capped at 10.",
            "default": 100
          },
          "maxPagesPerUrl": {
            "title": "Max pages per start URL",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on pagination depth per start URL.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select the proxy type to use. Datacenter proxies are recommended for fast and cost-effective scraping. Residential proxies can be used when needed.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}