$ curl domain.com 216.73.216.254 $ http -b domain.com 216.73.216.254 $ wget -qO- domain.com 216.73.216.254 $ fetch -qo- https://domain.com 216.73.216.254 $ bat -print=b domain.com/ip 216.73.216.254
$ curl domain.com/country United States $ curl domain.com/country-iso US
$ curl domain.com/json { "ip": "216.73.216.254", "ip_decimal": 3628718334, "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.254