{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dns-coffee/json-schema/dns-coffee-domain-search-list-schema.json",
  "title": "DomainSearchList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dns-coffee-search-api-openapi.yml#/components/schemas/DomainSearchList",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "candidate_cap_hit": {
      "description": "True when the candidate scan stopped early at its cap: the results are the newest of the first matches found, not a complete answer.",
      "type": "boolean"
    },
    "domains": {
      "description": "The matching domains, newest first.",
      "items": {
        "$ref": "#/$defs/DomainSearchResult"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "include_archived": {
      "description": "Whether archived (no longer active) domains were included.",
      "type": "boolean"
    },
    "term": {
      "description": "The normalized term that was searched.",
      "type": "string"
    },
    "timed_out": {
      "description": "True when the search exceeded its time budget; no results are returned then. Absence of a match is only conclusive when both timed_out and candidate_cap_hit are false.",
      "type": "boolean"
    }
  },
  "required": [
    "term",
    "include_archived",
    "candidate_cap_hit",
    "timed_out",
    "domains"
  ],
  "type": "object",
  "$defs": {
    "DomainSearchResult": {
      "additionalProperties": false,
      "properties": {
        "active": {
          "description": "True when any of the domain's nameserver records is current.",
          "type": "boolean"
        },
        "domain": {
          "description": "The matched domain name.",
          "type": "string"
        },
        "first_seen": {
          "description": "Date the domain was first observed. Absent when it was already present when tracking of its zone began.",
          "format": "date-time",
          "type": "string"
        },
        "last_seen": {
          "description": "Date the domain was last observed. Absent while it is still active.",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "domain",
        "active"
      ],
      "type": "object"
    }
  }
}