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