{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ip2location/json-schema/ip2location-domain-whoisresponse-schema.json",
  "title": "DomainWHOISResponse",
  "description": "WHOIS record for one domain.",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ip2location-domain-whois-openapi.yml#/components/schemas/DomainWHOISResponse",
  "type": "object",
  "required": [
    "domain"
  ],
  "properties": {
    "domain": {
      "type": "string",
      "description": "Domain name."
    },
    "domain_id": {
      "type": "string",
      "description": "Domain name ID assigned by the registry."
    },
    "status": {
      "type": "string",
      "description": "Domain status, including the EPP status code and its ICANN reference."
    },
    "create_date": {
      "type": "string",
      "format": "date-time",
      "description": "Domain creation date."
    },
    "update_date": {
      "type": "string",
      "format": "date-time",
      "description": "Date of the last domain update."
    },
    "expire_date": {
      "type": "string",
      "format": "date-time",
      "description": "Domain expiration date."
    },
    "domain_age": {
      "type": "integer",
      "description": "Domain age in days."
    },
    "whois_server": {
      "type": "string",
      "description": "WHOIS server that answered the query."
    },
    "registrar": {
      "$ref": "#/$defs/Registrar"
    },
    "registrant": {
      "$ref": "#/$defs/Contact"
    },
    "admin": {
      "$ref": "#/$defs/Contact"
    },
    "tech": {
      "$ref": "#/$defs/Contact"
    },
    "billing": {
      "$ref": "#/$defs/Contact"
    },
    "nameservers": {
      "type": "array",
      "description": "Nameservers configured for the domain.",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "Contact": {
      "type": "object",
      "description": "WHOIS contact details. Fields are omitted or empty when the registry redacts them.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Contact name."
        },
        "organization": {
          "type": "string",
          "description": "Contact organisation."
        },
        "street_address": {
          "type": "string",
          "description": "Street address."
        },
        "city": {
          "type": "string",
          "description": "City."
        },
        "region": {
          "type": "string",
          "description": "Region or state."
        },
        "zip_code": {
          "type": "string",
          "description": "ZIP or postal code."
        },
        "country": {
          "type": "string",
          "description": "Country code."
        },
        "phone": {
          "type": "string",
          "description": "Phone number."
        },
        "fax": {
          "type": "string",
          "description": "Fax number."
        },
        "email": {
          "type": "string",
          "description": "Email address."
        }
      }
    },
    "Registrar": {
      "type": "object",
      "description": "Registrar that sponsors the domain.",
      "properties": {
        "iana_id": {
          "type": "string",
          "description": "Registrar IANA ID."
        },
        "name": {
          "type": "string",
          "description": "Registrar name."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Registrar website."
        }
      }
    }
  }
}