• Your shopping cart is empty!

IP2Location™ Download Client

Automate Database Download

This is a command line script to download IP2Location™ database from the server. Subscribers can use this script to automate the download process without visiting the download area through browser.

We update IP2Location™ databases on the first day of the calendar month. Please download the database once a month during a random day from the first week of calendar month to avoid network congestion.

We update IP2Proxy™ databases daily. Please download database after 00:15 GMT for the latest daily update.

package Database package. (DB1...DB24, DB1BIN...DB24BIN, DB1IPV6...DB24IPV6, DB1BINIPV6...DB24BINIPV6, PX1...PX10 or PX1BIN...PX10BIN)
You may login to your account area and get the package code (or download code) at the Download page.
token Download token. You can get your token at your IP2Location Account Area at the Download page.
output Output file name. (Optional)
help Display help file.

Syntax (Linux)

./download.pl -package DB1 -token DOWNLOAD_TOKEN

Syntax (Windows)

download.exe -package DB1 -token DOWNLOAD_TOKEN



First save the download.pl to your installation directory. Make the script executable and run the script under the installation directory:
chmod 755 download.pl


First save the download.pl to your installation directory. Open a command line prompt and change directory to your installation directory.
perl download.pl ...
Note: For Windows users, you can use the download.exe to replace the download.pl to skip the Perl interpreter installation requirements.

Other Applications

You can also automate the download process using common HTTP applications such as Wget or cURL. For Windows users, you can also use the Windows Service Downloader.


wget "https://www.ip2location.com/download?token={DOWNLOAD_TOKEN}&file={DATABASE_CODE}" -O {LOCAL_FILE_NAME}


curl -o {LOCAL_FILE_NAME} "https://www.ip2location.com/download?token={DOWNLOAD_TOKEN}&file={DATABASE_CODE}"

Automate Download using Script

You can also automate the entire download, unzipping and loading of IP2Location data into database using bash or shell script.