$ curl ipinfo.io/xxx.xxx.xxx.xxx

Get json {
“ip”: “210.134.234.111”,
“city”: “”,
“region”: “”,
“country”: “JP”,
“loc”: “35.6900,139.6900”,
“org”: “AS2512 TCP Inc.”
}