{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rankparse-com/json-schema/rankparse-com-crawl-history-schema.json",
  "title": "CrawlHistory",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rankparse-com-openapi.yaml#/components/schemas/CrawlHistory",
  "type": "object",
  "required": [
    "domain",
    "first_seen",
    "last_seen",
    "total_snapshots",
    "total_snapshots_capped",
    "source"
  ],
  "properties": {
    "domain": {
      "type": "string"
    },
    "first_seen": {
      "type": [
        "string",
        "null"
      ],
      "description": "Date of the earliest archived snapshot, YYYY-MM-DD. Exact when total_snapshots is a number and total_snapshots_capped is false. Otherwise best-effort, from the counted captures plus the homepage, or only the homepage when total_snapshots is null."
    },
    "last_seen": {
      "type": [
        "string",
        "null"
      ],
      "description": "Date of the most recent archived snapshot, YYYY-MM-DD. Exact when total_snapshots is a number and total_snapshots_capped is false. Otherwise best-effort, from the counted captures plus the homepage, or only the homepage when total_snapshots is null."
    },
    "total_snapshots": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 10000,
      "description": "Number of archived captures, counted up to 10,000. 0 when the archive has no captures, null when the count lookup failed."
    },
    "total_snapshots_capped": {
      "type": "boolean",
      "description": "True when the count reached 10,000, so the real total is at least that."
    },
    "source": {
      "type": "string",
      "enum": [
        "wayback_machine"
      ]
    }
  }
}