IP2Location™ Download Client
Starting in May 2025, all database downloads utilize R2 presigned URLs. Please ensure that your HTTP client is configured to follow redirects and that there are no proxy or firewall settings blocking requests to the redirect host.
All downloads will be redirected via HTTPS to the following hostname:
ip2location.5d193fbd9b158504f07026ff6808d20f.r2.cloudflarestorage.com
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.
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.