{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentseo-dev/json-schema/agentseo-dev-site-sitemap-audit-params-schema.json",
  "title": "SiteSitemapAuditParams",
  "description": "Provide sitemap_url or sitemap_xml. Optional crawl and internal-link exports improve orphan-page detection.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentseo-dev-site-api-openapi.yml#/components/schemas/SiteSitemapAuditParams",
  "type": "object",
  "properties": {
    "target": {
      "type": "string",
      "description": "Optional target brand, domain, or product."
    },
    "sitemap_url": {
      "type": "string",
      "format": "uri",
      "description": "Sitemap URL to fetch."
    },
    "sitemap_xml": {
      "type": "string",
      "minLength": 80,
      "maxLength": 2000000,
      "description": "Raw sitemap XML."
    },
    "max_sitemap_children": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10,
      "default": 3
    },
    "important_urls": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "type": "string",
        "format": "uri"
      },
      "default": []
    },
    "crawl_urls": {
      "type": "array",
      "maxItems": 5000,
      "items": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "source": {
            "type": "string",
            "maxLength": 80
          },
          "title": {
            "type": "string",
            "maxLength": 180
          },
          "status_code": {
            "type": "integer",
            "minimum": 100,
            "maximum": 599
          },
          "indexable": {
            "type": "boolean",
            "default": true
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          },
          "inbound_internal_links": {
            "type": "integer",
            "minimum": 0
          },
          "clicks": {
            "type": "number",
            "minimum": 0
          },
          "impressions": {
            "type": "number",
            "minimum": 0
          }
        }
      },
      "default": []
    },
    "internal_links": {
      "type": "array",
      "maxItems": 20000,
      "items": {
        "type": "object",
        "required": [
          "source_url",
          "target_url"
        ],
        "properties": {
          "source_url": {
            "type": "string",
            "format": "uri"
          },
          "target_url": {
            "type": "string",
            "format": "uri"
          },
          "anchor": {
            "type": "string",
            "maxLength": 160
          }
        }
      },
      "default": []
    }
  }
}