What is my IP address?

104.23.243.54

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

CLI examples

$ curl wptest.sprious.com
104.23.243.54

$ http -b wptest.sprious.com
104.23.243.54

$ wget -qO- wptest.sprious.com
104.23.243.54

$ fetch -qo- https://wptest.sprious.com
104.23.243.54

$ bat -print=b wptest.sprious.com/ip
104.23.243.54

Country lookup

$ http wptest.sprious.com/country
United States

$ http wptest.sprious.com/country-iso
US

ASN lookup

$ http wptest.sprious.com/asn
AS13335

Looks like you're with CLOUDFLARENET

JSON output

$ http wptest.sprious.com/json
{
  "ip": "104.23.243.54",
  "ip_decimal": 1746400054,
  "country": "United States",
  "country_eu": false,
  "country_iso": "US",
  "latitude": 37.751,
  "longitude": -97.822,
  "asn": "AS13335",
  "asn_org": "CLOUDFLARENET",
  "user_agent": {
    "product": "Mozilla",
    "version": "5.0",
    "comment": "AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +[email protected])",
    "raw_value": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +[email protected])"
  }
}

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.

$ http wptest.sprious.com/ip
104.23.243.54

FAQ

How do I force IPv4 or IPv6 lookup?

As of 2018-07-25 it's no longer possible to force protocol using the v4 and v6 subdomains. IPv4 or IPv6 still can be forced by passing the appropiate flag to your client, e.g curl -4 or curl -6.

Is automated use of this service permitted?

Yes, as long as the rate limit is respected. The rate limit is in place to ensure a fair service for all.

Please limit automated requests to 1 request per minute. No guarantee is made for requests that exceed this limit. They may be rate-limited, with a 429 status code, or dropped entirely.

Can I run my own service?

Yes, the source code and documentation is available on GitHub.