Downloading the IPinfo database / data downloads

After you have signed, it only takes a few seconds to download your first IPinfo IP database

Prerequisites

This post assumes you have done the following:

Please feel free to check out our post signup getting started video:


Downloading the IPinfo database

If you have signed up for a free account, you already have access to 3 accessible databases. If you have signed up for a paid account, you will also have access to your relevant databases.

If you would like to know which file format is the best choice for you, read this article: How to choose the best file format for your IPinfo database?

You can download your ipinfo database in three ways:

1. From the IPinfo Website

Downloading database from the IPinfo website

  1. Go to your account dashboard’s data download section.
  2. Then, find the database you want to download.
  3. Select the desired file format you want. (Which format to choose?)
  4. Then click the download icon

2. Direct Download Link

Direct link to download the database

  1. Go to your account dashboard’s data download section.
  2. Then, find the database you want to download.
  3. Select the desired file format you want.
  4. Click the copy icon
  5. Then, you can visit the link from your browser, which will automatically download the database.

You can use this link to download the IP database from your terminal as well — but make sure to enable redirects.

3. From the terminal

Downloading database from the terminal

You can download our database from your terminal application. You can use curl or, wget. The following instructions are for curl.

  1. Go to our filename reference page on our documentation.
  2. Find the database you want to download and the format you want to download in.
  3. Copy the terminal command
  4. Replace the <YOUR_TOKEN> placeholder on the command with your IPinfo access token.
  5. Run the command on your terminal

Example:

Downloading the IP to Country ASN database in the MMDB/Binary format.

curl -L https://ipinfo.io/data/country_asn.mmdb?token=<YOUR_TOKEN> -o country_asn.mmdb

Downloading the IP to Country database in CSV format.

curl -L https://ipinfo.io/data/country.csv.gz?token=<YOUR_TOKEN> -o country.csv.gz

Downloading the IP to Location database in JSON format.

curl -L https://ipinfo.io/data/standard_location.json.gz?token=<YOUR_TOKEN> -o location.json.gz

Optional step: Unzipping

Most of our data downloads are compressed in the gzip format. You can use any compression/decompression software to unzip the downloaded database. I recommend gunzip for the terminal in Linux/Mac OS or 7zip for Windows GUI.

Optional step: Install IPinfo’s open-source tools

You should install our open-source tools if you are regularly working with our data downloads.

  • MMDBctl: Our MMDB database exploration and management utility tool.
  • IPinfo CLI: Official CLI that comes with a plethora of features for working with IP data, our API, and our data downloads.