{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisfreaks/json-schema/whoisfreaks-whois-response-schema.json",
  "title": "WhoisResponse",
  "description": "Live WHOIS lookup response (DomainInfo).",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisfreaks-whois-api-openapi.yml#/components/schemas/WhoisResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "boolean"
    },
    "domain_name": {
      "type": "string"
    },
    "query_time": {
      "type": "string"
    },
    "whois_server": {
      "type": "string"
    },
    "domain_registered": {
      "type": "string"
    },
    "secure_dns": {
      "type": "boolean"
    },
    "domain_handle": {
      "type": "string"
    },
    "create_date": {
      "type": "string"
    },
    "update_date": {
      "type": "string"
    },
    "expiry_date": {
      "type": "string"
    },
    "domain_registrar": {
      "$ref": "#/$defs/RegistrarInformation"
    },
    "reseller_contact": {
      "$ref": "#/$defs/ResellerContact"
    },
    "registrant_contact": {
      "$ref": "#/$defs/PersonalInformation"
    },
    "administrative_contact": {
      "$ref": "#/$defs/PersonalInformation"
    },
    "technical_contact": {
      "$ref": "#/$defs/PersonalInformation"
    },
    "billing_contact": {
      "$ref": "#/$defs/PersonalInformation"
    },
    "eligibility_info": {
      "$ref": "#/$defs/EligibilityInfo"
    },
    "abuse_contact": {
      "$ref": "#/$defs/RegistrarInformation"
    },
    "name_servers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "domain_status": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "whois_raw_domain": {
      "type": "string"
    },
    "registry_data": {
      "$ref": "#/$defs/RegistryData"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "EligibilityInfo": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "PersonalInformation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "id_type": {
          "type": "string"
        },
        "handle": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "company": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "zip_code": {
          "type": "string"
        },
        "country_name": {
          "type": "string"
        },
        "country_code": {
          "type": "string"
        },
        "email_address": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "fax": {
          "type": "string"
        },
        "mailing_address": {
          "type": "string"
        }
      },
      "additionalProperties": true,
      "description": "Contact block (registrant/administrative/technical/billing)."
    },
    "RegistrarInformation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "id_type": {
          "type": "string"
        },
        "iana_id": {
          "type": "string"
        },
        "registry_id": {
          "type": "string"
        },
        "handle": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "registrar_name": {
          "type": "string"
        },
        "normalized_name": {
          "type": "string"
        },
        "whois_server": {
          "type": "string"
        },
        "rdap_server": {
          "type": "string"
        },
        "website_url": {
          "type": "string"
        },
        "email_address": {
          "type": "string"
        },
        "phone_number": {
          "type": "string"
        },
        "authoritative_registry_name": {
          "type": "string"
        },
        "organization_number": {
          "type": "string"
        },
        "is_sponsor": {
          "type": "boolean"
        }
      },
      "additionalProperties": true,
      "description": "Registrar details (used by domain_registrar, abuse_contact)."
    },
    "RegistryData": {
      "type": "object",
      "properties": {
        "domain_name": {
          "type": "string"
        },
        "query_time": {
          "type": "string"
        },
        "whois_server": {
          "type": "string"
        },
        "domain_registered": {
          "type": "string"
        },
        "create_date": {
          "type": "string"
        },
        "update_date": {
          "type": "string"
        },
        "expiry_date": {
          "type": "string"
        },
        "domain_registrar": {
          "$ref": "#/$defs/RegistrarInformation"
        },
        "name_servers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "domain_status": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "whois_raw_domain": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "ResellerContact": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "email_address": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}