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:
- Signed up to IPinfo.io
- Have saved your IPinfo access token
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
- Go to your account dashboard’s data download section.
- Then, find the database you want to download.
- Select the desired file format you want. (Which format to choose?)
- Then click the download icon
2. Direct Download Link
- Go to your account dashboard’s data download section.
- Then, find the database you want to download.
- Select the desired file format you want.
- Click the copy icon
- 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
You can download our database from your terminal application. You can use curl
or, wget
. The following instructions are for curl
.
- Go to our filename reference page on our documentation.
- Find the database you want to download and the format you want to download in.
- Copy the terminal command
- Replace the
<YOUR_TOKEN>
placeholder on the command with your IPinfo access token. - 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.