{
  "openapi": "3.0.1",
  "info": {
    "title": "BizBuySell & BizQuest Deal Change Monitor",
    "description": "Monitor new business listings and changes to asking price, cash flow and revenue. Saved buyer searches produce structured alerts with original source links.",
    "version": "1.0",
    "x-build-id": "VS0c9X6oXgW8iwCRi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nickatnite79~bizbuysell-bizquest-deal-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nickatnite79-bizbuysell-bizquest-deal-change-monitor",
        "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/nickatnite79~bizbuysell-bizquest-deal-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-nickatnite79-bizbuysell-bizquest-deal-change-monitor",
        "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/nickatnite79~bizbuysell-bizquest-deal-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-nickatnite79-bizbuysell-bizquest-deal-change-monitor",
        "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": {
          "searchId": {
            "title": "Saved search ID",
            "pattern": "^[a-zA-Z0-9_-]{1,60}$",
            "type": "string",
            "description": "Stable name for this saved search; changing criteria creates a separate baseline.",
            "default": "default"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "State or city and state, e.g. Texas or Houston, TX. State names and abbreviations match. Unsupported routing falls back to a capped broad scan; exact sourceUrls are recommended.",
            "default": ""
          },
          "industry": {
            "title": "Industry",
            "type": "string",
            "description": "Match disclosed industry/category words. Known industries such as Restaurants generate verified category search routes; when an individual industry is unavailable, that verified source category scope may satisfy the filter. Unknown categories are never inferred from descriptions.",
            "default": ""
          },
          "minAskingPrice": {
            "title": "Minimum asking price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum disclosed asking price."
          },
          "maxAskingPrice": {
            "title": "Maximum asking price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum disclosed asking price."
          },
          "minCashFlow": {
            "title": "Minimum annual cash flow / SDE (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum disclosed cash flow/SDE. EBITDA is a separate field and never substituted."
          },
          "includeUnknownFinancials": {
            "title": "Include financially unverified matches",
            "type": "boolean",
            "description": "Allow null financials through price/cash-flow thresholds. They remain null and must be verified independently.",
            "default": false
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Select BizBuySell, BizQuest, or both. Established Apify collectors are used by default; native HTTP collection remains available.",
            "items": {
              "type": "string",
              "enum": [
                "bizbuysell",
                "bizquest"
              ],
              "enumTitles": [
                "BizBuySell",
                "BizQuest"
              ]
            },
            "default": [
              "bizbuysell",
              "bizquest"
            ]
          },
          "sourceUrls": {
            "title": "Exact source search or listing URLs",
            "type": "array",
            "description": "Optional HTTPS URLs copied from either marketplace. Search URL query filters are preserved. URLs must correspond to the selected sources. These override generated search URLs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "emitInitialListings": {
            "title": "Deliver listings on the first run",
            "type": "boolean",
            "description": "When disabled, the first successful scan establishes a silent baseline; listings first observed on later runs are still delivered.",
            "default": true
          },
          "fetchDetails": {
            "title": "Fetch listing detail pages",
            "type": "boolean",
            "description": "Enrich listings with publicly disclosed cash flow, revenue and EBITDA when available. Undisclosed or inaccessible fields remain unknown.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Selected proxy settings for Memo23 and optional native HTTP collection. The verified Memo23 detail test used Apify residential proxy. Proxy traffic may add platform cost. ParseForge manages its own browser/proxy.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxListingsPerSource": {
            "title": "Listing limit per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum distinct listings scanned per source, before local filters. Capped scans report partial coverage.",
            "default": 3
          },
          "maxPagesPerSource": {
            "title": "Search page limit per source",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum successfully parsed search pages per source.",
            "default": 1
          },
          "maxConcurrency": {
            "title": "Detail concurrency per source",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum concurrent detail requests for each source.",
            "default": 1
          },
          "minRequestIntervalMillis": {
            "title": "Minimum interval per source (ms)",
            "minimum": 250,
            "maximum": 60000,
            "type": "integer",
            "description": "Minimum time between request starts to each source, including retries.",
            "default": 1000
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "HTTP timeout for each attempt.",
            "default": 20
          },
          "maxRetries": {
            "title": "Retry count",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries for timeouts, rate limits, and server failures. Access denial is recorded without repeated attempts.",
            "default": 0
          },
          "stateStoreName": {
            "title": "Persistent state store name",
            "pattern": "^[a-zA-Z0-9_-]{1,60}$",
            "type": "string",
            "description": "Named key-value store reused across runs. Keep this stable; the per-run default store cannot maintain monitoring history.",
            "default": "biz-deal-monitor-state"
          },
          "bizbuysellCollector": {
            "title": "BizBuySell collector",
            "enum": [
              "parseforge",
              "native"
            ],
            "type": "string",
            "description": "The verified ParseForge collector uses its own supported browser. It is billed separately by Apify; current Free pricing is up to $0.19 per enriched listing. Native requests may be blocked.",
            "default": "parseforge"
          },
          "bizquestCollector": {
            "title": "BizQuest collector",
            "enum": [
              "memo23",
              "native"
            ],
            "type": "string",
            "description": "The verified Memo23 collector supports public listing details. It is billed separately by Apify. Native HTTP supports accessible search cards.",
            "default": "memo23"
          },
          "providerMaxChargeUsd": {
            "title": "Maximum provider charges per source (USD)",
            "minimum": 0.01,
            "maximum": 25,
            "type": "number",
            "description": "Apify pay-per-event charge cap for each selected provider run. With both sources, provider caps can total twice this value. Parent Actor compute/storage and provider platform usage may be additional. Check provider pricing before increasing limits.",
            "default": 1
          },
          "providerTimeoutSecs": {
            "title": "Provider timeout (seconds)",
            "minimum": 30,
            "maximum": 300,
            "type": "integer",
            "description": "Each child collector run is bounded by this timeout. Failed or unfinished provider runs do not become empty successful scans.",
            "default": 180
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}