The whole contract, on one page.
There are two APIs: one answers about an IP address, an AS or a domain, and the other delivers the databases as files. Below is every call, the shape each returns and the refusals to tell apart.
The same facts are at /llms.txt as plain text, and the full reference is at docs.internetdata.io/api.
Lookups
No key is needed to try it, 100 lookups a day from each address; a key goes in the same three ways the database API takes it. Any page's path on this site, such as /AS15169, works on the API's host.
curl "https://api.internetdata.io/146.70.116.130"curl "https://api.internetdata.io/146.70.116.130" \-H "Authorization: Bearer $INTERNETDATA_API_KEY"
https://api.internetdata.ionone to try · Bearer · X-Api-Key · ?apikey=GET /{ip}GET /asn/{asn}GET /domain/{domain}GET /myipPOST /batchGET /api/v1/entitlementWhat a lookup returns
Here are the basics for a VPN exit, with no key: is_vpn is absent because the basics don't include it, and absent never means false.
{"ip": "146.70.116.130","is_bogon": false,"is_tor": false,"is_relay": false,"is_anycast": false,"hostname": "","location": {"continent": "EU","continent_name": "Europe","country": "AT","country_name": "Austria","timezone": "Europe/Vienna","currency_code": "EUR","currency_name": "Euro","currency_symbol": "€","flag_emoji": "🇦🇹","flag_unicode": "U+1F1E6 U+1F1F9"},"asn": {"asn": 9009,"name": "M247 Europe SRL","domain": "m247global.com","prefix": "146.70.116.0/24","country": "RO","rpki_status": "not_found"},"tor": {},"relay": {}}
is_bogonis_vpnis_toris_relayis_resproxyis_dcproxyis_mobproxyis_pubproxyis_hostingis_cdnis_botis_anycastis_carrieris_satelliteis_sshis_smtpis_webis_dns_resolveris_bittorrentWhat each plan answers
What an answer carries depends on its key: none, a free one, or one on the Data plan.
A field your plan doesn't include is left out of the answer, inside location and asn too, and so are company and abuse whole. Read a missing key as a question you didn't buy an answer to.
A flag that is present always answers. Its detail object comes back as {} when the dataset was checked and held nothing for the address.
Reserved addresses answer 200 with every flag false. Every official SDK answers them without a request. Sent to the API, they count as lookups on the free plan and cost nothing on the Data plan.
With Retry-After, it's a brief throttle, with a key or without one: wait the seconds it gives. Without it, the source address's 100 lookups a UTC day with no key are used: send a free key, or wait for the next UTC day. The Data plan never refuses a lookup at its quota or its overage cap: past them, answers carry the basics and cap_reached true, and cost nothing.
Past the organization's lookups with every field, an answer carries cap_reached true and the basics. The official SDKs raise quota_exceeded on it, status 200 and never retried, with that answer as the error's result: catch it to carry on with the basics. Java's current release returns the answer instead, capReached() true. A call over plain HTTP reads cap_reached.
POST /batch takes up to 1,000 addresses, AS numbers and domains in one call and keys each answer by what you sent. It needs the Data plan: with no key it answers 401, and with a key on the free plan 402. A batch of one is answered as its lookup.
A provider ID doesn't change between builds, and the Data plan's answer names the provider beside it. Join on the ID, not on the name.
not an IP address, an AS number or a domaina wrong, revoked or expired key, or a batch of two or more with no keya batch of two or more from a key on the free plana key used from an address it doesn't allow, or sent over plain HTTPwith Retry-After, a rate limit: retry after the seconds it gives; without it, the source address's lookups with no key are used up for the UTC day: send a free keyours: retry with backoff, as the official clients doWhat the Data plan adds
Every field below comes with the Data plan, at every quota, on top of the basics, and on a free key's first 1,000 lookups each day too.
is_vpn, vpnis_resproxy, resproxyis_dcproxy, dcproxyis_mobproxy, mobproxyis_pubproxy, pubproxyis_hosting, hostingis_cdn, cdnbotcarriersatellitesshsmtpwebdns_resolverbittorrentlocationasn.typecompanyabusewhoisrwhoishosted_domainstypenum_ips, num_prefixes4, num_prefixes6rpki_valid, rpki_invalid, rpki_not_foundwhoisprefixesranktier1num_upstreams, upstreamsnum_peers, peersnum_downstreams, downstreamshosted_domainsis_disposable, disposablednshostingcohosted_domainsip_rangeswebredirectsbacklinksFive database calls
Access is granted by contract, one database at a time, to a key carrying the db.download scope. Keys are default-deny: an existing key gains nothing until the scope is added to it. The same key presents three ways: a bearer token, X-Api-Key, or ?apikey= for a browser or a one-liner.
# a 302 to object storage is the success casecurl -L -H "Authorization: Bearer $KEY" \"https://internetdata.io/api/v2/database/download?id=vpn_ip_v1&format=csvgz" \-o vpn_ip_v1.csv.gz# and verify what landedcurl -s -H "X-Api-Key: $KEY" \"https://internetdata.io/api/v2/database/checksum?id=vpn_ip_v1&format=csvgz"
https://internetdata.ioBearer · X-Api-Key · ?apikey=db.downloadGET /api/v2/database/listGET /api/v2/database/metadata?id=GET /api/v2/database/download?id=&format=GET /api/v2/database/checksum?id=&format=GET /api/v2/database/downloads?limit=csvgz · mmdb400 · 401 · 403 · 404 · 503, each with an rcWhat comes back
Poll metadata to decide whether today's build is worth fetching: it carries the build date, the row count and the size of each format without moving any bytes.
GET /api/v2/database/metadata?id=vpn_ip_v1{"id": "vpn_ip_v1","update_freq": "daily","updated": "2026-11-29","entries": 15825802,"size": { "csvgz": 114442687,"mmdb": 95205640 },"schema": {"csvgz": [{ "name": "start_ip", "type": "ipaddress" },…]}}
idupdate_frequpdatedentriessizeschemasampleSix things that will bite you otherwise
Each of these is a place where the obvious reading of the API is the wrong one.
Download answers a redirect to a time-limited link on object storage; the bytes never come through the API. Follow it (curl -L). The link only has to be valid when a transfer starts, so one already running isn't cut off when it lapses.
A key does not gain database access until db.download is added to it. Missing key, wrong key, missing scope and a key belonging to no organization all answer 401 with rc UNAUTHORIZED.
rc NOT_LICENSED means your organization never bought this family; LICENSE_EXPIRED means the term ended. Neither is retryable: it needs a contract, not a backoff.
rc NOT_AVAILABLE means the current build has not been published yet. Retry later; do not treat it as an error, and do not substitute a different database for it.
csvgz for every database, mmdb for most. The provider catalogs are keyed by provider ID, so there is nothing for an mmdb to index, and asking one for it is a 400 INVALID_FORMAT, a deliberate refusal rather than a gap in coverage. list names the formats each version is built in.
list returns a family (base, e.g. vpn_ip) with your standing, and the ID to pass onward to metadata and download. Read that ID from list rather than composing it yourself.
What a license lets you do
Every database is available under either grant, and the list endpoint reports which one you hold against each family. Full detail is on the licensing page.
evaluationstandardredistributenullWhen you need more than one database
Do not crawl this site for what the catalog already answers in one call.
One call to /api/v2/database/list returns every published family with its versions, its formats and your standing beside it. That is the machine-readable form of the published catalog.
Poll metadata once a day per family and fetch only when updated moves. Your own attempt history, refusals included, is at /api/v2/database/downloads. When a download stops working, the denial there says why.
Free lookups, no sign-up.
Paste it into a terminal. Any address answers with its country, network and hostname. ASNs and domains answer too.
{"ip": "8.8.8.8","is_bogon": false,"is_tor": false,"is_relay": false,"is_anycast": true,"hostname": "dns.google","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"},"asn": {"asn": 15169,"name": "Google LLC","domain": "google.com","prefix": "8.8.8.0/24","country": "US","rpki_status": "valid"},"tor": {},"relay": {}}
Every field on the Data plan.
A free API key answers every field on a daily allowance of lookups, with no card.