$ curl ifconfig.codeb2cc.com 216.73.216.28 $ wget -qO- ifconfig.codeb2cc.com 216.73.216.28
$ curl ifconfig.codeb2cc.com/json
{
"ip": "216.73.216.28",
"continent": "NA",
"country": "US",
"city": "Columbus",
"latitude": "39.96118",
"longitude": "-82.99879"
}
Setting the Accept: application/json header also works as expected.