InfoMyIP API
Public JSON API for all network tools, with curl-friendly endpoints. Anonymous access or with an API key for higher limits.
No setup: try it right from your terminal.
The API key is optional and raises your request limit. Pass it via header or query string.
- Anonymous (per IP)
- 60 requests/min
- With API key
- 1000 requests/min
- Header
- X-RateLimit-Limit · X-RateLimit-Remaining · X-RateLimit-Reset
Every response includes X-RateLimit-* headers. When exceeded: HTTP 429 with Retry-After.
/api/v1/ip
Info about your IP (or an IP passed with ?ip=): version, reverse DNS, PTR, public/private.
?ip= (opzionale)/api/v1/geoip
IP geolocation and ASN (country, city, ISP, organization, proxy/hosting).
ip= (opzionale)/api/v1/bgp
BGP information for an IP: announced prefix, RIR and related ASNs.
ip= (opzionale)/api/v1/dns
DNS records of a domain for the requested types.
domain= &type=A,AAAA,MX,NS,TXT,CNAME,SOA,CAA,SRV/api/v1/reverse
Reverse DNS (PTR) of an IP address.
ip=/api/v1/ping
Ping a host, with statistics.
host= &count=1..10/api/v1/traceroute
Traceroute to a host.
host=/api/v1/port
Scan the given TCP ports (or the most common ones).
host= &ports=80,443|common/api/v1/headers
HTTP response headers of a URL.
url=/api/v1/blacklist
Check an IP against major DNS blacklists (DNSBL).
ip=/api/v1/whois
WHOIS data of a domain.
domain=/api/v1/subnet
Subnet calculator from CIDR or IP/netmask.
cidr=Minimal endpoints returning plain text, ideal for scripts and routers.
- GET /ip
- Your public IP as text —
https://www.infomyip.com/ip - GET /ip.json
- Your IP and info as JSON —
https://www.infomyip.com/ip.json