This is only recommended for systems unable to use GeoIP Update or for clients using the CSV-format databases.
In order to download the databases from a script or program, please use the permalinks found on the GeoIP download page.
- In the “Download Links” column, click “Get Permalink(s)” for the desired database.
- Copy the permalink(s) provided in the modal window.
YOUR_LICENSE_KEYwith your license key.
- If you are using
curlfrom a shell script, please be sure to quote the URL.
Checking for the Latest Release Date
You can check the date of a given database’s latest release by issuing a HEAD request for that database’s download permalink URL, as found on our database download page [login required].
For example, using the permalink for the GeoIP2 City CSV database, you can issue a command like the following:
$ curl -I 'https://download.maxmind.com/app/geoip_download?edition_id=GeoIP2-City-CSV&license_key=YOUR_LICENSE_KEY&suffix=zip'
YOUR_LICENSE_KEY is a placeholder for your account’s actual license key.
In the response, you can check the
last-modified header for the file’s build date, or you can check the
content-disposition header for the date that would appear in the file name. These checks can be incorporated into your own script or program, according to your needs.
This method only issues a HEAD request, rather than a download request, so running this check won’t count against your daily database download limit.