IP Lookup
Resolve a domain or IP and return IP and network details.
GET /api/ip-lookup
Try it
{
"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
}What it returns
- •ok - whether the lookup succeeded
- •input - the original input (domain or IP)
- •resolved.hostname - the normalized hostname (lowercased, trailing dot removed; null for direct IP input)
- •resolved.ipv4 - list of resolved IPv4 addresses
- •resolved.ipv6 - list of resolved IPv6 addresses
- •ip - the primary IP address used for enrichment
- •network.asn - autonomous system number
- •network.asn_org - ASN organization name
- •network.country - ISO country code
- •network.provider - network provider / org
- •network.ptr - reverse DNS hostname (public IPs only; null for private/reserved inputs)
- •network.is_private - optional; only present (true) for private/reserved direct-IP inputs
- •meta - response time, cache status, rate limit scope
Use cases
- •Find the IP address behind a domain
- •Inspect basic network ownership and ASN for an IP
- •Debug DNS vs IP routing issues
- •Quick IP info in scripts and CI pipelines
Quick API examples
curl (domain)
curl "https://tinyutils.dev/api/ip-lookup?input=example.com"
curl (IP)
curl "https://tinyutils.dev/api/ip-lookup?input=1.1.1.1"
JavaScript (fetch)
const res = await fetch( "https://tinyutils.dev/api/ip-lookup?input=example.com" ); const data = await res.json(); console.log(data.ip, data.network.country, data.network.asn);