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
D dmaxminddb DUB DUB GitHub
Elixir Geolix Hex README GitHub
Erlang ego README GitHub
Erlang geodata2 README GitHub
Go geoip2 GoDoc GitHub
Haskell geoip2 README GitHub
Lua mmdblua README GitHub
Lua (C extension) lua-maxminddb GitHub
Nginx ngx_http_geoip2_module README GitHub
Node.js jgeoip npm npm GitHub
Node.js maxmind-db-reader npm npm GitHub
Node.js mmdb-reader npm npm GitHub
Node.js node-geoip2 (C extension) npm npm GitHub
OCaml ocaml-maxminddb OPAM README GitHub
R rgeolocate CRAN README GitHub
Ruby maxminddb Ruby Gems README GitHub
Ruby (C extension) geoip2_compat Ruby Gems README GitHub
Ruby (C extension) Hive::GeoIP2 Ruby Gems README GitHub
Ruby (C extension) Ruby GeoIP2 Bindings (maxmind_geoip2) Ruby Gems README GitHub
Rust maxminddb Cargo API docs 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.

Download Limits

MaxMind reserves the right to limit the number of downloads made within a limited period of time.