{
  "openapi": "3.0.1",
  "info": {
    "title": "Business-for-Sale Deal Screener & Valuation Tool",
    "description": "Turn BizBuySell, BizQuest, BusinessesForSale, and other business-for-sale datasets into ranked acquisition opportunities using valuation, DSCR, cash-on-cash return, buy-box scoring, deduplication, and price-change tracking.",
    "version": "1.0",
    "x-build-id": "ylryjaiMMTMxkaWbG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/craigtechservicesllc~business-for-sale-deal-screener/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-craigtechservicesllc-business-for-sale-deal-screener",
        "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/craigtechservicesllc~business-for-sale-deal-screener/runs": {
      "post": {
        "operationId": "runs-sync-craigtechservicesllc-business-for-sale-deal-screener",
        "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/craigtechservicesllc~business-for-sale-deal-screener/run-sync": {
      "post": {
        "operationId": "run-sync-craigtechservicesllc-business-for-sale-deal-screener",
        "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": {
          "items": {
            "title": "Listing records",
            "minItems": 1,
            "maxItems": 100000,
            "type": "array",
            "description": "Raw listing objects. Use this or datasetId, not both.",
            "items": {
              "type": "object"
            }
          },
          "datasetId": {
            "title": "Input dataset",
            "type": "string",
            "description": "Dataset containing raw listing objects. Use this or items, not both."
          },
          "previousDatasetId": {
            "title": "Previous dataset",
            "type": "string",
            "description": "Optional earlier raw or Actor-output dataset used for change detection."
          },
          "baseCurrency": {
            "title": "Analysis currency",
            "pattern": "^[A-Z]{3}$",
            "type": "string",
            "description": "Three-letter uppercase currency for monetary buy-box thresholds.",
            "default": "USD"
          },
          "defaultCurrency": {
            "title": "Default source currency",
            "pattern": "^[A-Z]{3}$",
            "type": "string",
            "description": "Currency assumed when a listing supplies no code or symbol.",
            "default": "USD"
          },
          "exchangeRates": {
            "title": "User-supplied exchange rates",
            "type": "object",
            "description": "Map of uppercase currency code to units of baseCurrency per one source-currency unit.",
            "default": {
              "USD": 1
            }
          },
          "financing": {
            "title": "Financing assumptions",
            "type": "object",
            "description": "Loan and equity assumptions used for debt service, DSCR, and cash-on-cash return.",
            "properties": {
              "downPaymentPercent": {
                "title": "Down payment",
                "description": "Percent of asking price paid as equity.",
                "type": "number",
                "minimum": 0,
                "maximum": 100,
                "default": 20
              },
              "annualInterestRatePercent": {
                "title": "Annual interest rate",
                "description": "Nominal annual loan interest rate in percent.",
                "type": "number",
                "minimum": 0,
                "maximum": 100,
                "default": 10
              },
              "loanTermYears": {
                "title": "Loan term",
                "description": "Fully amortizing loan term in years.",
                "type": "integer",
                "minimum": 1,
                "maximum": 40,
                "default": 10
              },
              "closingCosts": {
                "title": "Closing costs",
                "description": "Additional upfront closing costs in listing currency.",
                "type": "number",
                "minimum": 0,
                "default": 0
              },
              "workingCapital": {
                "title": "Working capital",
                "description": "Additional upfront working capital in listing currency.",
                "type": "number",
                "minimum": 0,
                "default": 0
              },
              "additionalAnnualDebtService": {
                "title": "Additional annual debt service",
                "description": "Other annual debt payments to add.",
                "type": "number",
                "minimum": 0,
                "default": 0
              },
              "earningsBasis": {
                "title": "Earnings basis",
                "description": "Earnings measure for DSCR and cash-on-cash return.",
                "type": "string",
                "editor": "select",
                "enum": [
                  "auto",
                  "sde",
                  "cashFlow",
                  "profit"
                ],
                "enumTitles": [
                  "Automatic: SDE, cash flow, profit",
                  "SDE",
                  "Cash flow",
                  "Profit"
                ],
                "default": "auto"
              }
            },
            "additionalProperties": false
          },
          "buyBox": {
            "title": "Buy-box thresholds",
            "type": "object",
            "description": "Only supplied thresholds are enforced. Monetary thresholds use baseCurrency.",
            "properties": {
              "minScore": {
                "title": "Minimum score",
                "description": "Minimum 0–100 score required to pass.",
                "type": "integer",
                "minimum": 0,
                "maximum": 100,
                "default": 70
              },
              "failOnMissingThresholdData": {
                "title": "Fail missing threshold data",
                "description": "Reject a listing when a configured threshold cannot be evaluated.",
                "type": "boolean",
                "default": true
              },
              "minAskingPrice": {
                "title": "Minimum asking price",
                "description": "Minimum asking price in baseCurrency.",
                "type": "number",
                "minimum": 0
              },
              "maxAskingPrice": {
                "title": "Maximum asking price",
                "description": "Maximum asking price in baseCurrency.",
                "type": "number",
                "minimum": 0
              },
              "minRevenue": {
                "title": "Minimum revenue",
                "description": "Minimum annual revenue in baseCurrency.",
                "type": "number",
                "minimum": 0
              },
              "minSde": {
                "title": "Minimum SDE",
                "description": "Minimum annual SDE in baseCurrency.",
                "type": "number",
                "minimum": 0
              },
              "minCashFlow": {
                "title": "Minimum cash flow",
                "description": "Minimum annual cash flow in baseCurrency.",
                "type": "number",
                "minimum": 0
              },
              "maxPriceToSde": {
                "title": "Maximum price / SDE",
                "description": "Maximum acceptable asking-price-to-SDE multiple.",
                "type": "number",
                "minimum": 0.000001
              },
              "maxPriceToRevenue": {
                "title": "Maximum price / revenue",
                "description": "Maximum acceptable asking-price-to-revenue multiple.",
                "type": "number",
                "minimum": 0.000001
              },
              "minCashFlowYield": {
                "title": "Minimum cash-flow yield",
                "description": "Minimum annual cash flow divided by asking price, as a decimal.",
                "type": "number"
              },
              "minDscr": {
                "title": "Minimum DSCR",
                "description": "Minimum debt-service coverage ratio.",
                "type": "number",
                "minimum": 0
              },
              "minCashOnCashReturn": {
                "title": "Minimum cash-on-cash return",
                "description": "Minimum estimated annual cash-on-cash return, as a decimal.",
                "type": "number"
              },
              "allowedIndustries": {
                "title": "Allowed industries",
                "description": "Case-insensitive industry fragments that may pass.",
                "type": "array",
                "editor": "json",
                "items": {
                  "type": "string"
                }
              },
              "excludedIndustries": {
                "title": "Excluded industries",
                "description": "Case-insensitive industry fragments to reject.",
                "type": "array",
                "editor": "json",
                "items": {
                  "type": "string"
                }
              },
              "allowedLocations": {
                "title": "Allowed locations",
                "description": "Case-insensitive location fragments that may pass.",
                "type": "array",
                "editor": "json",
                "items": {
                  "type": "string"
                }
              },
              "excludedKeywords": {
                "title": "Excluded keywords",
                "description": "Case-insensitive title or industry fragments to reject.",
                "type": "array",
                "editor": "json",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "scoringWeights": {
            "title": "Scoring weights",
            "type": "object",
            "description": "Non-negative weights are normalized automatically and must total more than zero.",
            "properties": {
              "priceToSde": {
                "title": "Price / SDE",
                "description": "Weight for price-to-SDE scoring.",
                "type": "number",
                "minimum": 0,
                "default": 25
              },
              "priceToRevenue": {
                "title": "Price / revenue",
                "description": "Weight for price-to-revenue scoring.",
                "type": "number",
                "minimum": 0,
                "default": 10
              },
              "cashFlowYield": {
                "title": "Cash-flow yield",
                "description": "Weight for cash-flow-yield scoring.",
                "type": "number",
                "minimum": 0,
                "default": 15
              },
              "dscr": {
                "title": "DSCR",
                "description": "Weight for DSCR scoring.",
                "type": "number",
                "minimum": 0,
                "default": 20
              },
              "cashOnCashReturn": {
                "title": "Cash-on-cash return",
                "description": "Weight for cash-on-cash-return scoring.",
                "type": "number",
                "minimum": 0,
                "default": 20
              },
              "dataCompleteness": {
                "title": "Data completeness",
                "description": "Weight for core-field completeness.",
                "type": "number",
                "minimum": 0,
                "default": 10
              }
            },
            "additionalProperties": false
          },
          "scoringBenchmarks": {
            "title": "Scoring benchmarks",
            "type": "object",
            "description": "Reference points used when a matching buy-box threshold is absent.",
            "properties": {
              "maxPriceToSde": {
                "title": "Price / SDE benchmark",
                "description": "Reference upper multiple.",
                "type": "number",
                "minimum": 0.000001,
                "default": 3
              },
              "maxPriceToRevenue": {
                "title": "Price / revenue benchmark",
                "description": "Reference upper multiple.",
                "type": "number",
                "minimum": 0.000001,
                "default": 1
              },
              "minCashFlowYield": {
                "title": "Cash-flow-yield benchmark",
                "description": "Reference minimum yield as a decimal.",
                "type": "number",
                "minimum": 0.000001,
                "default": 0.25
              },
              "minDscr": {
                "title": "DSCR benchmark",
                "description": "Reference minimum DSCR.",
                "type": "number",
                "minimum": 0.000001,
                "default": 1.5
              },
              "minCashOnCashReturn": {
                "title": "Cash-on-cash benchmark",
                "description": "Reference minimum return as a decimal.",
                "type": "number",
                "minimum": 0.000001,
                "default": 0.25
              }
            },
            "additionalProperties": false
          },
          "deduplication": {
            "title": "Deduplication",
            "type": "object",
            "description": "Controls exact source ID, URL, and conservative title/location deduplication.",
            "properties": {
              "enabled": {
                "title": "Enable deduplication",
                "description": "Remove duplicate current records before scoring.",
                "type": "boolean",
                "default": true
              },
              "titleLocationMatch": {
                "title": "Title/location matching",
                "description": "Use exact normalized title fingerprint plus location after ID and URL checks.",
                "type": "boolean",
                "default": true
              }
            },
            "additionalProperties": false
          },
          "includeRemovedRecords": {
            "title": "Emit removed records",
            "type": "boolean",
            "description": "Include unmatched previous listings as unscored, unbilled removed records.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}