18.118.28.31
Multiple command line HTTP clients are supported, including curl, httpie, GNU Wget and fetch.
No
$ curl https://ip.protenus.com 18.118.28.31 $ http -b ip.protenus.com 18.118.28.31 $ wget -qO- ip.protenus.com 18.118.28.31 $ fetch -qo- https://ip.protenus.com 18.118.28.31 $ bat -print=b ip.protenus.com/ip 18.118.28.31
$ http ip.protenus.com/json { "ip": "18.118.28.31", "ip_decimal": 309730335 }
Setting the Accept: application/json
header also works as expected.
Always returns the IP address including a trailing newline, regardless of user agent.
$ http ip.protenus.com/ip 18.118.28.31