{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentseo-dev/json-schema/agentseo-dev-extract-response-schema.json",
  "title": "ExtractResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentseo-dev-extract-api-openapi.yml#/components/schemas/ExtractResponse",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "text",
        "html"
      ]
    },
    "content": {
      "type": "string"
    },
    "length": {
      "type": "integer"
    },
    "sanitized": {
      "type": "boolean"
    },
    "metadata": {
      "$ref": "#/$defs/ExtractMetadata"
    },
    "agent_support": {
      "$ref": "#/$defs/ExtractAgentSupport"
    }
  },
  "$defs": {
    "AgentWorkflowNextCall": {
      "type": "object",
      "properties": {
        "endpoint": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        }
      }
    },
    "ExtractAgentSupport": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "extraction_quality": {
          "type": "string",
          "enum": [
            "high",
            "medium",
            "low"
          ]
        },
        "notable_sections": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "recommended_next_calls": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentWorkflowNextCall"
          }
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "confidence": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        }
      }
    },
    "ExtractMetadata": {
      "type": "object",
      "properties": {
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "meta_description": {
          "type": [
            "string",
            "null"
          ]
        },
        "canonical_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "headings": {
          "type": "object",
          "properties": {
            "h1": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "h2": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "h3": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "word_count": {
          "type": "integer"
        },
        "excerpt": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}