API
The same answers as JSON, without a key.
From a terminal
Requesting the site root with curl returns your address as plain text and nothing else, so it composes in a shell script.
$ curl ipaddress.im
203.0.113.42Endpoint
/api/plainYour address as plain text, with a trailing newline. Nothing else.
curl ipaddress.im/api/ipYour address with its routing origin and registry delegation, as JSON.
curl -s https://ipaddress.im/api/ip/api/ip/{address}The same record for any IPv4 or IPv6 address.
curl -s https://ipaddress.im/api/ip/8.8.8.8/api/asn/{asn}Holder, registry allocation and announced prefixes for an AS number.
curl -s https://ipaddress.im/api/asn/15169/api/dns?host={hostname}&type={type}DNS records, resolved live. Omit type for every supported type.
curl -s 'https://ipaddress.im/api/dns?host=example.com&type=MX'/api/reverse-dns?ip={address}PTR names for an address, with forward confirmation.
curl -s 'https://ipaddress.im/api/reverse-dns?ip=8.8.8.8'/api/whois?q={query}RDAP record and raw WHOIS text for a domain, address or AS number.
curl -s 'https://ipaddress.im/api/whois?q=example.com'/api/blacklist?ip={address}DNSBL status per list, with each list's own return code. Omit ip for your own.
curl -s 'https://ipaddress.im/api/blacklist?ip=8.8.8.8'/api/portsOpen ports on your own address. There is no way to name another target.
curl -sX POST https://ipaddress.im/api/ports/api/statusDataset freshness and record counts. Used by the container healthcheck.
curl -s https://ipaddress.im/api/status