{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ayrank-com/json-schema/ayrank-com-ai-crawler-ip-ranges-response-schema.json",
  "title": "AiCrawlerIpRangesResponse",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ayrank-com-openapi.json#/components/schemas/AiCrawlerIpRangesResponse",
  "type": "object",
  "required": [
    "generatedAt",
    "snapshotDate",
    "lists",
    "poweredBy"
  ],
  "properties": {
    "generatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When this response was built."
    },
    "snapshotDate": {
      "type": "string",
      "description": "Date of the saved copy used when a vendor file fails."
    },
    "lists": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "vendor",
          "url",
          "source",
          "fetchedAt",
          "creationTime",
          "prefixes",
          "error"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "openai-gptbot",
              "openai-searchbot",
              "openai-chatgpt-user",
              "openai-adsbot",
              "perplexity-bot",
              "perplexity-user",
              "anthropic-bots",
              "google-common-crawlers",
              "bing-bingbot",
              "apple-applebot",
              "commoncrawl-ccbot",
              "mistral-user",
              "mistral-index",
              "anthropic-claude-agent",
              "google-user-triggered-agents"
            ]
          },
          "vendor": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The vendor file."
          },
          "source": {
            "type": "string",
            "enum": [
              "live",
              "snapshot",
              "missing"
            ],
            "description": "live: fetched from the vendor for this response. snapshot: the dated copy, because the fetch failed."
          },
          "fetchedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Fetch time for live, the date that list was saved for snapshot."
          },
          "creationTime": {
            "type": [
              "string",
              "null"
            ],
            "description": "The creationTime the vendor wrote in the file (for a SAIL file, its modified date)."
          },
          "prefixes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IPv4 and IPv6 CIDR ranges."
          },
          "invalidDropped": {
            "type": "integer",
            "description": "Entries dropped because they were not valid CIDRs."
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the live fetch failed, for snapshot entries."
          }
        }
      }
    },
    "poweredBy": {
      "$ref": "#/$defs/PoweredBy"
    }
  },
  "$defs": {
    "PoweredBy": {
      "type": "object",
      "required": [
        "text",
        "url"
      ],
      "properties": {
        "text": {
          "type": "string",
          "const": "Powered by AY Rank"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}