Developer API

The same information is available to scripts – no key, no sign-up. Please keep it under 10 requests per second.

# IP address only, plain text
curl myip.bg/text
# full details as JSON
curl myip.bg/json
# IP address only, JSON
curl "myip.bg/json?min=1"
# force IPv4 / force IPv6
curl ipv4.myip.bg/text
curl ipv6.myip.bg/text

Fields in the JSON response

ipthe public IP address
versionIPv4 or IPv6
hostnamereverse DNS record
asn / isp / prefixnetwork, provider and announced prefix
country / country_code / in_eucountry, two-letter code, EU membership
region / city / postal / timezoneapproximate location
latitude / longitude / accuracy_kmcoordinates and accuracy radius
browser / os / deviceUser-Agent breakdown
protocol / tls / cipherHTTP version and encryption
proxy_headers / via_cdnvisible proxy headers

Tools