IP Lookup API — resolve domain to IP and network details
Need to find the IP behind a domain, or get basic network ownership info for an IP - from a script, app, or CI job without building DNS + IP enrichment yourself? Use the TinyUtils IP Lookup API.
The problem
Resolving an IP from a domain is straightforward with dig or nslookup, but getting useful network metadata alongside it - ASN, country, provider, reverse DNS - means stitching together a DNS resolver, a WHOIS client, and an IP geolocation source. Each requires its own library or external service.
The TinyUtils IP Lookup API handles all of that in a single GET request and returns clean JSON.
Quick solution
Send a GET request to /api/ip-lookup with any domain or IP.
curl (domain)
curl "https://tinyutils.dev/api/ip-lookup?input=example.com"
Response
{
"ok": true,
"input": "example.com",
"resolved": {
"hostname": "example.com",
"ipv4": ["93.184.216.34"],
"ipv6": []
},
"ip": "93.184.216.34",
"network": {
"asn": 15133,
"asn_org": "EdgeCast Networks, Inc.",
"country": "US",
"provider": "EdgeCast Networks, Inc.",
"ptr": null
},
"meta": {
"responseTimeMs": 72,
"cached": false,
"rateLimitedScope": "global"
},
"error": null
}Use cases
- •Find the IP address behind a domain to verify DNS propagation
- •Inspect hosting provider or ASN for any public IP
- •Debug DNS vs IP routing issues in staging and production
- •Add quick IP info to scripts, monitoring tools, and CI pipelines
JavaScript example
JavaScript (fetch)
const res = await fetch(
"https://tinyutils.dev/api/ip-lookup?input=example.com"
);
const data = await res.json();
if (data.ok) {
console.log("IP:", data.ip);
console.log("Country:", data.network.country);
console.log("ASN:", data.network.asn, data.network.asn_org);
console.log("PTR:", data.network.ptr);
}See also
Try the IP Lookup tool
Enter any domain or IP and see its network details instantly.
Open IP Lookup →