{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/internetdata-io/json-schema/internetdata-io-domain-lookup-response-schema.json",
  "title": "DomainLookupResponse",
  "description": "What every database says about one domain.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/internetdata-io-lookup-api-openapi.yml#/components/schemas/DomainLookupResponse",
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "The domain, lowercase and in punycode."
    },
    "is_registered": {
      "type": "boolean",
      "description": "In Domain List: a registered domain."
    },
    "is_disposable": {
      "type": "boolean",
      "description": "In Disposable Domain. Paid plans and the trial."
    },
    "has_a": {
      "type": "boolean",
      "description": "It has A records."
    },
    "has_aaaa": {
      "type": "boolean",
      "description": "AAAA records."
    },
    "has_mx": {
      "type": "boolean",
      "description": "MX records."
    },
    "has_ns": {
      "type": "boolean",
      "description": "NS records."
    },
    "has_cname": {
      "type": "boolean",
      "description": "A CNAME record."
    },
    "dns": {
      "$ref": "#/$defs/DomainDns"
    },
    "ip_ranges": {
      "$ref": "#/$defs/DomainIpRanges"
    },
    "disposable": {
      "allOf": [
        {
          "$ref": "#/$defs/DisposableDetail"
        }
      ],
      "description": "`{}` when `is_disposable` is false. Paid plans and the trial."
    },
    "trial_expired": {
      "type": "boolean",
      "description": "On every answer to a key on the free plan, and on no other: `false` while the day's trial of every field lasts, `true` once the answer has Unlimited's fields."
    },
    "cap_reached": {
      "type": "boolean",
      "description": "On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has Unlimited's. Lookups answered past the cap are not billed; raising or removing the cap in Billing turns it `false` again."
    }
  },
  "required": [
    "domain",
    "is_registered",
    "has_a",
    "has_aaaa",
    "has_mx",
    "has_ns",
    "has_cname"
  ],
  "$defs": {
    "DisposableDetail": {
      "type": "object",
      "properties": {
        "confidence": {
          "type": "string",
          "description": "`high`, `medium` or `low`."
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The providers behind it."
        },
        "first_seen": {
          "type": "string",
          "description": "The first day seen in use."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day."
        }
      }
    },
    "DnsAddressRecord": {
      "type": "object",
      "properties": {
        "ip": {
          "type": "string",
          "description": "The address."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day the snapshot saw it."
        }
      },
      "required": [
        "ip",
        "last_seen"
      ]
    },
    "DnsCnameRecord": {
      "type": "object",
      "properties": {
        "target": {
          "type": "string",
          "description": "Where it points."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day seen."
        }
      },
      "required": [
        "target",
        "last_seen"
      ]
    },
    "DnsMxRecord": {
      "type": "object",
      "properties": {
        "priority": {
          "type": "integer",
          "description": "Its priority."
        },
        "host": {
          "type": "string",
          "description": "The mail host."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day seen."
        }
      },
      "required": [
        "priority",
        "host",
        "last_seen"
      ]
    },
    "DnsNsRecord": {
      "type": "object",
      "properties": {
        "host": {
          "type": "string",
          "description": "The name server."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day seen."
        }
      },
      "required": [
        "host",
        "last_seen"
      ]
    },
    "DomainDns": {
      "type": "object",
      "properties": {
        "a": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DnsAddressRecord"
          }
        },
        "aaaa": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DnsAddressRecord"
          }
        },
        "mx": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DnsMxRecord"
          }
        },
        "ns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DnsNsRecord"
          }
        },
        "cname": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DnsCnameRecord"
          }
        }
      },
      "required": [
        "a",
        "aaaa",
        "mx",
        "ns",
        "cname"
      ],
      "description": "Its records in Domain DNS, up to 100 a type. Paid plans and the trial."
    },
    "DomainIpRange": {
      "type": "object",
      "properties": {
        "range": {
          "type": "string",
          "description": "The range."
        },
        "name": {
          "type": "string",
          "description": "Its registry name."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166 country code."
        }
      },
      "required": [
        "range",
        "name",
        "country"
      ]
    },
    "DomainIpRanges": {
      "type": "object",
      "properties": {
        "domain": {
          "type": "string",
          "description": "The organization's domain."
        },
        "redirects_to": {
          "type": "string",
          "description": "Where its home page redirects, when that is how it was reached."
        },
        "total": {
          "type": "integer",
          "description": "How many ranges it holds."
        },
        "ipv4": {
          "type": "integer",
          "description": "IPv4 addresses across them."
        },
        "ranges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DomainIpRange"
          },
          "description": "The first 1000, IPv4 before IPv6, the largest first."
        }
      },
      "required": [
        "domain",
        "redirects_to",
        "total",
        "ipv4",
        "ranges"
      ],
      "description": "The organization's IP ranges, from Domain IP Ranges. Paid plans and the trial."
    }
  }
}