I have been using hostip. In fairness it got the GB bit right But I'm in London. Due to privacy reasons this info can only be "so good". If you happen to be using this to look-up info for a DOS attack, keep in mind the IPs might not even be valid not assigned to anyone or outside valid public IP range. On their website I get "Location Raposo Raposo 5 5 silver badges 4 4 bronze badges. The geolocation functionality in the Loader hasn't been retired, per se. We stopped documenting it several years ago and have recommended the HTML-based solutions due to their improved accuracy, but the functionality itself has not been removed from the Loader at this time.
Basj Google API works like a charm while ipinfo. Jaimes Jaimes 3 3 silver badges 5 5 bronze badges. Eoin Removed it. Looks like phpfiddle's IP is restricted. Kurt Van den Branden Kurt Van den Branden 6, 6 6 gold badges 39 39 silver badges 62 62 bronze badges. Look at the API from hostip. If you trust hostip. Isaac Waller Isaac Waller James Cape James Cape 3 3 silver badges 11 11 bronze badges.
I was using an external service and suddenly my website became really slow. The external service was taking a good 20 seconds to send back the information - which is obviously disasterous for visitors.
So decided to do it myself, and this is a perfect solution. Thank so much. It has up to ZIP code information which is very useful. Nov 16 '14 at From PHP. Ian Hunter Ian Hunter 4, 10 10 gold badges 47 47 silver badges 70 70 bronze badges. This is just a php module for the MaxMind database, which is payware. Free "lite" versions are highly inaccurate. Not saying it is a bad thing, but it's really only useful for commercial purposes.
Isaac Askew Isaac Askew 1 1 gold badge 13 13 silver badges 28 28 bronze badges.
Some ISP's have their offices in another state to where the servers are housed. Great offline solution. Alex P.
Miller Alex P. Miller 1, 13 13 silver badges 17 17 bronze badges. Reader ".
For me 'pip install geoip2' worked. No need to add maxmin repo and apt-install libraries. Kurt Van den Branden Kurt Van den Branden 6, 6 6 gold badges 39 39 silver badges 62 62 bronze badges. Indeed correct for json.
MBizm MBizm 1. Example- python GeoIP. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
Find a geolocation of an IP address including latitude, longitude, city, region and country. Compare the data from multiple IP location providers. Just input the IP address and this service will show you the geographical location that it is coming from.
Looking to understand which API is best for a certain task? A new study uses…. Featured on Meta. Feedback post: Moderator review and reinstatement processes.
It displays what it thinks is your location on a map, too, but this isn't always accurate. Plan upgrades are applied instantly with pro-rated charges. Find out about pricing, how we integrate with your CRM and above all, what businesses are visiting your website with a free trial! A merchant can use the IP location of a customer to cross reference with Credit Card data in an effort to reduce credit card fraud as an example. They enable us to pass data easily between devices and platforms, without the need to download information manually onto a CD or other external storage for transfer. This reply will now display in the answers section.