{
  "openapi": "3.0.1",
  "info": {
    "title": "BizBuySell Scraper",
    "description": "BizBuySell Scraper: Scrape businesses for sale from BizBuySell by state, city, industry, price or cash flow: asking price, cash flow, revenue, EBITDA, year established, broker.",
    "version": "0.1",
    "x-build-id": "Z3wUjw4CoJBeVIHPp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automly~bizbuysell-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automly-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/automly~bizbuysell-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automly-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/automly~bizbuysell-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automly-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": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Enter US states, cities or counties, like \"Texas\", \"TX\", \"Austin, TX\" or \"Travis County, TX\". Leave empty to search all of BizBuySell (with an industry or a filter).",
            "items": {
              "type": "string"
            }
          },
          "industries": {
            "title": "Industries",
            "uniqueItems": true,
            "type": "array",
            "description": "Pick one or more industries. With locations, every location is searched for every industry.",
            "items": {
              "type": "string",
              "enum": [
                "agriculture",
                "automotive-boat",
                "beauty-personal-care",
                "building-construction",
                "communication-media",
                "education-children",
                "entertainment-recreation",
                "financial-services",
                "health-care-fitness",
                "manufacturing",
                "non-classifiable",
                "online-technology",
                "pet-services",
                "real-estate",
                "restaurants-food",
                "retail",
                "service",
                "transportation-storage",
                "travel",
                "wholesale-distribution"
              ],
              "enumTitles": [
                "Agriculture",
                "Automotive & Boat",
                "Beauty & Personal Care",
                "Building & Construction",
                "Communication & Media",
                "Education & Children",
                "Entertainment & Recreation",
                "Financial Services",
                "Health Care & Fitness",
                "Manufacturing",
                "Non-Classifiable Establishments",
                "Online & Technology",
                "Pet Services",
                "Real Estate",
                "Restaurants & Food",
                "Retail",
                "Service Businesses",
                "Transportation & Storage",
                "Travel",
                "Wholesale & Distributors"
              ]
            }
          },
          "startUrls": {
            "title": "BizBuySell links",
            "type": "array",
            "description": "Paste BizBuySell search links (a state, city, industry or any search with filters set on the site) and links to single listings, one per line.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max listings per search",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many listings to save for each search (location, industry or link). Set 0 for every listing the search has.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include full listing details",
            "type": "boolean",
            "description": "Open each listing's page for gross revenue, inventory, FF&E, real estate, year established, employees, reason for selling, financing, franchise, industry and the full description.",
            "default": false
          },
          "askingPriceMin": {
            "title": "Asking price from",
            "minimum": 0,
            "type": "integer",
            "description": "Only businesses asking at least this much, USD."
          },
          "askingPriceMax": {
            "title": "Asking price up to",
            "minimum": 0,
            "type": "integer",
            "description": "Only businesses asking at most this much, USD."
          },
          "cashFlowMin": {
            "title": "Cash flow from",
            "minimum": 0,
            "type": "integer",
            "description": "Only businesses with at least this cash flow (SDE), USD."
          },
          "cashFlowMax": {
            "title": "Cash flow up to",
            "minimum": 0,
            "type": "integer",
            "description": "Only businesses with at most this cash flow (SDE), USD."
          },
          "grossRevenueMin": {
            "title": "Gross revenue from",
            "minimum": 0,
            "type": "integer",
            "description": "Only businesses with at least this gross revenue, USD."
          },
          "grossRevenueMax": {
            "title": "Gross revenue up to",
            "minimum": 0,
            "type": "integer",
            "description": "Only businesses with at most this gross revenue, USD."
          },
          "listingTypes": {
            "title": "Listing types",
            "uniqueItems": true,
            "type": "array",
            "description": "Pick listing types to include. Leave empty for all of them.",
            "items": {
              "type": "string",
              "enum": [
                "established",
                "assetSale",
                "startUp",
                "realEstate"
              ],
              "enumTitles": [
                "Established businesses",
                "Asset sales",
                "Start-ups",
                "Real estate"
              ]
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Only listings that mention this word or phrase, like \"pizza\" or \"car wash\"."
          },
          "realEstateIncluded": {
            "title": "Real estate included",
            "type": "boolean",
            "description": "Only businesses sold with their real estate.",
            "default": false
          },
          "sellerFinancing": {
            "title": "Seller financing available",
            "type": "boolean",
            "description": "Only businesses whose seller offers financing.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The default works for most runs. If results come back empty, try a different proxy option.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}