GeoIP2 Downloadable Databases

MaxMind provides both binary and CSV databases for GeoIP2. Both formats provide additional data not available in our legacy databases including localized names for cities, subdivisions, and countries.

We currently provide the following GeoIP2 databases:

Binary Databases

Binary databases make use of the MaxMind DB file format. We provide APIs for this format for several languages, and there are many third-party APIs for languages and platforms that we do not support ourselves.

MaxMind APIs

Language or Software 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 Software API Name Package Repository Documentation Version Control
Clojure maximator Clojars README GitHub
Elixir Geolix README GitHub
Erlang ego README GitHub
Go geoip2 GoDoc GitHub
Lua lua-maxminddb GitHub
Nginx ngx_http_geoip2_module README GitHub
Node.js maxmind-db-reader npm npm GitHub
R rgeoip README GitHub
Ruby maxminddb Ruby Gems README GitHub
Ruby (C extension) Hive::GeoIP2 Ruby Gems README GitHub
Ruby (C extension) Ruby GeoIP2 Bindings README GitHub
Rust maxminddb README GitHub
Scala maxmind-geoip2-scala README GitHub
Varnish libvmod-geoip2 GitHub
Varnish varnish-mmdb-vmod README GitHub

Updating Downloadable Databases

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

CSV Databases

More information about the CSV databases can be found on our GeoIP2 CSV Databases page.