3 ms·
Maxmind have a free database (GeoLite2) that's updated weekly. Here's an overview of the accuracy per country: http://www.maxmind.com/en/geolite_city_accuracy
by hansjorg 13y ago
Maxmind have a free database (GeoLite2) that's updated weekly. Here's an overview of the accuracy per country:
http://www.maxmind.com/en/geolite_city_accuracy http://www.maxmind.com/en/geolite_city_accuracy
It's less accurate than their commercial offering, but good enough in many cases. For ease of use, there's a nice C API (https://github.com/maxmind/geoip-api-c https://github.com/maxmind/geoip-api-c) and wrappers like pygeoip for Python.