by coderholic · 13y ago · 0 comments
$ curl ipinfo.io
{
"ip": "67.188.232.131",
"hostname": "c-67-188-232-131.hsd1.ca.comcast.net",
"city": "Mountain View",
"region": "California",
"country": "US",
"loc": "37.385999999999996,-122.0838",
"org": "AS7922 Comcast Cable Communications, Inc.",
"phone": 650
}
$ curl ipinfo.io/geo
{
"ip": "67.188.232.131",
"city": "Mountain View",
"region": "California",
"country": "US",
"loc": "37.385999999999996,-122.0838",
"phone": 650
}
$ curl ipinfo.io/org
AS7922 Comcast Cable Communications, Inc.
$ curl ipinfo.io/8.8.8.8/org
AS15169 Google Inc.
More details available at http://ipinfo.io/developershttps://www.dailycred.com/api/info.json
This returns the current requester's location, device, and language settings. Or you can just look for location for a specific ip like so:
https://maps.google.com/maps?q=42.83330000000001,12.83330000...
By the way, Italy is amazingly beautiful isn't it! You can pretty much randomly pick a street view and without too much effort, find some interesting or beautiful scenery.