{
  "openapi": "3.0.1",
  "info": {
    "title": "BizQuest Data Extractor",
    "description": "BizQuest scraper that pulls listing titles, asking prices, locations, and cash flow from search results, so you can track the business-for-sale market without clicking through pages manually.",
    "version": "0.0",
    "x-build-id": "vCLLSR7zwsg6CHgNv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kawsar~bizquest-data-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kawsar-bizquest-data-extractor",
        "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/kawsar~bizquest-data-extractor/runs": {
      "post": {
        "operationId": "runs-sync-kawsar-bizquest-data-extractor",
        "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/kawsar~bizquest-data-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-kawsar-bizquest-data-extractor",
        "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": {
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "One or more BizQuest search URLs to scrape. Paste any URL from BizQuest.com — the actor pages through all results. When provided, Category, State, and Keywords are ignored.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "auto-and-automotive-businesses-for-sale",
              "auto-body-and-repair-businesses-for-sale",
              "auto-dealers-for-sale",
              "car-washes-for-sale",
              "gas-stations-for-sale",
              "building-and-construction-services-businesses-for-sale",
              "business-services-businesses-for-sale",
              "commercial-cleaning-and-janitorial-businesses-for-sale",
              "staffing-businesses-for-sale",
              "clothing-and-fashion-businesses-for-sale",
              "communication-and-media-businesses-for-sale",
              "educational-businesses-for-sale",
              "day-care-and-child-care-centers-for-sale",
              "schools-for-sale",
              "entertainment-and-leisure-businesses-for-sale",
              "hotels-and-motels-for-sale",
              "financial-businesses-for-sale",
              "insurance-agents-businesses-for-sale",
              "food-and-beverage-businesses-for-sale",
              "restaurants-for-sale",
              "bars-and-taverns-for-sale",
              "catering-services-businesses-for-sale",
              "grocery-and-supermarkets-businesses-for-sale",
              "liquor-stores-for-sale",
              "vending-machines-and-routes-businesses-for-sale",
              "hair-and-beauty-businesses-for-sale",
              "beauty-salons-and-barber-shops-businesses-for-sale",
              "health-and-medical-businesses-for-sale",
              "dental-practices-businesses-for-sale",
              "health-clubs-gyms-and-fitness-centers-for-sale",
              "medical-practices-businesses-for-sale",
              "medical-clinics-for-sale",
              "pharmacies-for-sale",
              "home-and-garden-businesses-for-sale",
              "landscaping-services-businesses-for-sale",
              "internet-related-businesses-for-sale",
              "e-commerce-and-e-tailers-businesses-for-sale",
              "established-websites-for-sale",
              "manufacturing-businesses-for-sale",
              "moving-storage-and-delivery-businesses-for-sale",
              "moving-and-trucking-companies-for-sale",
              "self-storage-businesses-for-sale",
              "personal-businesses-for-sale",
              "coin-laundry-and-laundromat-businesses-for-sale",
              "dry-cleaning-and-laundry-businesses-for-sale",
              "professional-services-businesses-for-sale",
              "consulting-businesses-for-sale",
              "real-estate-listings",
              "retail-stores-for-sale",
              "convenience-stores-for-sale",
              "franchise-businesses-for-sale",
              "pet-stores-and-supplies-businesses-for-sale",
              "technology-businesses-for-sale",
              "software-and-internet-developers-businesses-for-sale",
              "transportation-businesses-for-sale",
              "shipping-and-transportation-businesses-for-sale",
              "taxi-and-limousine-businesses-for-sale",
              "wholesale-and-distribution-businesses-for-sale"
            ],
            "type": "string",
            "description": "Filter by industry or business category. Select a category to scrape all matching listings. Combine with State to narrow the search further."
          },
          "state": {
            "title": "State",
            "enum": [
              "",
              "alabama-al",
              "alaska-ak",
              "arizona-az",
              "arkansas-ar",
              "california-ca",
              "colorado-co",
              "connecticut-ct",
              "delaware-de",
              "florida-fl",
              "georgia-ga",
              "hawaii-hi",
              "idaho-id",
              "illinois-il",
              "indiana-in",
              "iowa-ia",
              "kansas-ks",
              "kentucky-ky",
              "louisiana-la",
              "maine-me",
              "maryland-md",
              "massachusetts-ma",
              "michigan-mi",
              "minnesota-mn",
              "mississippi-ms",
              "missouri-mo",
              "montana-mt",
              "nebraska-ne",
              "nevada-nv",
              "new-hampshire-nh",
              "new-jersey-nj",
              "new-mexico-nm",
              "new-york-ny",
              "north-carolina-nc",
              "north-dakota-nd",
              "ohio-oh",
              "oklahoma-ok",
              "oregon-or",
              "pennsylvania-pa",
              "rhode-island-ri",
              "south-carolina-sc",
              "south-dakota-sd",
              "tennessee-tn",
              "texas-tx",
              "utah-ut",
              "vermont-vt",
              "virginia-va",
              "washington-wa",
              "washington-dc-dc",
              "west-virginia-wv",
              "wisconsin-wi",
              "wyoming-wy"
            ],
            "type": "string",
            "description": "Filter listings by US state. Works on its own or combined with Category."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Search keyword(s) to filter listings (e.g. 'laundromat', 'auto shop', 'franchise coffee'). Used when no Search URLs are provided."
          },
          "minPrice": {
            "title": "Min asking price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price filter in US dollars (e.g. 50000 for $50,000)."
          },
          "maxPrice": {
            "title": "Max asking price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price filter in US dollars (e.g. 500000 for $500,000)."
          },
          "fetchImages": {
            "title": "Fetch and store images",
            "type": "boolean",
            "description": "Download each listing's first image and save it to the Key-Value Store so the URL works without any special headers. Increases run time and compute units. Off by default.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of listings to collect per run.",
            "default": 50
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Per-request timeout in seconds.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}