GeoLite Databases and Web Services

MaxMind offers a free geolocation and ASN data in downloadable database and web service formats.

Find what you need:

Understanding IP geolocation

IP geolocation is inherently imprecise. Locations in MaxMind’s data are often near population centers. Any location provided by GeoLite or GeoIP® should not be used to identify a particular address or household.

Some IP addresses cannot be geolocated as precisely as others. Almost all IP addresses will have at least a country associated with them, but some will not have a region or city, and many will not have a postal code.

GeoLite City and paid GeoIP City data return a geolocation area rather than a point on a map. A geolocation area is a circle defined by latitude, longitude, and an accuracy radius, which ranges from a few kilometers to 1000 kilometers.

You should build your applications with this accuracy radius in mind to avoid confusing results. For example, an IP address which can only be geolocated to a country will return a latitude and longitude near the center of that country, with a very large accuracy radius. If you do not account for the accuracy radius, it may appear as if many IP addresses are geolocated to a specific place in the center of the country.

Learn more about MaxMind’s geolocation area data on our Knowledge Base.

Integrating GeoLite databases and web services

GeoLite databases and web services use the same integration methods as our GeoIP databases and web services. To quickly get started, follow these steps.

Want to work with GeoLite on Snowflake? Get GeoLite directly through the Snowflake marketplace (Snowflake account required).

Sign up for a MaxMind account to get GeoLite

Read more about GeoLite, its attribution requirements and applicable use cases, and how to sign up.

Get started on our GeoLite page.

Generate a license key to authenticate GeoLite database downloads and web service requests

A license key is like a password used to authenticate database downloads or web service requests. After you have a MaxMind account, you should generate one or more license keys. Some people use different license keys for different servers or use cases.

Learn how to generate license keys on our Knowledge Base, or go directly to your account portal to generate a new license key.

Working with the web services instead of the databases? Skip to the instructions on using the web services below.

Decide how you want to use GeoLite databases

MaxMind provides databases in two formats:

  • a binary (.mmdb) format optimized for fast lookups at scale
  • a comma separated values (.csv) format that’s good for manipulating, joining, and transforming the data

If you’re making a web application that needs to perform lookups quickly and at high volume, you should use the binary mmdb format.

If you’re bringing GeoLite data into an existing database structure or application, you should use the csv format.

If you’re working with an existing plugin or integration, check which format that plugin uses.

Automate database downloads and updates

Please note that GeoLite users are limited to 30 database downloads per day. If you need to download more, please upgrade to GeoIP.

The GeoLite End User License Agreement requires all GeoLite users to keep their data up- to-date. This means you must delete GeoLite databases within 30 days of a new release. The easiest way to keep your GeoLite data up-to-date is to automate downloads and updates.

The method for updating the GeoLite databases depends on the database format you’re using. To help you decide which database format to use, see the section above.

Look up IP addresses in the GeoLite databases

The method you use to look up IP addresses in the GeoLite databases will depend on the database format you’re using and what you’re using it for. To help you decide which database format to use, see this section above.

Look up IP addresses in the GeoLite web services

Please note that GeoLite web service users are limited to 1000 lookups per day per service. If you need to do more lookups, please upgrade to GeoIP.

MaxMind maintains client APIs in many popular languages to help you look up IP addresses in our web services quickly and easily.

Learn how to look up IP addresses in our web services.

MaxMind web services do support a client-side JavaScript lookup, but only for the paid GeoIP web services. Learn more about client-side JavaScript lookups using the GeoIP web services, and upgrade to GeoIP.

GeoLite database fields

MaxMind provides three different GeoLite databases. Click each link for documentation of all available database fields, client APIs, and sample files.

Fields marked as available in Country will be available in the GeoLite Country database, except as noted in the field description. Fields marked as available in City will be available in the GeoLite City database, except as noted in the field description.

DatabaseUse case

GeoLite Country database

* Some fields listed in this documentation are not present in GeoLite. Check the description of the fields.

Geolocation at the country-level for analytics, content customization, or compliance use cases in territories that are not disputed.

GeoLite City database

* Some fields listed in this documentation are not present in GeoLite. Check the description of the fields.

Geolocation down to the city or postal code for analytics and content customization.

Please note: The free GeoLite City is considerably less accurate than the paid GeoIP City data, and is not recommended for commercial use cases.

GeoLite ASN databaseProvides the autonomous system number and organization for IP addresses for analytics.

GeoLite web service fields

MaxMind provides two different GeoLite web services. Click each link for documentation of all available data that can be returned in each service.

Fields marked as available in the GeoIP Country web service will be available in GeoLite Country web service, except as noted in the field description. Fields marked as available in the GeoIP City web service will be available in the GeoLite City web service, except as noted in the field description.

Web serviceUse case

GeoLite Country web service

* Some fields listed in this documentation are not present in GeoLite. Check the description of the fields.

Geolocation at the country-level for analytics, content customization, or compliance use cases in territories that are not disputed.

GeoLite City web service

* Some fields listed in this documentation are not present in GeoLite. Check the description of the fields.

Geolocation down to the city or postal code for analytics and content customization. Also includes the autonomous system number and autonomous system organization.

Please note: The free GeoLite City is considerably less accurate than the paid GeoIP City data, and is not recommended for commercial use cases.

Resources for working with GeoLite

Please note that MaxMind does not provide support for our GeoLite databases and web services. You can use the resources below to learn more about working with IP geolocation data in general and GeoLite in particular.

What are you permitted to do with GeoLite?

Get resources for licensing and partnership around GeoLite data:

How does IP geolocation work?

Get resources for understanding the benefits and limitations of IP geolocation and how MaxMind keeps its data safe and in line with privacy-by-design principles:

What can I do with paid MaxMind data?

In addition to IP more accurate geolocation data, MaxMind has paid products that identify various attributes of an IP address, including:

  • ISP name (e.g., AT&T Wireless, Amazon, etc.)
  • connection type (e.g., Cellular, Satellite, etc.)
  • domain name (e.g., google.com, microsoft.com, etc.)
  • user type (e.g., business, residential, etc.)
  • proxy identification (e.g., VPNs, Tor exit nodes, etc.)

Learn more about MaxMind’s paid IP intelligence data.

MaxMind also has a risk scoring web service for fraud prevention and security. Learn more about minFraud.