{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dns-coffee/json-schema/dns-coffee-iphistory-schema.json",
  "title": "IPHistory",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dns-coffee-stats-api-openapi.yml#/components/schemas/IPHistory",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "dates": {
      "description": "Dates of the series, ascending. Parallel to ipv4, ipv6, stale_ipv4 and stale_ipv6.",
      "items": {
        "format": "date-time",
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "ipv4": {
      "description": "Number of distinct IPv4 addresses active in glue records on the matching date, leaving out the stale addresses counted in stale_ipv4. ipv4 + stale_ipv4 is every IPv4 address in glue on that date.",
      "items": {
        "format": "int64",
        "type": "integer"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "ipv6": {
      "description": "Number of distinct IPv6 addresses active in glue records on the matching date, leaving out the stale addresses counted in stale_ipv6. ipv6 + stale_ipv6 is every IPv6 address in glue on that date.",
      "items": {
        "format": "int64",
        "type": "integer"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "stale_ipv4": {
      "description": "Number of distinct IPv4 addresses on the matching date whose only glue was in zones already stale on that date (no zone file received for over six months). An address counts here from the later of the day the last of its stale zones became stale (six months after that zone's last import) and the day after its glue in every other zone ended. Only addresses whose glue is entirely in stale zones today are split out; zero on every date before the first of them became stale.",
      "items": {
        "format": "int64",
        "type": "integer"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "stale_ipv6": {
      "description": "Number of distinct IPv6 addresses on the matching date whose only glue was in zones already stale on that date, on the same rule as stale_ipv4.",
      "items": {
        "format": "int64",
        "type": "integer"
      },
      "type": [
        "array",
        "null"
      ]
    }
  },
  "required": [
    "dates",
    "ipv4",
    "ipv6",
    "stale_ipv4",
    "stale_ipv6"
  ],
  "type": "object"
}