{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentseo-dev/json-schema/agentseo-dev-analyze-serp-response-schema.json",
  "title": "AnalyzeSerpResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentseo-dev-analyze-api-openapi.yml#/components/schemas/AnalyzeSerpResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "search_parameters": {
      "type": "object",
      "additionalProperties": true
    },
    "serp_features": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "keyword_metrics": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "serp_opportunity": {
      "$ref": "#/$defs/SerpOpportunity"
    },
    "markdown_summary": {
      "type": "string"
    }
  },
  "$defs": {
    "AgentWorkflowNextCall": {
      "type": "object",
      "properties": {
        "endpoint": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        }
      }
    },
    "SerpOpportunity": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "likely_intent": {
          "type": "string",
          "enum": [
            "informational",
            "commercial_investigation",
            "transactional",
            "local"
          ]
        },
        "competition_level": {
          "type": "string",
          "enum": [
            "high",
            "medium",
            "low"
          ]
        },
        "dominant_features": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "recommended_content_format": {
          "type": "string",
          "enum": [
            "answer_page",
            "comparison_page",
            "guide",
            "local_landing_page",
            "service_page"
          ]
        },
        "top_domains": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "recommended_next_calls": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentWorkflowNextCall"
          }
        },
        "confidence": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        }
      }
    }
  }
}