What is my IP address?

18.222.166.12

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

CLI examples

$ curl domain.com
18.222.166.12

$ http -b domain.com
18.222.166.12

$ wget -qO- domain.com
18.222.166.12

$ fetch -qo- https://domain.com
18.222.166.12

$ bat -print=b domain.com/ip
18.222.166.12

Country lookup

$ curl domain.com/country
United States

$ curl domain.com/country-iso
US

City lookup

$ curl domain.com/city
Columbus

JSON output

$ curl domain.com/json
{
  "ip": "18.222.166.12",
  "ip_decimal": 316581388,
  "country": "United States",
  "country_iso": "US",
  "country_eu": false,
  "region_name": "Ohio",
  "region_code": "OH",
  "metro_code": 535,
  "zip_code": "43215",
  "city": "Columbus",
  "latitude": 39.9625,
  "longitude": -83.0061,
  "time_zone": "America/New_York",
  "hostname": "ec2-18-222-166-12.us-east-2.compute.amazonaws.com",
  "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
18.222.166.12

Map