$ curl whoami.run/<endpoint> Example: curl whoami.run/ip curl whoami.run/json curl whoami.run/help
Endpoint | Description |
---|---|
/ | Show connection details |
/ip | Show public IP address (IPv4 or IPv6) |
/v4, /ipv4 | Show public IPv4 address |
/v6, /ipv6 | Show public IPv6 address |
/hostname | Show reverse DNS hostname |
/country | Show detected country |
/user-agent | Show User-Agent header |
/language | Show Accept-Language header |
/referer | Show Referer header |
/method | Show HTTP method |
/encoding | Show Accept-Encoding header |
/mime-type | Show Content-Type header |
/charset | Show Accept-Charset header |
/json | Show all details in JSON |
/help | Display this help page |