{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/internetdata-io/json-schema/internetdata-io-batch-lookup-response-schema.json",
  "title": "BatchLookupResponse",
  "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/BatchLookupResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "object",
      "additionalProperties": {
        "oneOf": [
          {
            "$ref": "#/$defs/LookupResponse"
          },
          {
            "$ref": "#/$defs/AsnLookupResponse"
          },
          {
            "$ref": "#/$defs/DomainLookupResponse"
          }
        ]
      },
      "description": "Each answered item's lookup, keyed by the string sent."
    },
    "errors": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/BatchLookupError"
      },
      "description": "Each failed item, keyed by the string sent."
    }
  },
  "required": [
    "results",
    "errors"
  ],
  "$defs": {
    "AbuseContact": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "description": "Where to report abuse from the address."
        },
        "name": {
          "type": "string",
          "description": "The contact. Paid plans and the trial."
        },
        "phone": {
          "type": "string",
          "description": "Its phone number. Paid plans and the trial."
        },
        "address": {
          "type": "string",
          "description": "Its postal address. Paid plans and the trial."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166 country code. Paid plans and the trial."
        },
        "network": {
          "type": "string",
          "description": "The registry block it was derived from. Paid plans and the trial."
        },
        "validated": {
          "type": "boolean",
          "description": "ARIN reports the contact answered its yearly validation. Paid plans and the trial."
        },
        "unvalidated_since": {
          "type": "string",
          "description": "Since when it has not. Paid plans and the trial."
        }
      },
      "required": [
        "email"
      ],
      "description": "Where to report abuse, from IP Abuse Contact."
    },
    "Asn": {
      "type": "object",
      "properties": {
        "asn": {
          "type": "integer",
          "description": "The AS announcing the address, 0 where none does."
        },
        "name": {
          "type": "string",
          "description": "Its operator."
        },
        "domain": {
          "type": "string",
          "description": "Its operator's domain."
        },
        "type": {
          "type": "string",
          "description": "The kind of network it runs."
        },
        "prefix": {
          "type": "string",
          "description": "The announced prefix covering the address."
        },
        "country": {
          "type": "string",
          "description": "The country its registry assigned it to. Paid plans and the trial."
        },
        "rpki_status": {
          "type": "string",
          "description": "The announcement's RPKI status. Paid plans and the trial."
        }
      },
      "required": [
        "asn",
        "name",
        "domain",
        "type",
        "prefix"
      ],
      "description": "The network announcing the address, from IP ASN."
    },
    "AsnHostedDomains": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "description": "How many registered domains resolve to an address the AS announces."
        },
        "domains": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Up to 10 of them, the most popular first; `[]` when none does."
        }
      },
      "required": [
        "total"
      ],
      "description": "From ASN Hosted Domains: how many registered domains the AS hosts, and the 10 most popular. Its database lists up to 1,000 an AS. Paid plans and the trial."
    },
    "AsnLookupResponse": {
      "type": "object",
      "properties": {
        "asn": {
          "type": "integer",
          "description": "The AS number."
        },
        "name": {
          "type": "string",
          "description": "Its operator."
        },
        "country": {
          "type": "string",
          "description": "The country its registry assigned it to."
        },
        "registry": {
          "type": "string",
          "description": "The registry that allocated it."
        },
        "allocated": {
          "type": "string",
          "description": "When."
        },
        "domain": {
          "type": "string",
          "description": "Its operator's domain."
        },
        "type": {
          "type": "string",
          "description": "The kind of network it runs. Paid plans and the trial."
        },
        "num_ips": {
          "type": "integer",
          "description": "IPv4 addresses it announces. Paid plans and the trial."
        },
        "num_prefixes4": {
          "type": "integer",
          "description": "IPv4 prefixes it announces. Paid plans and the trial."
        },
        "num_prefixes6": {
          "type": "integer",
          "description": "IPv6 prefixes it announces. Paid plans and the trial."
        },
        "rpki_valid": {
          "type": "integer",
          "description": "Its announcements RPKI calls valid. Paid plans and the trial."
        },
        "rpki_invalid": {
          "type": "integer",
          "description": "Invalid. Paid plans and the trial."
        },
        "rpki_not_found": {
          "type": "integer",
          "description": "With no RPKI record. Paid plans and the trial."
        },
        "whois": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Its ASN Whois record, every column, empty where the registry states nothing. Paid plans and the trial."
        },
        "prefixes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AsnPrefix"
          },
          "description": "What it announces, IPv4 then IPv6, up to 20000 a family. Paid plans and the trial."
        },
        "rank": {
          "type": "integer",
          "description": "Its rank in ASN Extended, by customer cone, 1 the largest; `0` for an AS seen in no AS path. Paid plans and the trial."
        },
        "tier1": {
          "type": "boolean",
          "description": "Whether it is one of the transit-free networks at the top of the hierarchy, which get transit from no one and peer with each other. Paid plans and the trial."
        },
        "num_upstreams": {
          "type": "integer",
          "description": "How many AS numbers it gets transit from. Paid plans and the trial."
        },
        "upstreams": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Those AS numbers, ascending, up to 20000. Paid plans and the trial."
        },
        "num_peers": {
          "type": "integer",
          "description": "How many AS numbers it exchanges its own and its customers' routes with. Paid plans and the trial."
        },
        "peers": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Those AS numbers, ascending, up to 20000. Paid plans and the trial."
        },
        "num_downstreams": {
          "type": "integer",
          "description": "How many AS numbers it provides transit to. Paid plans and the trial."
        },
        "downstreams": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Those AS numbers, ascending, up to 20000. Paid plans and the trial."
        },
        "hosted_domains": {
          "$ref": "#/$defs/AsnHostedDomains"
        },
        "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": [
        "asn",
        "name",
        "country",
        "registry",
        "allocated",
        "domain"
      ],
      "description": "What every database says about one AS."
    },
    "AsnPrefix": {
      "type": "object",
      "properties": {
        "prefix": {
          "type": "string",
          "description": "The announced prefix."
        },
        "peer_count": {
          "type": "integer",
          "description": "How many peers saw it."
        },
        "rpki_status": {
          "type": "string",
          "description": "Its RPKI status."
        },
        "first_seen": {
          "type": "string",
          "description": "The first day BGP Route saw it."
        },
        "country": {
          "type": "string",
          "description": "Where its first address is."
        },
        "size": {
          "type": "integer",
          "description": "IPv4 addresses it covers; 0 for IPv6."
        },
        "other_origins": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Every other AS announcing it."
        }
      },
      "required": [
        "prefix",
        "peer_count",
        "rpki_status",
        "first_seen",
        "country",
        "size",
        "other_origins"
      ]
    },
    "BatchLookupError": {
      "type": "object",
      "properties": {
        "status": {
          "type": "integer",
          "description": "The status its own lookup would have answered."
        },
        "error": {
          "type": "string",
          "description": "The same message."
        }
      },
      "required": [
        "status",
        "error"
      ]
    },
    "BitTorrentDetail": {
      "type": "object",
      "properties": {
        "verified": {
          "type": "boolean",
          "description": "A client here answered, or two or more reported it at once."
        },
        "id_matches_ip": {
          "type": "boolean",
          "description": "A client here derived its node ID from the address (BEP 42)."
        },
        "first_seen": {
          "type": "string",
          "description": "The first day a client was seen here."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day."
        },
        "last_reachable": {
          "type": "string",
          "description": "The last day one answered, empty when none did."
        },
        "days_seen": {
          "type": "integer",
          "description": "On how many days."
        },
        "num_ports": {
          "type": "integer",
          "description": "Distinct ports over the window."
        },
        "peak_num_ports": {
          "type": "integer",
          "description": "The most on one day."
        },
        "indexer": {
          "type": "boolean",
          "description": "A DHT indexer rather than people."
        },
        "clients": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The two-letter codes its clients name themselves by."
        }
      }
    },
    "CarrierDetail": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The mobile carrier."
        },
        "mcc": {
          "type": "string",
          "description": "Its mobile country code."
        },
        "mnc": {
          "type": "string",
          "description": "Its mobile network code."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166 country code."
        },
        "confidence": {
          "type": "string",
          "description": "`high`, `medium` or `low`."
        }
      }
    },
    "ClassDetail": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string",
          "description": "The provider's ID in its catalog; empty for an unattributed range, and on Tor."
        },
        "provider_name": {
          "type": "string",
          "description": "The name the catalog gives the provider, empty where it names none."
        },
        "confidence": {
          "type": "string",
          "description": "`high`, `medium` or `low`: how sure we are the range is what the flag says."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day the range was seen as such."
        }
      }
    },
    "Company": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Who uses the address."
        },
        "domain": {
          "type": "string",
          "description": "Their domain."
        },
        "type": {
          "type": "string",
          "description": "What kind of organization: hosting, isp, business, education, government. Paid plans and the trial."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166 country code. Paid plans and the trial."
        }
      },
      "required": [
        "name",
        "domain"
      ],
      "description": "Who uses the address, from IP Company."
    },
    "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"
      ]
    },
    "DnsResolverDetail": {
      "type": "object",
      "properties": {
        "port": {
          "type": "integer",
          "description": "The port it answered on."
        },
        "recursion_available": {
          "type": "boolean",
          "description": "It offered recursion."
        },
        "rcode": {
          "type": "integer",
          "description": "Its answer's response code."
        },
        "answer_correct": {
          "type": "boolean",
          "description": "Its answer was right."
        },
        "first_seen": {
          "type": "string",
          "description": "The first day it answered."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day it did."
        }
      }
    },
    "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."
    },
    "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"
      ],
      "description": "What every database says about one domain."
    },
    "HostedDomains": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "description": "How many registered domains resolve to the address."
        },
        "domains": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Up to 10 of them, the most popular first; `[]` when none does."
        }
      },
      "required": [
        "total"
      ],
      "description": "From IP Hosted Domains: how many registered domains resolve to the address, and the 10 most popular. Its database lists up to 1,000 an address. Paid plans and the trial."
    },
    "Location": {
      "type": "object",
      "properties": {
        "continent": {
          "type": "string",
          "description": "Continent code."
        },
        "continent_name": {
          "type": "string",
          "description": "Continent name."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code."
        },
        "country_name": {
          "type": "string",
          "description": "Country name."
        },
        "timezone": {
          "type": "string",
          "description": "IANA timezone."
        },
        "currency_code": {
          "type": "string",
          "description": "ISO 4217 code."
        },
        "currency_name": {
          "type": "string",
          "description": "Currency name."
        },
        "currency_symbol": {
          "type": "string",
          "description": "Currency symbol."
        },
        "flag_emoji": {
          "type": "string",
          "description": "The country's flag."
        },
        "flag_unicode": {
          "type": "string",
          "description": "Its code points, `U+1F1E6 U+1F1F9`."
        },
        "region": {
          "type": "string",
          "description": "Region (state or province). Paid plans and the trial."
        },
        "region_code": {
          "type": "string",
          "description": "ISO 3166-2 region code. Paid plans and the trial."
        },
        "city": {
          "type": "string",
          "description": "City. Paid plans and the trial."
        },
        "postal_code": {
          "type": "string",
          "description": "Postal code. Paid plans and the trial."
        },
        "latitude": {
          "type": "number",
          "description": "Latitude of the city. Paid plans and the trial."
        },
        "longitude": {
          "type": "number",
          "description": "Longitude of the city. Paid plans and the trial."
        },
        "accuracy_radius": {
          "type": "integer",
          "description": "Radius in km holding the true location with 67% confidence. Paid plans and the trial."
        },
        "geoname_id": {
          "type": "string",
          "description": "GeoNames ID of the city. Paid plans and the trial."
        },
        "dma_code": {
          "type": "string",
          "description": "US TV market (DMA) code. Paid plans and the trial."
        },
        "last_changed": {
          "type": "string",
          "description": "The day the range's location last changed. Paid plans and the trial."
        }
      },
      "required": [
        "continent",
        "continent_name",
        "country",
        "country_name",
        "timezone",
        "currency_code",
        "currency_name",
        "currency_symbol",
        "flag_emoji",
        "flag_unicode"
      ],
      "description": "Where the address is."
    },
    "LookupResponse": {
      "type": "object",
      "properties": {
        "ip": {
          "type": "string",
          "description": "The address looked up, as parsed: `::ffff:a.b.c.d` answers as `a.b.c.d`."
        },
        "is_bogon": {
          "type": "boolean",
          "description": "Reserved space, answered from the address alone."
        },
        "is_vpn": {
          "type": "boolean",
          "description": "In VPN IP: a VPN service's server. Paid plans and the trial."
        },
        "is_tor": {
          "type": "boolean",
          "description": "In Tor IP: a Tor exit."
        },
        "is_relay": {
          "type": "boolean",
          "description": "In Relay IP: an anonymizing relay such as iCloud Private Relay."
        },
        "is_resproxy": {
          "type": "boolean",
          "description": "In Residential Proxy IP's 90-day window: a residential proxy exit. Paid plans and the trial."
        },
        "is_dcproxy": {
          "type": "boolean",
          "description": "In Datacenter Proxy IP's 90-day window. Paid plans and the trial."
        },
        "is_mobproxy": {
          "type": "boolean",
          "description": "In Mobile Proxy IP's 90-day window. Paid plans and the trial."
        },
        "is_pubproxy": {
          "type": "boolean",
          "description": "In Public Proxy IP: a public proxy listens here, or its traffic left from here. Paid plans and the trial."
        },
        "is_hosting": {
          "type": "boolean",
          "description": "In Hosting IP: a hosting or cloud network. Paid plans and the trial."
        },
        "is_cdn": {
          "type": "boolean",
          "description": "In CDN IP: a content delivery network. Paid plans and the trial."
        },
        "is_anycast": {
          "type": "boolean",
          "description": "In Anycast IP: announced from many places at once."
        },
        "is_carrier": {
          "type": "boolean",
          "description": "In Carrier IP: a mobile carrier's address space."
        },
        "is_satellite": {
          "type": "boolean",
          "description": "In Satellite IP: a satellite operator's address space."
        },
        "is_ssh": {
          "type": "boolean",
          "description": "In SSH IP: an SSH server answered here."
        },
        "is_smtp": {
          "type": "boolean",
          "description": "In SMTP IP: a mail server answered here."
        },
        "is_web": {
          "type": "boolean",
          "description": "In Web IP: a web server answered here on port 80 or 443."
        },
        "is_dns_resolver": {
          "type": "boolean",
          "description": "In DNS Resolver IP: an open DNS resolver answered here."
        },
        "is_bittorrent": {
          "type": "boolean",
          "description": "In BitTorrent IP: a BitTorrent client was seen here in the last 90 days."
        },
        "vpn": {
          "allOf": [
            {
              "$ref": "#/$defs/ClassDetail"
            }
          ],
          "description": "VPN IP's row, `{}` when `is_vpn` is false. Paid plans and the trial."
        },
        "tor": {
          "allOf": [
            {
              "$ref": "#/$defs/ClassDetail"
            }
          ],
          "description": "Tor IP's row, `{}` when `is_tor` is false."
        },
        "relay": {
          "allOf": [
            {
              "$ref": "#/$defs/ClassDetail"
            }
          ],
          "description": "Relay IP's row, `{}` when `is_relay` is false."
        },
        "resproxy": {
          "allOf": [
            {
              "$ref": "#/$defs/ProxyDetail"
            }
          ],
          "description": "`{}` when `is_resproxy` is false. Paid plans and the trial."
        },
        "dcproxy": {
          "allOf": [
            {
              "$ref": "#/$defs/ProxyDetail"
            }
          ],
          "description": "`{}` when `is_dcproxy` is false. Paid plans and the trial."
        },
        "mobproxy": {
          "allOf": [
            {
              "$ref": "#/$defs/ProxyDetail"
            }
          ],
          "description": "`{}` when `is_mobproxy` is false. Paid plans and the trial."
        },
        "pubproxy": {
          "allOf": [
            {
              "$ref": "#/$defs/PubproxyDetail"
            }
          ],
          "description": "`{}` when `is_pubproxy` is false. Paid plans and the trial."
        },
        "hosting": {
          "allOf": [
            {
              "$ref": "#/$defs/ClassDetail"
            }
          ],
          "description": "`{}` when `is_hosting` is false. Paid plans and the trial."
        },
        "cdn": {
          "allOf": [
            {
              "$ref": "#/$defs/ClassDetail"
            }
          ],
          "description": "`{}` when `is_cdn` is false. Paid plans and the trial."
        },
        "carrier": {
          "allOf": [
            {
              "$ref": "#/$defs/CarrierDetail"
            }
          ],
          "description": "`{}` when `is_carrier` is false. Paid plans and the trial."
        },
        "satellite": {
          "allOf": [
            {
              "$ref": "#/$defs/SatelliteDetail"
            }
          ],
          "description": "`{}` when `is_satellite` is false. Paid plans and the trial."
        },
        "ssh": {
          "allOf": [
            {
              "$ref": "#/$defs/SshDetail"
            }
          ],
          "description": "`{}` when `is_ssh` is false. Paid plans and the trial."
        },
        "smtp": {
          "allOf": [
            {
              "$ref": "#/$defs/SmtpDetail"
            }
          ],
          "description": "`{}` when `is_smtp` is false. Paid plans and the trial."
        },
        "web": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WebDetail"
          },
          "description": "A row per port that answered, lowest first; `[]` when `is_web` is false. Paid plans and the trial."
        },
        "dns_resolver": {
          "allOf": [
            {
              "$ref": "#/$defs/DnsResolverDetail"
            }
          ],
          "description": "`{}` when `is_dns_resolver` is false. Paid plans and the trial."
        },
        "bittorrent": {
          "allOf": [
            {
              "$ref": "#/$defs/BitTorrentDetail"
            }
          ],
          "description": "`{}` when `is_bittorrent` is false. Paid plans and the trial."
        },
        "location": {
          "$ref": "#/$defs/Location"
        },
        "asn": {
          "$ref": "#/$defs/Asn"
        },
        "company": {
          "$ref": "#/$defs/Company"
        },
        "hostname": {
          "type": "string",
          "description": "The name the address's reverse DNS (PTR) record points to in IP RDNS, empty when it has none."
        },
        "abuse": {
          "$ref": "#/$defs/AbuseContact"
        },
        "whois": {
          "$ref": "#/$defs/Whois"
        },
        "rwhois": {
          "$ref": "#/$defs/Rwhois"
        },
        "hosted_domains": {
          "$ref": "#/$defs/HostedDomains"
        },
        "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": [
        "ip",
        "is_bogon",
        "is_tor",
        "is_relay",
        "is_anycast",
        "is_carrier",
        "is_satellite",
        "is_ssh",
        "is_smtp",
        "is_web",
        "is_dns_resolver",
        "is_bittorrent",
        "tor",
        "relay",
        "location",
        "asn",
        "company",
        "hostname",
        "abuse"
      ],
      "description": "What every database says about one address."
    },
    "ProxyDetail": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string",
          "description": "The proxy pool's ID in its catalog, empty where unattributed."
        },
        "provider_name": {
          "type": "string",
          "description": "The name the catalog gives it."
        },
        "first_seen": {
          "type": "string",
          "description": "The first day of the window the address was seen as an exit."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day it was."
        },
        "hits": {
          "type": "integer",
          "description": "How many times it was seen in the window."
        },
        "hits_days_pct": {
          "type": "integer",
          "description": "On what share of the window's days, in percent."
        },
        "providers_num": {
          "type": "integer",
          "description": "How many pools it was seen in."
        }
      }
    },
    "PubproxyDetail": {
      "type": "object",
      "properties": {
        "entry": {
          "type": "boolean",
          "description": "A public proxy listens here."
        },
        "exit": {
          "type": "boolean",
          "description": "Public proxies' traffic leaves from here."
        },
        "protocols": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The protocols at either end, `[]` when unknown."
        },
        "num_ports": {
          "type": "integer",
          "description": "How many ports a proxy listens on here."
        },
        "num_proxies": {
          "type": "integer",
          "description": "How many proxies' traffic left from here."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day one was seen."
        },
        "last_usable": {
          "type": "string",
          "description": "The last day one answered a request, empty when none did."
        }
      }
    },
    "Rwhois": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The network's identifier on the operator's RWHOIS server."
        },
        "name": {
          "type": "string",
          "description": "Its assignee."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166 country code."
        },
        "source": {
          "type": "string",
          "description": "The operator that published it."
        },
        "domain": {
          "type": "string",
          "description": "The contact emails' domain."
        },
        "abuse_email": {
          "type": "string",
          "description": "Its abuse contact."
        }
      },
      "required": [
        "id",
        "name",
        "country",
        "source",
        "domain",
        "abuse_email"
      ],
      "description": "IP RWHOIS's most specific network covering the address. Paid plans and the trial."
    },
    "SatelliteDetail": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string",
          "description": "The operator's ID in Satellite IP Provider."
        },
        "provider_name": {
          "type": "string",
          "description": "The operator's name."
        },
        "orbit": {
          "type": "string",
          "description": "The orbit: `leo`, `meo` or `geo`."
        },
        "segment": {
          "type": "string",
          "description": "Who the space serves, such as consumer or maritime."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166 country code."
        },
        "asn": {
          "type": "integer",
          "description": "The AS the operator announces it from."
        },
        "confidence": {
          "type": "string",
          "description": "`high`, `medium` or `low`."
        }
      }
    },
    "SmtpDetail": {
      "type": "object",
      "properties": {
        "port": {
          "type": "integer",
          "description": "The port the server answered on."
        },
        "banner": {
          "type": "string",
          "description": "Its banner."
        },
        "session_ok": {
          "type": "boolean",
          "description": "A session was set up."
        },
        "first_seen": {
          "type": "string",
          "description": "The first day it answered."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day it did."
        }
      }
    },
    "SshDetail": {
      "type": "object",
      "properties": {
        "port": {
          "type": "integer",
          "description": "The port the server answered on."
        },
        "banner": {
          "type": "string",
          "description": "Its banner."
        },
        "host_key_fp": {
          "type": "string",
          "description": "Its host key's fingerprint."
        },
        "session_ok": {
          "type": "boolean",
          "description": "A session was set up."
        },
        "first_seen": {
          "type": "string",
          "description": "The first day it answered."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day it did."
        }
      }
    },
    "WebDetail": {
      "type": "object",
      "properties": {
        "port": {
          "type": "integer",
          "description": "80 or 443."
        },
        "tls_ok": {
          "type": "boolean",
          "description": "A TLS handshake completed."
        },
        "session_ok": {
          "type": "boolean",
          "description": "An HTTP response came back."
        },
        "status_code": {
          "type": "integer",
          "description": "Its status, 0 where none came."
        },
        "server": {
          "type": "string",
          "description": "Its `Server` header."
        },
        "location": {
          "type": "string",
          "description": "Where it redirected."
        },
        "title": {
          "type": "string",
          "description": "The page's title."
        },
        "cert_subject_cn": {
          "type": "string",
          "description": "The certificate's subject common name."
        },
        "cert_subject_o": {
          "type": "string",
          "description": "Its subject organization."
        },
        "cert_issuer_dn": {
          "type": "string",
          "description": "Its issuer."
        },
        "cert_browser_trusted": {
          "type": "boolean",
          "description": "Browsers trust it."
        },
        "tls_version": {
          "type": "string",
          "description": "The TLS version negotiated, empty without TLS."
        },
        "first_seen": {
          "type": "string",
          "description": "The first day the port was open."
        },
        "last_seen": {
          "type": "string",
          "description": "The last day it was."
        }
      },
      "required": [
        "port",
        "tls_ok",
        "session_ok",
        "status_code",
        "server",
        "location",
        "title",
        "cert_subject_cn",
        "cert_subject_o",
        "cert_issuer_dn",
        "cert_browser_trusted",
        "tls_version",
        "first_seen",
        "last_seen"
      ]
    },
    "Whois": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Network name of the most specific record covering the address."
        },
        "name": {
          "type": "string",
          "description": "Its holder."
        },
        "org": {
          "type": "string",
          "description": "The registry's handle for the holder."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166 country code."
        },
        "status": {
          "type": "string",
          "description": "The registry's assignment status."
        },
        "source": {
          "type": "string",
          "description": "The registry, or rwhois."
        },
        "domain": {
          "type": "string",
          "description": "The holder's domain."
        },
        "abuse_email": {
          "type": "string",
          "description": "The record's abuse contact."
        },
        "asn": {
          "type": "integer",
          "description": "The AS announcing the record's start address."
        }
      },
      "required": [
        "id",
        "name",
        "org",
        "country",
        "status",
        "source",
        "domain",
        "abuse_email",
        "asn"
      ],
      "description": "IP Whois's most specific record covering the address. Paid plans and the trial."
    }
  }
}