{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/internetdata-io/json-schema/internetdata-io-lookup-response-schema.json",
  "title": "LookupResponse",
  "description": "What every database says about one address.",
  "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/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"
  ],
  "$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."
    },
    "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."
    },
    "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."
        }
      }
    },
    "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."
    },
    "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."
    }
  }
}