{
  "openapi": "3.0.1",
  "info": {
    "title": "BizBuySell Scraper",
    "description": "Scrape businesses and franchises for sale from BizBuySell.com: price, cash flow, revenue, EBITDA, location, broker, financials, and full descriptions. Export JSON, CSV, Excel.",
    "version": "1.0",
    "x-build-id": "aCjccpxaiKbzXQghC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~bizbuysell-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-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/parsebird~bizbuysell-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-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/parsebird~bizbuysell-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-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 URLs",
            "type": "array",
            "description": "BizBuySell URLs to scrape. Mix search result pages, state/city/category pages, and individual listing pages. Pagination is automatic — no need to add page numbers.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "useQueryBuilder": {
            "title": "Use query builder",
            "type": "boolean",
            "description": "Build a BizBuySell search from the state/area below (and post-filter results by industry, price, cash flow, and keywords).",
            "default": false
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "US state name or slug, e.g. california or new-york. Used by the query builder."
          },
          "area": {
            "title": "City or metro area",
            "type": "string",
            "description": "City or county slug exactly as it appears in a BizBuySell URL, e.g. los-angeles-county or orlando. If the slug is wrong the run falls back to the whole state."
          },
          "queries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords such as a business type or industry (e.g. cafe, bakery). One search URL is built per keyword.",
            "items": {
              "type": "string"
            }
          },
          "industryIds": {
            "title": "Industries",
            "type": "array",
            "description": "Industry filters.",
            "items": {
              "type": "string",
              "enum": [
                "88",
                "136",
                "141",
                "81",
                "89",
                "27",
                "22",
                "118",
                "31",
                "57",
                "92",
                "115",
                "188",
                "17",
                "1",
                "20",
                "30",
                "206",
                "78"
              ],
              "enumTitles": [
                "Agriculture (88)",
                "Automotive & Boat (136)",
                "Beauty & Personal Care (141)",
                "Building & Construction (81)",
                "Communication & Media (89)",
                "Education & Children (27)",
                "Entertainment & Recreation (22)",
                "Financial Services (118)",
                "Health Care & Fitness (31)",
                "Manufacturing (57)",
                "Non-Classifiable Establishments (92)",
                "Online & Technology (115)",
                "Pet Services (188)",
                "Restaurants & Food (17)",
                "Retail (1)",
                "Service Businesses (20)",
                "Transportation & Storage (30)",
                "Travel (206)",
                "Wholesale & Distributors (78)"
              ]
            }
          },
          "minAskingPrice": {
            "title": "Min asking price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include listings priced at or above this amount."
          },
          "maxAskingPrice": {
            "title": "Max asking price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include listings priced at or below this amount."
          },
          "minCashflow": {
            "title": "Min cash flow ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum annual cash flow (SDE)."
          },
          "maxCashflow": {
            "title": "Max cash flow ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum annual cash flow (SDE)."
          },
          "minGrossIncome": {
            "title": "Min gross revenue ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum gross revenue / income."
          },
          "maxGrossIncome": {
            "title": "Max gross revenue ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum gross revenue / income."
          },
          "establishmentDate": {
            "title": "Established after (year)",
            "minimum": 1800,
            "type": "integer",
            "description": "Only include businesses established after this year, e.g. 2010."
          },
          "limit": {
            "title": "Max listings per URL",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum listings to save per search URL or query.",
            "default": 5
          },
          "enrich_data": {
            "title": "Enrich with listing details",
            "type": "boolean",
            "description": "Fetch each listing's detail page for the full description, financials (revenue, EBITDA, FF&E), lease terms, broker, and business sections. Individual listing URLs are always enriched.",
            "default": true
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "BizBuySell blocks datacenter and residential IPs, so the Apify Proxy \"Unblocker\" group is required.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "UNBLOCKER"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}