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

Use cases

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);