Skip to content
InternetData
For AI agents

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.

Request
curl "https://api.internetdata.io/146.70.116.130"
curl "https://api.internetdata.io/146.70.116.130" \
-H "Authorization: Bearer $INTERNETDATA_API_KEY"
Basehttps://api.internetdata.io
Authnone to try · Bearer · X-Api-Key · ?apikey=
AddressGET /{ip}
ASGET /asn/{asn}
DomainGET /domain/{domain}
Your addressGET /myip
BatchPOST /batch
EntitlementGET /api/v1/entitlement

What 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.

200 application/json
{
"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_bogon
Reserved space: private, loopback, documentation and the like. Answered from the address alone.
is_vpn
A commercial VPN exit. The operator is named in the vpn object.
is_tor
A Tor node, refreshed daily.
is_relay
A privacy relay, such as iCloud Private Relay, or an enterprise web gateway, such as Zscaler.
is_resproxy
Seen in a residential proxy pool. It stays true once the address leaves the pool: resproxy.last_seen says when it was last seen.
is_dcproxy
An address a datacenter proxy service sells or runs on, kept the same way.
is_mobproxy
Seen in a mobile proxy pool, on a mobile carrier's addresses, kept the same way.
is_pubproxy
A public proxy anyone can connect through listens on the address or sends its traffic out from it, or did.
is_hosting
Leased hosting or cloud space. Infrastructure, not anonymity on its own.
is_cdn
A content-delivery edge.
is_bot
An automated client's address: a search engine's or an AI company's crawler, an uptime monitor, an internet scanner or a webhook sender, on the Data plan. The bot object says whose, what it does and whether its operator vouches for the address.
is_anycast
Announced from many places at once, as a public resolver's address is.
is_carrier
A mobile carrier's address.
is_satellite
A satellite internet provider's address.
is_ssh
An SSH server runs on the address.
is_smtp
A mail server runs on the address.
is_web
A web server runs on the address, on port 80 or 443.
is_dns_resolver
Answers DNS queries for anyone.
is_bittorrent
Seen as a BitTorrent peer.

What each plan answers

What an answer carries depends on its key: none, a free one, or one on the Data plan.

Free, with no key
The basics: ip and is_bogon, country-level location, the AS's number, name, domain, prefix, country and RPKI status, the hostname, Tor and relay with their detail, and the anycast flag. An AS answers its registry row, and a domain whether it's registered and which record types it has. 100 lookups a UTC day from each source address, address, AS and domain lookups alike, then a 429 with no Retry-After.
Free, with a free key
Every field on the organization's first 1,000 lookups each UTC day, then the basics with no daily or monthly cap. Each answer carries cap_reached, false while the full answers last, then true on answers with the basics.
Paid: the Data plan, at the monthly quota you pick
Every field, the evidence behind each flag included, the same at every quota: quotas differ only in how many lookups they include. What it adds to the basics is listed field by field. Each answer carries cap_reached, false until the quota's lookups, and any overage the account turned on, are used, then true on answers with the basics, which cost nothing.
01Absent is unknown, never false

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.

02An empty object is a checked answer

A flag that is present always answers. Its detail object comes back as {} when the dataset was checked and held nothing for the address.

03Answer bogons before you call

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.

04A 429 is a throttle or a spent day: read Retry-After

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.

05An official SDK raises on a capped answer

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.

06A batch is the Data plan's

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.

07Provider IDs are stable

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.

400not an IP address, an AS number or a domain
401a wrong, revoked or expired key, or a batch of two or more with no key
402a batch of two or more from a key on the free plan
403a key used from an address it doesn't allow, or sent over plain HTTP
429with 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 key
5xxours: retry with backoff, as the official clients do

Five 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.

Request
# a 302 to object storage is the success case
curl -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 landed
curl -s -H "X-Api-Key: $KEY" \
"https://internetdata.io/api/v2/database/checksum?id=vpn_ip_v1&format=csvgz"
Basehttps://internetdata.io
AuthBearer · X-Api-Key · ?apikey=
Scopedb.download
CatalogGET /api/v2/database/list
MetadataGET /api/v2/database/metadata?id=
DownloadGET /api/v2/database/download?id=&format=
ChecksumsGET /api/v2/database/checksum?id=&format=
HistoryGET /api/v2/database/downloads?limit=
Formatscsvgz · mmdb
Refusals400 · 401 · 403 · 404 · 503, each with an rc

What 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.

200 application/json
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" },
…
]
}
}
id
The versioned ID. This is what download, checksum and metadata take.
update_freq
How often a new build is published: daily or weekly.
updated
The date the published build was generated. Fetch only when this moves.
entries
Row count in the current build: ranges for a range database, not addresses.
size
Bytes per format. A format absent here is not built for this database.
schema
Columns keyed by format: name, type and description, in file order.
sample
A few real rows, keyed by format, when the build carries them.

Six things that will bite you otherwise

Each of these is a place where the obvious reading of the API is the wrong one.

01A 302 is the success case

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.

02Keys are default-deny

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.

03403 is a licensing answer, not an auth one

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.

04503 means licensed but not published yet

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.

05Not every format exists for every database

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.

06A license covers a family, a download names an ID

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.

evaluation
A full current build for internal testing only, for a fixed term. Integrating it across a product or serving customer use cases with it needs written permission first.
standard
Unlimited internal use: detection, decisions and operations inside your own product. The rows do not leave your walls.
redistribute
The rows, or per-address answers derived from them, may reach your own customers, within the scope written into the contract.
null
No license. Every family with standing unlicensed reports this, and download refuses with 403.

When you need more than one database

Do not crawl this site for what the catalog already answers in one call.

Read the catalog

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.

Watch for new builds

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.

00 · No key

Free lookups, no sign-up.

Paste it into a terminal. Any address answers with its country, network and hostname. ASNs and domains answer too.

curl https://api.internetdata.io/8.8.8.8
{
"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": {}
}
01 · Every field

Every field on the Data plan.

VPN, proxy, hosting and CDN flags, each naming the operator.
Location to the city, with coordinates and an accuracy radius.
The company using an address, its abuse contact, WHOIS records and the services it runs.
Up to 1,000 addresses, ASNs and domains in one request.

A free API key answers every field on a daily allowance of lookups, with no card.