What is my IP address?

216.73.216.254

Multiple command line HTTP clients are supported, including curl, httpie, GNU Wget and fetch.

CLI examples

$ 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

Country lookup

$ curl domain.com/country
United States

$ curl domain.com/country-iso
US

JSON output

$ 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.

Plain output

Always returns the IP address including a trailing newline, regardless of user agent.

$ curl domain.com/ip
216.73.216.254