# Your public IP
curl https://ip.mirio.dev
# Force IPv4 or IPv6
curl -4 https://ip.mirio.dev
curl -6 https://ip.mirio.dev
# Single property
curl https://ip.mirio.dev/city
# All properties as key=value pairs
curl https://ip.mirio.dev?format=text
# Full JSON response
curl https://ip.mirio.dev?format=json
JavaScript
// Get your IP as a string
const ip = await fetch("https://ip.mirio.dev").then(r => r.text());
// Get all properties as JSON
const info = await fetch("https://ip.mirio.dev?format=json").then(r => r.json());