InfoMyIP API

Public JSON API for all network tools, with curl-friendly endpoints. Anonymous access or with an API key for higher limits.

base: https://www.infomyip.com/api/v1/
⚡ Quickstart

No setup: try it right from your terminal.

curl https://www.infomyip.com/ip
curl "https://www.infomyip.com/api/v1/dns?domain=example.com&type=A,MX"
🔑 Authentication

The API key is optional and raises your request limit. Pass it via header or query string.

curl -H "Authorization: Bearer <API_KEY>" https://www.infomyip.com/api/v1/ip
curl -H "X-API-Key: <API_KEY>" https://www.infomyip.com/api/v1/ip
curl "https://www.infomyip.com/api/v1/ip?key=<API_KEY>"

Sign up for an API key

⏱️ Rate limits
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.

Endpoints
GET

/api/v1/ip

Info about your IP (or an IP passed with ?ip=): version, reverse DNS, PTR, public/private.

params: ?ip= (opzionale)
curl "https://www.infomyip.com/api/v1/ip"
GET

/api/v1/geoip

IP geolocation and ASN (country, city, ISP, organization, proxy/hosting).

params: ip= (opzionale)
curl "https://www.infomyip.com/api/v1/geoip?ip=8.8.8.8"
GET

/api/v1/bgp

BGP information for an IP: announced prefix, RIR and related ASNs.

params: ip= (opzionale)
curl "https://www.infomyip.com/api/v1/bgp?ip=8.8.8.8"
GET

/api/v1/dns

DNS records of a domain for the requested types.

params: domain= &type=A,AAAA,MX,NS,TXT,CNAME,SOA,CAA,SRV
curl "https://www.infomyip.com/api/v1/dns?domain=example.com&type=A,MX"
GET

/api/v1/reverse

Reverse DNS (PTR) of an IP address.

params: ip=
curl "https://www.infomyip.com/api/v1/reverse?ip=1.1.1.1"
GET

/api/v1/ping

Ping a host, with statistics.

params: host= &count=1..10
curl "https://www.infomyip.com/api/v1/ping?host=google.com&count=4"
GET

/api/v1/traceroute

Traceroute to a host.

params: host=
curl "https://www.infomyip.com/api/v1/traceroute?host=cloudflare.com"
GET

/api/v1/port

Scan the given TCP ports (or the most common ones).

params: host= &ports=80,443|common
curl "https://www.infomyip.com/api/v1/port?host=example.com&ports=80,443"
GET

/api/v1/headers

HTTP response headers of a URL.

params: url=
curl "https://www.infomyip.com/api/v1/headers?url=https://example.com"
GET

/api/v1/blacklist

Check an IP against major DNS blacklists (DNSBL).

params: ip=
curl "https://www.infomyip.com/api/v1/blacklist?ip=1.2.3.4"
GET

/api/v1/whois

WHOIS data of a domain.

params: domain=
curl "https://www.infomyip.com/api/v1/whois?domain=example.com"
GET

/api/v1/subnet

Subnet calculator from CIDR or IP/netmask.

params: cidr=
curl "https://www.infomyip.com/api/v1/subnet?cidr=192.168.1.0/24"
Plain-text endpoints (curl)

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
curl https://www.infomyip.com/ip