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.

Download - For wget or cURL

You can also automate the download process using common HTTP applications such as wget or cURL.

wget

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

cURL

cURL
curl -L -o {LOCAL_ZIP_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.