4 ms·
If you're after IP details via an API you should check out http://ipinfo.io http://ipinfo.io, eg: $ curl ipinfo.io { "ip": "67.188.232.131",
by coderholic 13y ago
If you're after IP details via an API you should check out http://ipinfo.io http://ipinfo.io, eg:
$ 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/developers http://ipinfo.io/developers
- nostromo 13y agoWe offer something similar for free. (One of our client deployments needed it, so we just made it free for everyone.) https://www.dailycred.com/api/info.json https://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://www.dailycred.com/api/local.json?ip=67.188.232.131 https://www.dailycred.com/api/local.json?ip=67.188.232.131
- lecle11 13y agoInteresting. Do you know how the Accept Language header is calculated? I can imagine that it can also be used to track users as in [1] 1: https://panopticlick.eff.org/ https://panopticlick.eff.org/
- nostromo 13y agoIt's in each browser request as a header - we just echo it back because it's not available to js. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
- davidw 13y agoIt picked out a beautiful location for me. I really wish I were there, but I'm in an office park much further north, in Padova, which the one in the story actual nailed down to a few meters. https://maps.google.com/maps?q=42.83330000000001,12.833300000000008&hl=en&ll=42.799455,12.863874&spn=0.007116,0.016512&sll=42.799478,12.863932&layer=c&cbp=13,330.47,,0,5.55&cbll=42.799457,12.863877&t=m&z=17&panoid=Pjrq4yCOdoy2qJPo2W4s4Q 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.