{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrapeselect-com/json-schema/scrapeselect-com-estimate-response-schema.json",
  "title": "EstimateResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scrapeselect-com-openapi.json#/components/schemas/EstimateResponse",
  "properties": {
    "workload": {
      "$ref": "#/$defs/Workload-Output"
    },
    "assumptions": {
      "items": {
        "$ref": "#/$defs/AssumptionOut"
      },
      "type": "array",
      "title": "Assumptions"
    },
    "estimates": {
      "items": {
        "$ref": "#/$defs/ProductEstimateOut"
      },
      "type": "array",
      "title": "Estimates"
    },
    "engine_version": {
      "type": "string",
      "title": "Engine Version"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "type": "object",
  "required": [
    "workload",
    "assumptions",
    "estimates",
    "engine_version",
    "meta"
  ],
  "$defs": {
    "AntiBotLevel": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "unknown"
      ],
      "title": "AntiBotLevel"
    },
    "AssumptionOut": {
      "properties": {
        "key": {
          "type": "string",
          "title": "Key"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "value": {
          "type": "string",
          "title": "Value"
        },
        "origin": {
          "type": "string",
          "enum": [
            "user",
            "default",
            "editorial",
            "public_observation"
          ],
          "title": "Origin"
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Note"
        }
      },
      "type": "object",
      "required": [
        "key",
        "label",
        "value",
        "origin",
        "note"
      ],
      "title": "AssumptionOut"
    },
    "Freshness": {
      "type": "string",
      "enum": [
        "fresh",
        "recent",
        "stale"
      ],
      "title": "Freshness"
    },
    "Meta": {
      "properties": {
        "data_checked_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Checked At"
        },
        "freshness": {
          "$ref": "#/$defs/Freshness"
        },
        "schema_version": {
          "type": "string",
          "title": "Schema Version"
        }
      },
      "type": "object",
      "required": [
        "data_checked_at",
        "freshness",
        "schema_version"
      ],
      "title": "Meta"
    },
    "ProductEstimateOut": {
      "properties": {
        "provider": {
          "type": "string",
          "title": "Provider"
        },
        "provider_name": {
          "type": "string",
          "title": "Provider Name"
        },
        "product": {
          "type": "string",
          "title": "Product"
        },
        "product_name": {
          "type": "string",
          "title": "Product Name"
        },
        "category": {
          "type": "string",
          "title": "Category"
        },
        "billing_model": {
          "type": "string",
          "title": "Billing Model"
        },
        "architecture": {
          "type": "string",
          "enum": [
            "managed_api",
            "self_managed"
          ],
          "title": "Architecture"
        },
        "feasible": {
          "type": "boolean",
          "title": "Feasible"
        },
        "low": {
          "anyOf": [
            {
              "$ref": "#/$defs/QuoteOut"
            },
            {
              "type": "null"
            }
          ]
        },
        "expected": {
          "anyOf": [
            {
              "$ref": "#/$defs/QuoteOut"
            },
            {
              "type": "null"
            }
          ]
        },
        "high": {
          "anyOf": [
            {
              "$ref": "#/$defs/QuoteOut"
            },
            {
              "type": "null"
            }
          ]
        },
        "rejected_plans": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Rejected Plans"
        },
        "sources": {
          "items": {
            "$ref": "#/$defs/SourceOut"
          },
          "type": "array",
          "title": "Sources"
        }
      },
      "type": "object",
      "required": [
        "provider",
        "provider_name",
        "product",
        "product_name",
        "category",
        "billing_model",
        "architecture",
        "feasible",
        "low",
        "expected",
        "high",
        "rejected_plans",
        "sources"
      ],
      "title": "ProductEstimateOut"
    },
    "QuoteOut": {
      "properties": {
        "plan_key": {
          "type": "string",
          "title": "Plan Key"
        },
        "plan_name": {
          "type": "string",
          "title": "Plan Name"
        },
        "monthly_cost_usd": {
          "type": "number",
          "title": "Monthly Cost Usd"
        },
        "cost_per_1k_pages_usd": {
          "type": "number",
          "title": "Cost Per 1K Pages Usd"
        }
      },
      "type": "object",
      "required": [
        "plan_key",
        "plan_name",
        "monthly_cost_usd",
        "cost_per_1k_pages_usd"
      ],
      "title": "QuoteOut"
    },
    "SourceOut": {
      "properties": {
        "key": {
          "type": "string",
          "title": "Key"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "observed_at": {
          "type": "string",
          "format": "date-time",
          "title": "Observed At"
        },
        "excerpts": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Excerpts"
        },
        "fact_type": {
          "type": "string",
          "title": "Fact Type"
        },
        "freshness": {
          "$ref": "#/$defs/Freshness"
        }
      },
      "type": "object",
      "required": [
        "key",
        "url",
        "title",
        "observed_at",
        "excerpts",
        "fact_type",
        "freshness"
      ],
      "title": "SourceOut"
    },
    "Workload-Output": {
      "properties": {
        "successful_pages_per_month": {
          "type": "integer",
          "maximum": 1000000000.0,
          "minimum": 1.0,
          "title": "Successful Pages Per Month"
        },
        "javascript_ratio": {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
          "title": "Javascript Ratio",
          "default": "0"
        },
        "anti_bot_level": {
          "$ref": "#/$defs/AntiBotLevel",
          "default": "unknown"
        },
        "target_country": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Target Country"
        },
        "country_required": {
          "type": "boolean",
          "title": "Country Required",
          "default": true
        },
        "domain_class": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 40,
              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Domain Class",
          "description": "Target category with special pricing, e.g. 'amazon'."
        },
        "peak_concurrency": {
          "type": "integer",
          "maximum": 100000.0,
          "minimum": 1.0,
          "title": "Peak Concurrency",
          "default": 10
        },
        "monthly_billing_only": {
          "type": "boolean",
          "title": "Monthly Billing Only",
          "default": false
        },
        "expected_success_rate": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expected Success Rate"
        },
        "average_page_size_kb": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Average Page Size Kb"
        },
        "average_browser_seconds": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Average Browser Seconds"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "successful_pages_per_month"
      ],
      "title": "Workload",
      "description": "Monthly scraping workload. Unset optional fields fall back to visible assumptions."
    }
  }
}