{
  "openapi": "3.0.1",
  "info": {
    "title": "BizQuest Scraper",
    "description": "Find BizQuest.com business-for-sale listings for a keyword and optional US state through Google Images results, without opening bizquest.com. Returns listing ID, page URL, title and location as Google shows them. No asking price, cash flow or details.",
    "version": "0.1",
    "x-build-id": "bx2Upy5fcSgUfnaIe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapeai~bizquest-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapeai-bizquest-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/scrapeai~bizquest-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapeai-bizquest-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/scrapeai~bizquest-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapeai-bizquest-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": {
          "dataSource": {
            "title": "Data source",
            "enum": [
              "google-serp",
              "site"
            ],
            "type": "string",
            "description": "Google Search results are read through the Apify GOOGLE_SERP proxy group (see \"Google result source\": Google Images by default) and return the listing URL, the listing ID and the title; the images source adds the location, the web source the result text with asking price or cash flow when Google prints them. The site option requests the BizQuest browse pages themselves once through the proxy below; robots.txt is read first and the run stops without requesting any page if it cannot be read or disallows the path; BizQuest's bot protection currently answers HTTP 403 or drops the connection, and the run then fails without retrying.",
            "default": "google-serp"
          },
          "resultSource": {
            "title": "Google result source",
            "enum": [
              "images",
              "web"
            ],
            "type": "string",
            "description": "Only for the Google Search data source. Images (default): reads one Google Images result page per search; every image result gives the listing URL, the listing title and the location, but no result text, asking price or cash flow. Web: reads Google web results, which also give the result text (with the asking price or cash flow when Google prints them); Google often prints only opaque redirect links instead of the result URLs, which the actor never follows, so many results (sometimes all) are lost.",
            "default": "images"
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Google Search source: added to the Google query (for example 'restaurant'); results are what Google ranks for it. Site source: case-insensitive phrase filter over the listing title and summary."
          },
          "location": {
            "title": "US state name or abbreviation",
            "type": "string",
            "description": "Google Search source: the state name is added to the Google query. Google Images results show the location of every listing, so results whose state is another one (or not shown) are left out; the web source does not show the location, so its results are not checked. Site source: resolved against the state links on BizQuest and every output location must match. For cities/counties use keyword words or a native filtered start URL."
          },
          "startUrls": {
            "title": "BizQuest search URLs",
            "type": "array",
            "description": "Public BizQuest browse/search URLs. Site source: the pages that are requested; query strings and source Next links are preserved. Google Search source: the URLs are not requested, only their path words (a category or state) are added to the Google query.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Global listing limit",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum distinct listings across all searches or start URLs. Google Images results are limited to what one Google page shows (typically 15 to 70 listings per search), so the run can return fewer.",
            "default": 50
          },
          "maxPages": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Google Search source, web results only: Google result pages to read per search (10 results each; each page is billed as one search by the GOOGLE_SERP proxy). Google Images results are read with one request per search, because the start offset does not page through image results reliably. Site source: maximum source-provided result pages per start URL.",
            "default": 3
          },
          "googleCountry": {
            "title": "Google country code",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Google Search source: two-letter country code passed to Google (the gl parameter). It only changes ranking slightly because results are limited to bizquest.com listing pages.",
            "default": "gb"
          },
          "fetchDetails": {
            "title": "Attempt detail pages (site source only, experimental)",
            "type": "boolean",
            "description": "Site source only: attempts each public detail URL once. Source errors are reported and the listing summary remains labelled. Ignored by the Google Search source, which never opens listing pages.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy for the site source",
            "type": "object",
            "description": "Used only when the data source is 'site'. The Google Search source always uses the GOOGLE_SERP proxy group. BizQuest answered datacenter and US residential proxies with HTTP 403 or a dropped connection when this actor was last verified (November 2026).",
            "default": {
              "apifyProxyCountry": "US",
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "targetInput": {
            "title": "Legacy nested input",
            "type": "object",
            "description": "Optional legacy input mapping. The smallest positive top-level or nested item limit is retained.",
            "additionalProperties": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}