$ curl domain.com 216.73.216.62 $ http -b domain.com 216.73.216.62 $ wget -qO- domain.com 216.73.216.62 $ fetch -qo- https://domain.com 216.73.216.62 $ bat -print=b domain.com/ip 216.73.216.62
$ curl domain.com/country United States $ curl domain.com/country-iso US
$ curl domain.com/json
{
"ip": "216.73.216.62",
"ip_decimal": 3628718142,
"country": "United States",
"country_iso": "US",
"country_eu": false,
"latitude": 37.751,
"longitude": -97.822,
"time_zone": "America/Chicago",
"user_agent": {
"product": "Mozilla",
"version": "5.0",
"comment": "AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)",
"raw_value": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
}
}
Setting the Accept: application/json header also works as expected.
Always returns the IP address including a trailing newline, regardless of user agent.
$ curl domain.com/ip 216.73.216.62