{
  "openapi": "3.0.1",
  "info": {
    "title": "BizBuySell Listings Scraper",
    "description": "BizBuySell Listings Scraper SD - BizBuySell Listings Scraper is a business-for-sale data tool that extracts public BizBuySell listings by search URL, keyword, state or industry: asking price, cash flow, EBITDA, location, broker, photos, plus optional revenue, employees and full description.",
    "version": "1.0",
    "x-build-id": "HFi9oV2JfOmCdZDoc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~bizbuysell-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-bizbuysell-listings-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/neuro-scraper~bizbuysell-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-bizbuysell-listings-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/neuro-scraper~bizbuysell-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-bizbuysell-listings-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 URLs",
            "type": "array",
            "description": "BizBuySell search pages copied from your browser, with any filters set there (e.g. https://www.bizbuysell.com/california-businesses-for-sale/, https://www.bizbuysell.com/texas/restaurants-and-food-businesses-for-sale/, a page with ?q=...). Listing pages (https://www.bizbuysell.com/business-opportunity/<name>/<id>/) are returned as one detailed row each.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "BizBuySell's keyword search, e.g. pizza, car wash, SaaS. Applied to every search (URLs, states, industries); alone it searches all US listings."
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "A US state (California, TX) or a city / county with its state (Los Angeles County, CA or Austin, Texas). Opens BizBuySell's own location page, e.g. https://www.bizbuysell.com/california/los-angeles-county-businesses-for-sale/."
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "US states, one per line (e.g. Texas, FL), or cities / counties with their state (Austin, TX). Each line is its own search - this also goes past BizBuySell's 10,000-result cap of the nationwide search. Industries below combine with whole states.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Industries",
            "type": "array",
            "description": "BizBuySell industries, one per line, as shown on the site: Agriculture, Automotive & Boat, Beauty & Personal Care, Building & Construction, Communication & Media, Education & Children, Entertainment & Recreation, Financial Services, Health Care & Fitness, Manufacturing, Online & Technology, Pet Services, Restaurants & Food, Retail, Service Businesses, Transportation & Storage, Travel, Wholesale & Distributors. Combined with States when both are given.",
            "items": {
              "type": "string"
            }
          },
          "listingTypes": {
            "title": "Listing types",
            "type": "array",
            "description": "Only these listing types. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "established",
                "asset-sale",
                "real-estate",
                "startup"
              ],
              "enumTitles": [
                "Established businesses",
                "Asset sales",
                "Business real estate",
                "Startups"
              ]
            },
            "default": []
          },
          "minAskingPrice": {
            "title": "Min asking price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 250000. Empty = no minimum."
          },
          "maxAskingPrice": {
            "title": "Max asking price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 2000000. Empty = no maximum."
          },
          "minCashFlow": {
            "title": "Min cash flow / SDE (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 100000. Listings that do not disclose cash flow are left out by BizBuySell when this is set."
          },
          "maxCashFlow": {
            "title": "Max cash flow (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 500000."
          },
          "minGrossRevenue": {
            "title": "Min gross revenue (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 1000000."
          },
          "maxGrossRevenue": {
            "title": "Max gross revenue (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 5000000."
          },
          "establishedAfterYear": {
            "title": "Established after (year)",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Only businesses established in or after this year, e.g. 2010."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "default",
              "price-asc",
              "price-desc",
              "cashflow-desc",
              "ebitda-desc",
              "newest"
            ],
            "type": "string",
            "description": "Order of the results (matters when Max listings is smaller than the search).",
            "default": "default"
          },
          "includeDetails": {
            "title": "Include full listing details",
            "type": "boolean",
            "description": "One extra request per listing: full description, gross revenue, year established, employees, reason for selling, facilities, competition, growth, support & training, financing, real estate / inventory / FF&E values, county, ZIP, website and full-size photos.",
            "default": false
          },
          "includeFranchiseAds": {
            "title": "Include franchise opportunities",
            "type": "boolean",
            "description": "BizBuySell mixes franchise offers (new franchise units, not businesses for sale) into its results. Off = only businesses for sale.",
            "default": false
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many listings in total. BizBuySell shows 50 per page; the Actor follows the page number to the end of each search (BizBuySell caps one search at 10,000 results - split by state or industry for more).",
            "default": 50
          },
          "maxPages": {
            "title": "Max pages per search",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Pages of 50 per search. 0 = all pages (up to BizBuySell's 200-page cap).",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "US residential proxies by default. BizBuySell's Akamai bot protection blocks some IPs; a blocked request is retried on a new IP.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}