{
  "openapi": "3.0.1",
  "info": {
    "title": "BizBuySell Scraper: Businesses for Sale, Cash Flow, Brokers",
    "description": "Scrape BizBuySell businesses for sale by keyword, state, city, industry and price, cash flow or revenue range, or by link: asking price, cash flow, gross revenue, EBITDA, established year, employees, reason for selling, broker and firm. No login.",
    "version": "0.1",
    "x-build-id": "TYWJEYDH9EkBIO9L5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~bizbuysell-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-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/themineworks~bizbuysell-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-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/themineworks~bizbuysell-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-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": {
          "keywords": {
            "title": "Keywords (optional)",
            "type": "array",
            "description": "What the business does, for example laundromat, car wash, HVAC, dental practice, SaaS. Each keyword is one BizBuySell search with the place, industry and filters below. Leave empty to list every business in the place and industry.",
            "items": {
              "type": "string"
            }
          },
          "state": {
            "title": "State (optional)",
            "type": "string",
            "description": "US state name or code, for example Texas, California, New York or TX. Leave empty for the whole United States."
          },
          "city": {
            "title": "City or county (optional)",
            "type": "string",
            "description": "A city or county inside the state above, as BizBuySell writes it, for example Austin, San Antonio, Los Angeles County. Needs the state."
          },
          "industry": {
            "title": "Industry (optional)",
            "enum": [
              "agriculture",
              "automotive-and-boat",
              "beauty-and-personal-care",
              "building-and-construction",
              "communication-and-media",
              "education-and-child-related",
              "entertainment-and-recreation",
              "financial-services",
              "health-care-and-fitness",
              "manufacturing",
              "online-and-technology",
              "pet-service",
              "restaurants-and-food",
              "retail",
              "service",
              "transportation-and-storage",
              "travel",
              "wholesale-and-distribution"
            ],
            "type": "string",
            "description": "One BizBuySell industry. For a narrower category (car washes, HVAC, security) use a keyword or paste the category link from bizbuysell.com."
          },
          "minPrice": {
            "title": "Asking price from (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings asking at least this much."
          },
          "maxPrice": {
            "title": "Asking price up to (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings asking at most this much."
          },
          "minCashFlow": {
            "title": "Cash flow from (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at least this cash flow (SDE) a year."
          },
          "maxCashFlow": {
            "title": "Cash flow up to (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at most this cash flow a year."
          },
          "minRevenue": {
            "title": "Gross revenue from (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at least this gross revenue a year."
          },
          "maxRevenue": {
            "title": "Gross revenue up to (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at most this gross revenue a year."
          },
          "listedWithinDays": {
            "title": "Listed in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only listings added in the last N days, for example 7 for a weekly new deals feed."
          },
          "sellerFinancing": {
            "title": "Seller financing only",
            "type": "boolean",
            "description": "Only listings where the seller offers financing.",
            "default": false
          },
          "listingTypes": {
            "title": "Listing types",
            "type": "array",
            "description": "Which kinds of BizBuySell listings to keep. Default: established businesses, asset sales and start-ups.",
            "items": {
              "type": "string",
              "enum": [
                "established",
                "asset_sale",
                "startup",
                "real_estate",
                "auction"
              ],
              "enumTitles": [
                "Established businesses",
                "Asset sales",
                "Start-ups",
                "Business real estate (for sale and for lease)",
                "Auctions"
              ]
            },
            "default": [
              "established",
              "asset_sale",
              "startup"
            ]
          },
          "startUrls": {
            "title": "BizBuySell links (optional)",
            "type": "array",
            "description": "Search links copied from bizbuysell.com (any state, city, industry or category page, with its filters), such as https://www.bizbuysell.com/texas/restaurants-and-food-businesses-for-sale/, and listing links such as https://www.bizbuysell.com/business-opportunity/well-established-heavy-equipment-transportation-business/2496799/. A listing link always returns the full listing.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most listings to return for each keyword or search link, 1 to 5,000. BizBuySell shows 50 per page.",
            "default": 50
          },
          "includeDetails": {
            "title": "Read each listing page",
            "type": "boolean",
            "description": "On: each listing's own page is read too, for gross revenue, EBITDA, established year, employees, real estate, inventory, reason for selling, full description and the broker's firm and phone. Off: only what the search page shows (title, asking price, cash flow, location, broker name and phone, link), much cheaper.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}