GeoIP2 Downloadable Databases

MaxMind provides downloadable databases for our GeoIP2 data. These databases make use the MaxMind DB file format that provides additional flexibility over our legacy format. In particular, the GeoIP2 databases include localized names for cities, subdivisions, and countries.

MaxMind does not provide GeoIP2 CSV databases at this time, although we plan to in the future.

Binary Databases

Currently we provide GeoIP2 City and GeoIP2 Country databases. Visit the linked product pages for information on the data in each database.

MaxMind APIs

Language or Framework Package Repository Documentation Version Control
.NET (C#) NuGet GitHub Pages GitHub
C tarball releases on GitHub GitHub Pages GitHub
Java Maven Central Repository GitHub Pages GitHub
Perl MetaCPAN MetaCPAN GitHub
PHP Composer (Packagist) GitHub Pages GitHub
Python PyPI Read the Docs GitHub
Apache (mod_maxminddb) tarball releases on GitHub GitHub Pages GitHub

Third-Party APIs

Warning! MaxMind does not offer support for these APIs and has not reviewed the code. Use at your own risk.
Language or Framework API Name Package Repository Documentation Version Control
Elixir Geolix README GitHub
Erlang ego README GitHub
Go geoip2 GoDoc GitHub
Nginx ngx_http_geoip2_module README GitHub
Node.js maxmind-db-reader npm npm GitHub
Ruby maxminddb Ruby Gems README GitHub
Ruby (C extension) Ruby GeoIP2 Bindings README GitHub
Rust maxminddb README GitHub
Scala maxmind-geoip2-scala README GitHub

Updating Downloadable Databases

You can use the GeoIP Update program to automatically update your GeoIP databases.