Lookup API
Look up a hostname
GET /api/v1/lookup/host/{name} — every address a hostname resolves to, each with its answer.
GET /api/v1/lookup/host/dns.google?fields=location,network,privacy
Authorization: Bearer <key>{
"status": "success",
"data": {
"host": "dns.google",
"resolvedAt": "2026-11-26T13:28:41.112Z",
"ttl": 300,
"addresses": [
{ "ip": "8.8.4.4", "bogon": false, "location": { "...": "..." }, "network": { "asn": 15169, "...": "..." }, "privacy": { "hosting": true, "...": "..." }, "release": "2026.11.26-4" },
{ "ip": "8.8.8.8", "...": "..." },
{ "ip": "2001:4860:4860::8888", "...": "..." },
{ "ip": "2001:4860:4860::8844", "...": "..." }
],
"truncated": false,
"release": "2026.11.26-4"
}
}IP Atlas resolves the name's A and AAAA records, then answers each address exactly as
/lookup/{ip} would. fields works the same way.
- Needs the
hostfield group on the key; without it the call returns403 FIELD_GROUP_NOT_ALLOWED. - Every address answered counts as one lookup against the per-minute limit and monthly quota
(the four addresses above cost four). At most 8 addresses are answered;
truncatedsays when a name has more. - Names, not URLs:
example.et,www.example.etor an internationalised name (bücher.de, returned in its ASCII form). Send an IP address to/lookup/{ip}instead.
Read the answer with care
- A CDN or cloud answers for the site. Most websites sit behind Cloudflare, Fastly, AWS or
similar: the addresses, and so the location and network, are the provider's edge, not where the
site's owner or origin server is. Those addresses come back with
privacy.hostingorprivacy.relayset and the provider innetwork.organization/privacy.service. - DNS answers vary. IP Atlas resolves through public resolvers at
resolvedAt; another resolver, place or time can get different addresses. The answer is cached for the record's TTL (30 to 300 seconds), andCache-Controlsays so.
Names IP Atlas won't resolve
Internal and reserved names are refused before any DNS query (400 HOST_NOT_ALLOWED):
localhost, .local, .internal, .lan, .home, .corp, .home.arpa, .test, .invalid,
.example, .onion and similar. So is a name that resolves only to private or reserved addresses;
the response doesn't say which.
| HTTP | code | When |
|---|---|---|
| 400 | INVALID_HOST | Not a hostname (an IP address, a single word, bad characters) |
| 400 | HOST_NOT_ALLOWED | An internal or reserved name, or one that resolves only to private addresses |
| 404 | HOST_NOT_FOUND | The name has no A or AAAA record |
| 502 | HOST_RESOLUTION_FAILED | DNS timed out or failed; try again |