GeoLite2 databases are free IP geolocation databases comparable to, but less accurate than, MaxMind’s GeoIP2 databases. The GeoLite2 Country, City, and ASN databases are updated weekly, every Tuesday. GeoLite2 data is also available as a web service in the GeoLite2 Country and GeoLite2 City web services (users are limited to 1000 IP address lookups per service per day).
IP Geolocation Usage
IP geolocation is inherently imprecise. Locations are often near the center of the population. Any location provided by a GeoIP database should not be used to identify a particular address or household. You can compare accuracy of the GeoLite2 data and MaxMind’s paid GeoIP2 products by selecting a country on our GeoIP2 City Accuracy page.
Use the Accuracy Radius as an indication of geolocation accuracy for the latitude and longitude coordinates we return for an IP address. The actual location of the IP address is likely within the area defined by this radius and the latitude and longitude coordinates.
MaxMind does not provide official support for the free GeoLite2 web services or databases. If you have questions about the GeoLite2 web services or databases, or GeoIP2 APIs, please see stackoverflow’s GeoIP questions and answers or our GeoLite FAQ.
The GeoLite2 end-user license agreement, which incorporates components of the Creative Commons Attribution-ShareAlike 4.0 International License can be found here. The attribution requirement may be met by including the following in all advertising and documentation mentioning features of or use of GeoLite2 data:
This product includes GeoLite2 data created by MaxMind, available from <a href="https://www.maxmind.com">https://www.maxmind.com</a>.
GeoLite2 Commercial Redistribution
We also offer redistribution licenses for GeoLite2 databases that allow you to package the databases with your commercial products without the need for attribution. For more information, please visit the GeoLite2 Commercial Redistribution page.
To receive access to download the GeoLite2 databases or query the GeoLite2 web services at no charge, sign up for a GeoLite2 account.
Once you’ve set up an account, login to your account portal and select “Download Databases” to access the databases, or generate a license key to begin querying the web services (see more information in the Integration section below). You may also be interested in our guide to Getting Started with GeoLite2.
Databases. See GeoIP2 downloadable databases for a list of available APIs. GeoIP2 APIs may be used with GeoLite2 binary databases (MMDB).
Web services. See GeoIP2 Precision web services for a list of available web service APIs. GeoIP2 Precision APIs may be used with the GeoLite2 web services. GeoLite2 web service URIs can be found here.
We have a brief tutorial on how to integrate the GeoLite2 City web service using PHP on our blog.