GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Authentication
  • Rate Limits
  • IP lookup
  • My IP
  • ASN lookup
  • Domain lookup
  • Batch
  • Plan and usage
  • List
  • Download
  • Metadata
  • Checksums
  • History

This view

  • Original page
  • New address

GeezerVison is showing docs.internetdata.io β€” Overview - API | InternetData Documentation

Overview

Look up what InternetData knows about an IP address, an AS or a domain, and download the databases your organization licenses, through one HTTP API.

On this page
  1. Make a request
  2. Endpoints
  3. What each plan answers
  4. Address lookups
  5. AS lookups
  6. Domain lookups
  7. Client libraries and tools
  8. Specifications
  9. Next steps

The InternetData HTTP API answers what is known about an IP address, an AS or a domain, and downloads the databases your organization licenses and the Open ones every account may. You can look up one item per request, or up to 1,000 in one POST /batch.

You can start without an account. Without a key, each address you call from gets 100 lookups a UTC day, address, AS and domain lookups alike. The address answer has the country-level location, the network that announces the address, the reverse DNS name, Tor and relay, and whether the address is anycast; the AS answer has the AS's registration, and the domain answer says whether the domain is registered and which DNS records it has. A free key answers those basics with no cap, and every field on your organization's first 1,000 lookups each UTC day. A paid plan answers every field on every lookup.

Make a request

A lookup is a GET request with the address as its path, so the first one needs no key and no request body:

bash
curl https://api.internetdata.io/8.8.8.8

The API answers with a JSON object. Without a key, it carries the basics:

json
{
  "ip": "8.8.8.8",
  "is_bogon": false,
  "is_tor": false,
  "is_relay": false,
  "is_anycast": true,
  "location": {
    "continent": "NA",
    "continent_name": "North America",
    "country": "US",
    "country_name": "United States",
    "timezone": "America/Los_Angeles",
    "currency_code": "USD",
    "currency_name": "Dollar",
    "currency_symbol": "$",
    "flag_emoji": "πŸ‡ΊπŸ‡Έ",
    "flag_unicode": "U+1F1FA U+1F1F8"
  },
  "tor": {},
  "relay": {},
  "asn": {
    "asn": 15169,
    "name": "Google LLC",
    "domain": "google.com",
    "prefix": "8.8.8.0/24",
    "country": "US",
    "rpki_status": "valid"
  },
  "hostname": "dns.google"
}

An AS answers at GET /asn/15169 and a domain at GET /domain/example.com, on the same host. The Quickstart explains each field of the address answer and shows how to add a key.

Endpoints

The reference groups the endpoints by what they do. Each operation's page lists its parameters, its answers and its errors, and lets you send a request from the page.

  • Lookup answers one address, an AS, a domain, your own address, with /myip, or up to 1,000 items, with /batch. A single lookup needs no key, and /batch needs a paid plan.
  • Entitlement returns your key's plan and what it has used in the current window.
  • Database v2 lists what your organization licenses, downloads it or any Open database, and fetches checksums and download history.
  • Account, Organization and API keys say who a credential belongs to and who the members of its organization are, and they create, rotate, reveal and revoke keys.
  • Authorization is OAuth for an app that acts for a person, by device code or by authorization code with PKCE.
  • Database holds the v1 endpoints, which are still served for existing integrations.

The API answers on two hosts. Lookups and Entitlement are on api.internetdata.io, which also answers the Database v2, Account, Organization and API keys paths. internetdata.io keeps serving those, and it alone serves the v1 endpoints and Authorization. Authentication explains how to present a key or a token, and Rate Limits explains how much you can send and how a burst or a spent day is answered.

What each plan answers

A paid plan answers every field at every quota; its quotas differ only in how many lookups they include. The tables list each field of a lookup's answer, by the kind of item you look up, and whether the free plan returns it on every lookup.

Address lookups

FieldFree planPaid plan
ip, is_bogon, hostnameyesyes
is_tor, tor, is_relay, relayyesyes
is_anycastyesyes
location.continent, location.continent_name, location.country, location.country_nameyesyes
location.timezone, location.currency_code, location.currency_name, location.currency_symbolyesyes
location.flag_emoji, location.flag_unicodeyesyes
location.region, location.region_code, location.city, location.postal_code-yes
location.latitude, location.longitude, location.accuracy_radius-yes
location.geoname_id, location.dma_code, location.last_changed-yes
asn.asn, asn.name, asn.domain, asn.prefixyesyes
asn.country, asn.rpki_statusyesyes
asn.type-yes
company.name, company.domain, company.type, company.country-yes
abuse.email, abuse.name, abuse.phone, abuse.address, abuse.country-yes
abuse.network, abuse.validated, abuse.unvalidated_since-yes
is_vpn, vpn-yes
is_resproxy, is_dcproxy, is_mobproxy, is_pubproxy-yes
resproxy, dcproxy, mobproxy, pubproxy-yes
is_hosting, hosting, is_cdn, cdn-yes
is_bot, bot, is_carrier, carrier, is_satellite, satellite-yes
is_ssh, is_smtp, is_web, is_dns_resolver, is_bittorrent-yes
ssh, smtp, web, dns_resolver, bittorrent-yes
whois, rwhois, hosted_domains-yes

A paid plan's answer also carries user_agent when the request sends one: the agent it names, and whether the address bears it out.

AS lookups

FieldFree planPaid plan
asn, name, country, registry, allocated, domainyesyes
type, num_ips, num_prefixes4, num_prefixes6-yes
rpki_valid, rpki_invalid, rpki_not_found-yes
whois, prefixes-yes
rank, tier1, num_upstreams, upstreams, num_peers, peers-yes
num_downstreams, downstreams-yes
hosted_domains-yes

Domain lookups

FieldFree planPaid plan
domain, is_registeredyesyes
has_a, has_aaaa, has_mx, has_ns, has_cnameyesyes
is_disposable, disposable, dns, ip_ranges-yes
hosting, cohosted_domains, web, redirects, backlinks-yes

Two kinds of key move between the columns, and each answer says when it has. A key on the free plan answers with every field on its organization's first 1,000 lookups each UTC day and with the basics, the free plan's column, after them, and trial_expired says which. A key on a paid plan answers with the basics once its quota is used while overage is off, or once it passes the overage cap its account set, and cap_reached says so. Authentication and Rate Limits describe both.

A field your plan doesn't include is absent from the answer, never false. Test for a field's presence before you read its value, or an unlicensed field reads as a negative result. Within a plan the shape is fixed: a field your plan includes is always present, and a detail object with no keys, such as "tor": {}, means that the flag above it is false.

Client libraries and tools

You don't have to call the API by hand. The official client libraries wrap these endpoints, one library per language: they retry a rate-limited request for you, and they answer private and reserved addresses locally, so those never cost a request. The CLI looks up addresses, ASNs and domains and downloads the databases from a terminal, and Integrations lists every other way to use the API.

Specifications

This reference is generated from the public OpenAPI specification, which is the source of truth for every endpoint. The client libraries and the API playground derive from the same file, so a field documented here is a field your library knows. Download it in the format your tools read:

  • OpenAPI (YAML)
  • OpenAPI (JSON)
  • Postman

Next steps

You now know what the API covers and what each plan returns. To make your first request with a key, follow the Quickstart. Then read Authentication for the ways to send a key, and Rate Limits for how the API answers a burst, a spent day without a key or a spent quota.

You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.