{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrapeselect-com/json-schema/scrapeselect-com-recommend-response-schema.json",
  "title": "RecommendResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scrapeselect-com-openapi.json#/components/schemas/RecommendResponse",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "recommendation_available",
        "requirements_not_feasible"
      ],
      "title": "Status"
    },
    "recommended_architecture": {
      "$ref": "#/$defs/Architecture"
    },
    "confidence": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ],
      "title": "Confidence"
    },
    "requirements": {
      "$ref": "#/$defs/RecommendRequest-Output"
    },
    "assumptions": {
      "items": {
        "$ref": "#/$defs/AssumptionOut"
      },
      "type": "array",
      "title": "Assumptions"
    },
    "providers": {
      "items": {
        "$ref": "#/$defs/CandidateOut"
      },
      "type": "array",
      "title": "Providers"
    },
    "alternatives": {
      "items": {
        "$ref": "#/$defs/CandidateOut"
      },
      "type": "array",
      "title": "Alternatives"
    },
    "excluded": {
      "items": {
        "$ref": "#/$defs/ExcludedOut"
      },
      "type": "array",
      "title": "Excluded"
    },
    "minimum_expected_budget_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Minimum Expected Budget Usd"
    },
    "suggestions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Suggestions"
    },
    "run_id": {
      "type": "string",
      "format": "uuid",
      "title": "Run Id"
    },
    "engine_version": {
      "type": "string",
      "title": "Engine Version"
    },
    "recommender_version": {
      "type": "string",
      "title": "Recommender Version"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "type": "object",
  "required": [
    "status",
    "recommended_architecture",
    "confidence",
    "requirements",
    "assumptions",
    "providers",
    "alternatives",
    "excluded",
    "minimum_expected_budget_usd",
    "suggestions",
    "run_id",
    "engine_version",
    "recommender_version",
    "meta"
  ],
  "$defs": {
    "AntiBotLevel": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "unknown"
      ],
      "title": "AntiBotLevel"
    },
    "Architecture": {
      "type": "string",
      "enum": [
        "managed_scraping_api",
        "scraping_api_plus_fallback",
        "self_hosted"
      ],
      "title": "Architecture"
    },
    "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"
    },
    "CandidateOut": {
      "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"
        },
        "affiliate": {
          "type": "boolean",
          "title": "Affiliate"
        },
        "architecture": {
          "type": "string",
          "enum": [
            "managed_api",
            "self_managed"
          ],
          "title": "Architecture"
        },
        "plan": {
          "$ref": "#/$defs/PlanRef"
        },
        "fit_score": {
          "type": "integer",
          "title": "Fit Score"
        },
        "score_breakdown": {
          "items": {
            "$ref": "#/$defs/ScoreLineOut"
          },
          "type": "array",
          "title": "Score Breakdown"
        },
        "estimated_monthly_cost": {
          "$ref": "#/$defs/CostRangeOut"
        },
        "cost_per_1k_pages_usd": {
          "type": "number",
          "title": "Cost Per 1K Pages Usd"
        },
        "reasons": {
          "items": {
            "$ref": "#/$defs/NoteOut"
          },
          "type": "array",
          "title": "Reasons"
        },
        "limitations": {
          "items": {
            "$ref": "#/$defs/NoteOut"
          },
          "type": "array",
          "title": "Limitations"
        },
        "evidence": {
          "items": {
            "$ref": "#/$defs/SourceOut"
          },
          "type": "array",
          "title": "Evidence"
        },
        "checked_at": {
          "type": "string",
          "title": "Checked At"
        }
      },
      "type": "object",
      "required": [
        "provider",
        "provider_name",
        "product",
        "product_name",
        "affiliate",
        "architecture",
        "plan",
        "fit_score",
        "score_breakdown",
        "estimated_monthly_cost",
        "cost_per_1k_pages_usd",
        "reasons",
        "limitations",
        "evidence",
        "checked_at"
      ],
      "title": "CandidateOut"
    },
    "Capability": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high"
      ],
      "title": "Capability"
    },
    "CostRangeOut": {
      "properties": {
        "low": {
          "type": "number",
          "title": "Low"
        },
        "expected": {
          "type": "number",
          "title": "Expected"
        },
        "high": {
          "type": "number",
          "title": "High"
        },
        "currency": {
          "type": "string",
          "const": "USD",
          "title": "Currency",
          "default": "USD"
        }
      },
      "type": "object",
      "required": [
        "low",
        "expected",
        "high"
      ],
      "title": "CostRangeOut"
    },
    "ExcludedOut": {
      "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"
        },
        "reasons": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Reasons"
        }
      },
      "type": "object",
      "required": [
        "provider",
        "provider_name",
        "product",
        "product_name",
        "reasons"
      ],
      "title": "ExcludedOut"
    },
    "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"
    },
    "NoteOut": {
      "properties": {
        "text": {
          "type": "string",
          "title": "Text"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source"
        }
      },
      "type": "object",
      "required": [
        "text",
        "source"
      ],
      "title": "NoteOut"
    },
    "PlanRef": {
      "properties": {
        "key": {
          "type": "string",
          "title": "Key"
        },
        "name": {
          "type": "string",
          "title": "Name"
        }
      },
      "type": "object",
      "required": [
        "key",
        "name"
      ],
      "title": "PlanRef"
    },
    "RecommendRequest-Output": {
      "properties": {
        "workload": {
          "$ref": "#/$defs/Workload-Output"
        },
        "budget_usd": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Budget Usd"
        },
        "requires_login_session": {
          "type": "boolean",
          "title": "Requires Login Session",
          "default": false
        },
        "team_maintenance_capability": {
          "$ref": "#/$defs/Capability",
          "default": "medium"
        }
      },
      "type": "object",
      "required": [
        "workload"
      ],
      "title": "RecommendRequest"
    },
    "ScoreLineOut": {
      "properties": {
        "key": {
          "type": "string",
          "title": "Key"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "points": {
          "type": "integer",
          "title": "Points"
        },
        "max_points": {
          "type": "integer",
          "title": "Max Points"
        },
        "why": {
          "type": "string",
          "title": "Why"
        }
      },
      "type": "object",
      "required": [
        "key",
        "label",
        "points",
        "max_points",
        "why"
      ],
      "title": "ScoreLineOut"
    },
    "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."
    }
  }
}