How to Automate IPGeolocation.io Database Updates

Abdullah Afzal
By Abdullah Afzal Database Engineer
Posted on November 29, 2026 | 18 min read
How to Automate IPGeolocation.io Database Updates
Back to All Tutorials

To automate IPGeolocation.io database updates, run one script every day at 05:00 UTC. It checks our status endpoint, downloads your database only when a new release is out, verifies the release's signature and checksums, renames the new files over the old ones, and tells your application to load them.

The script in Step 6 is about 120 lines of Bash, and every command in it was run on Linux against our status endpoint and our sample archives. If a download or any check fails, the files your application is reading stay exactly as they were.


TL;DR

IPGeolocation.io database updates can run automatically once your database's status key, your download links, and our public key are saved on the server: you schedule one Bash script with a cron job or a systemd timer to run every day at 05:00 UTC, and it installs a release only after its signature and checksums pass. Each run:

  1. Reads your database's lastDailyUpdate (or lastWeeklyUpdate) from https://database.ipgeolocation.io/v2/status and stops if it hasn't changed.
  2. Downloads the 384-byte signature and then the archive from your static links.
  3. Runs openssl dgst -sha256 -verify, which must print Verified OK.
  4. Checks every file against checksum.txt and every MMDB file with mmdbio verify.
  5. Renames each new file over the old one and keeps the replaced release for seven days.
  6. Runs your reload command, such as nginx -s reload.

What you need before you start

Check these first:

  • Your download links and the public key. Sign in to your IPGeolocation.io account: your database subscription lists static links for the archive, its signature, and our public key. The links never change, so the same ones serve every future release, and you also get an email each time a new release ships.
  • A Linux server with these tools: bash, curl, jq, openssl, unzip, sha256sum, and flock. On Debian or Ubuntu, sudo apt install curl jq openssl unzip coreutils util-linux covers them.
  • mmdbio, if you use MMDB files. mmdbio is our command-line tool for MMDB files. Install it once before the first run; the script checks that it's there but doesn't install it. Put the binary in /usr/local/bin: unpack the prebuilt release for your platform there, or build it with go install and copy it from ~/go/bin, because a scheduled job running as root won't look in your home folder. mmdbio --version should print a version number.
  • Disk space on one filesystem for the downloaded archive, the unpacked release, the files in use now, and the replaced releases you keep for rollback (seven days of them by default). Each database's documentation page lists its current file sizes.
  • The script on every server that hosts the files. Our data team recommends one updater per server rather than downloading once and copying the files around, because copying files between servers can corrupt them. Each production server that runs the database also has to be covered by your license; how database licenses count servers explains the rules.

If jq: command not found or a similar message comes up later, one of these tools is missing; the install line in this list adds it.


How the update script works

The script installs a release only after it has passed every check, and it runs those checks on a copy in a work folder beside the live files. A failed download or check ends the run with an error and deletes the work folder, leaving the live files as they were. The script validates the entire download before installation. Each file is replaced atomically. If installation stops partway through a multi-file release, the directory can contain files from two releases. Fix the failure and rerun the updater so every file comes from the same release. If your application must always read files from a single release, stage each release in its own versioned directory, switch one current symlink to it, and open every file through the directory that symlink points to.

IPGeolocation.io database update flow: check, download, verify, unpack, rename, reload, with failures leaving live files

The rename near the end of a run is what keeps a running application safe. Many applications memory-map an MMDB file, reading it straight from disk, and overwriting that file in place can hand them a half-written database: nginx workers running our nginx module can crash on one, and our Kong plugin can serve torn data. Renaming a finished file over the old one within the same filesystem happens in a single step, so a reader opens either the old file or the new one, never a mix of the two.


Step 1: Find your database in the status endpoint

IPGeolocation.io's status endpoint, https://database.ipgeolocation.io/v2/status, lists when each database last had a new release, as a lastDailyUpdate and a lastWeeklyUpdate time in UTC, and it needs no API key. List the databases it covers:

bash

curl -fsS https://database.ipgeolocation.io/v2/status \
  | jq -r 'to_entries[] | "\(.key): \(.value | keys | join(", "))"'

The output names each group and the databases in it (trimmed here to two groups):

text

advancedDatabasesLastModified: asnToWhoisDatabase, ipCityDatabase, ipToASNDatabase, ipToASNExtendedDatabase, ipToAbuseDatabase, ipToCityCompanyAsnAbuseDatabase, ipToCityCompanyAsnAbuseSecurityDatabase, ipToCityCompanyAsnDatabase, ipToCompanyAsnDatabase, ipToCompanyDatabase
securityDatabasesLastModified: ipCityIspSecurityDatabase, ipCitySecurityDatabase, ipHostingDatabase, ipSecurityDatabase, residentialProxyDatabase

Each key is named after a database, so pick the one your subscription covers: the IP Security Database is ipSecurityDatabase, and the bundle of location, company, ASN, abuse contact, and security data is ipToCityCompanyAsnAbuseSecurityDatabase. The group doesn't matter to the script, which looks for your key in all of them. Read its timestamps:

bash

curl -fsS https://database.ipgeolocation.io/v2/status \
  | jq '.[] | .ipSecurityDatabase? // empty'

json

{
  "lastWeeklyUpdate": "2026-10-26 00:13:04",
  "lastDailyUpdate": "2026-10-26 00:13:08"
}
IPGeolocation.io status endpoint response with the group, the database key, and the weekly and daily timestamps labeled

Both times are in UTC. On a daily plan, the script compares lastDailyUpdate; on a weekly plan, lastWeeklyUpdate. If the command prints nothing, the key is misspelled: keys are case-sensitive, so ipSecurityDatabase works and IPSecurityDatabase doesn't.


The script reads its settings from one file that only root can read, because your download links carry your API key. Create the folder for the databases and the settings file:

bash

sudo mkdir -p /var/lib/ipgeolocation /etc/ipgeolocation
sudo sh -c 'umask 077; : >> /etc/ipgeolocation/update.env'
sudo chown root:root /etc/ipgeolocation/update.env
sudo chmod 600 /etc/ipgeolocation/update.env
sudoedit /etc/ipgeolocation/update.env

Paste your links and settings, with each value in double quotes (the links contain &). If you've run this step before, the file keeps its settings: edit the existing values instead of pasting them again.

bash

IPGEO_ARCHIVE_URL="<archive link from your account>"
IPGEO_SIGNATURE_URL="<signature link from your account, ending in downloadSignature=true>"
IPGEO_DATABASE="ipSecurityDatabase"
IPGEO_CADENCE="daily"
IPGEO_DIR="/var/lib/ipgeolocation"
IPGEO_PUBLIC_KEY="/var/lib/ipgeolocation/public-key.pem"
IPGEO_RELOAD_CMD=""

Set IPGEO_DATABASE to your key from Step 1 and IPGEO_CADENCE to weekly on a weekly plan; Step 7 fills in IPGEO_RELOAD_CMD. IPGEO_DIR is where the script installs the files, so point your application at that folder, or set it to the folder your application already reads. IPGEO_PUBLIC_KEY is where it reads the public key, and the save and check commands below use that path; if you choose another key path, change both commands to match. Save the public key from your account as /var/lib/ipgeolocation/public-key.pem (with sudoedit, since the folder belongs to root) and check that OpenSSL can read it:

bash

openssl pkey -pubin -in /var/lib/ipgeolocation/public-key.pem -noout -text | head -1

text

Public-Key: (3072 bit)

If OpenSSL answers Could not read key, the key's lines are probably indented, which can happen when it's pasted from an email or a web page. Each line, including -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY-----, has to start at the first column.


Step 3: Download the signature and the archive

Run one update by hand first, so you see what each check prints before the script runs them for you. Open a root shell with sudo -s (only root can read the settings file), load your settings, and download both files into a test folder on the same disk:

bash

set -a; . /etc/ipgeolocation/update.env; set +a
mkdir -p "$IPGEO_DIR/manual-test" && cd "$IPGEO_DIR/manual-test"
curl -fsS --max-filesize 65536 -o release.sig "$IPGEO_SIGNATURE_URL"
curl -fsS -o release.zip "$IPGEO_ARCHIVE_URL"
ls -l release.sig release.zip

release.sig should be 384 bytes, the size of a signature from our 3072-bit key, and release.zip is the full archive. If the first curl stops with (63) Maximum file size exceeded, the signature link returned the archive instead of the signature: check that it ends in downloadSignature=true. The size cap is there for that case, so a wrong link fails in a second instead of downloading gigabytes. Our download links have no daily limit, so a failed download can run again at once; an interrupted one starts over, because the links don't resume.


Step 4: Verify the signature

The signature proves that the archive came from IPGeolocation.io and that nothing changed it on the way. Check it with the public key:

bash

openssl dgst -sha256 -verify /var/lib/ipgeolocation/public-key.pem \
  -signature release.sig release.zip

text

Verified OK

Anything else, usually Verification failure, means you shouldn't use the file. Download the archive and its signature again and repeat the check, and if it still fails, contact our support team. Our data team has never seen a genuine release fail this check, so a failure points to a damaged or altered download, or to a signature and an archive that don't belong together. The steps are the same ones our IP Geolocation Database documentation gives for a manual check.

checksum.txt alone can't replace this step. It proves that the files are complete, but anyone who altered a file could write a matching checksum, while only our private key can produce a signature that verifies.


Step 5: Unpack and check every file

Unpack the archive and check each file against checksum.txt (the file names depend on your database; these are the IP Security Database's):

bash

unzip -q -DD release.zip -d files && cd files
sha256sum -c checksum.txt
mmdbio verify --db db-ip-security.mmdb

text

db-ip-security.mmdb: OK
README.md: OK
valid

Every line of the checksum output should end in OK; a FAILED line means that file is incomplete or damaged. mmdbio verify then confirms that each MMDB file opens and reads as a database, which a checksum can't tell you, and prints valid. A CSV archive holds .csv.gz files instead, so it skips that check. -DD gives the unpacked files the current time rather than the time stored in the archive. That matters for readers such as Vector, which reloads a file only when it looks newer than the copy it has.

When the checks pass, delete the test folder and leave the root shell: cd / && rm -rf "$IPGEO_DIR/manual-test" && exit.


Step 6: Install the update script

The script runs Steps 3 to 5 on its own, then swaps the new files in. Save it as /usr/local/bin/update-ipgeolocation-db.sh:

bash

#!/usr/bin/env bash
# update-ipgeolocation-db.sh: install a new IPGeolocation.io database release,
# but only after its signature, checksums, and MMDB files pass every check.
set -Eeuo pipefail
# Cron and systemd start jobs with a short PATH; mmdbio and most reload tools live here.
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"

# Settings come from the environment (see update.env). The links carry your API key,
# so they live in a file only root can read, never in this script or its log.
: "${IPGEO_ARCHIVE_URL:?set IPGEO_ARCHIVE_URL to your database archive link}"
: "${IPGEO_SIGNATURE_URL:?set IPGEO_SIGNATURE_URL to your signature link}"
: "${IPGEO_DATABASE:?set IPGEO_DATABASE to your database key in the status endpoint}"
IPGEO_CADENCE="${IPGEO_CADENCE:-daily}"             # daily or weekly, as on your plan
IPGEO_DIR="${IPGEO_DIR:-/var/lib/ipgeolocation}"
IPGEO_PUBLIC_KEY="${IPGEO_PUBLIC_KEY:-$IPGEO_DIR/public-key.pem}"
IPGEO_KEEP_DAYS="${IPGEO_KEEP_DAYS:-7}"             # days to keep replaced releases
IPGEO_RELOAD_CMD="${IPGEO_RELOAD_CMD:-}"            # e.g. "nginx -t && nginx -s reload"
IPGEO_STATUS_URL="${IPGEO_STATUS_URL:-https://database.ipgeolocation.io/v2/status}"
STATE_FILE="$IPGEO_DIR/.installed-release"

log() { printf '%s %s\n' "$(date -u '+%Y-%m-%d %H:%M:%S')" "$*"; }
die() { printf '%s ERROR: %s\n' "$(date -u '+%Y-%m-%d %H:%M:%S')" "$*" >&2; exit 1; }
trap 'die "unexpected failure on line $LINENO"' ERR

case "${IPGEO_CADENCE,,}" in
  daily)  field=lastDailyUpdate ;;
  weekly) field=lastWeeklyUpdate ;;
  *)      die "set IPGEO_CADENCE to daily or weekly" ;;
esac

for tool in curl jq openssl unzip sha256sum flock; do
  command -v "$tool" >/dev/null || die "$tool is not installed"
done
[[ -d "$IPGEO_DIR" ]] || die "$IPGEO_DIR doesn't exist"
openssl pkey -pubin -in "$IPGEO_PUBLIC_KEY" -noout 2>/dev/null \
  || die "can't read the public key at $IPGEO_PUBLIC_KEY (lines must not be indented)"

# One run at a time: a slow download must not overlap the next scheduled run.
exec 9>"$IPGEO_DIR/.update.lock"
flock -n 9 || { log "another update is already running"; exit 0; }
rm -rf "$IPGEO_DIR"/.release.*   # work folders left by a run that was killed

# Read your database's release timestamp (UTC) for your plan's cadence.
status=$(curl -fsS --max-time 30 "$IPGEO_STATUS_URL") \
  || die "can't reach the status endpoint"
latest=$(jq -r --arg db "$IPGEO_DATABASE" --arg field "$field" \
  '[.[] | objects | .[$db]? | objects | .[$field] | strings]
   | if length == 1 then .[0] else empty end' <<<"$status")
[[ -n "$latest" ]] \
  || die "$IPGEO_DATABASE with $field isn't in the status response exactly once (check the key's spelling)"
installed=$(cat "$STATE_FILE" 2>/dev/null || true)
if [[ "$latest" == "$installed" ]]; then
  log "no new release (installed: $installed)"
  exit 0
fi
log "new release: $latest"

# Work beside the live files, so the final rename stays on one filesystem.
work=$(mktemp -d "$IPGEO_DIR/.release.XXXXXX")
trap 'rm -rf "$work"' EXIT

# The signature is a few hundred bytes. The size cap stops at once if the link
# returns the archive instead. A download slower than 1 KB/s for 5 minutes is dropped.
fetch() { curl -fsS --retry 3 --retry-delay 30 --connect-timeout 30 \
               --speed-limit 1024 --speed-time 300 "$@"; }
fetch --max-filesize 65536 -o "$work/release.sig" "$IPGEO_SIGNATURE_URL" \
  || die "signature download failed (the link must end in downloadSignature=true)"
fetch -o "$work/release.zip" "$IPGEO_ARCHIVE_URL" \
  || die "archive download failed"

# 1. Signature: proves the archive came from IPGeolocation.io unaltered.
openssl dgst -sha256 -verify "$IPGEO_PUBLIC_KEY" \
  -signature "$work/release.sig" "$work/release.zip" \
  || die "signature verification failed; nothing was installed"

# 2. Checksums: proves every unpacked file is complete. -DD gives the files the
#    current time, so readers that reload only newer files see them as new.
unzip -q -DD "$work/release.zip" -d "$work/files" \
  || die "can't unpack the archive (damaged, or the disk is full)"
(cd "$work/files" && sha256sum --quiet -c checksum.txt) \
  || die "checksum mismatch; nothing was installed"

# 3. Structure: a file that passes both checks above can still be unreadable.
shopt -s nullglob
for db in "$work"/files/*.mmdb; do
  command -v mmdbio >/dev/null || die "mmdbio is not installed"
  mmdbio verify --db "$db" || die "$(basename "$db") failed mmdbio verify"
done

files=("$work"/files/*.mmdb "$work"/files/*.csv.gz "$work"/files/*.json.gz)
(( ${#files[@]} > 0 )) || die "the archive holds no database files"

# 4. Swap. Hard-link each live file into previous/ first: the old release then
#    survives the rename without being copied and can be restored.
backup="$IPGEO_DIR/previous/$(date -u +%Y%m%dT%H%M%SZ)"
for f in "${files[@]}"; do
  name=$(basename "$f")
  if [[ -e "$IPGEO_DIR/$name" ]]; then
    { mkdir -p "$backup" && ln -f "$IPGEO_DIR/$name" "$backup/$name"; } \
      || die "can't keep a copy of $name; nothing more was installed"
  fi
  chmod 0644 "$f"
  mv -f "$f" "$IPGEO_DIR/$name" || die "can't install $name"   # atomic per file
done
if [[ -d "$backup" ]]; then printf '%s\n' "${installed:-unknown}" > "$backup/release.txt"; fi
printf '%s\n' "$latest" > "$STATE_FILE.tmp" || die "files installed, but the release marker could not be written"
mv -f "$STATE_FILE.tmp" "$STATE_FILE" || die "files installed, but the release marker could not be saved"
log "installed release $latest in $IPGEO_DIR"

# Drop replaced releases older than IPGEO_KEEP_DAYS.
if [[ -d "$IPGEO_DIR/previous" ]]; then
  find "$IPGEO_DIR/previous" -mindepth 1 -maxdepth 1 -type d \
    -mmin +$(( IPGEO_KEEP_DAYS * 1440 )) -exec rm -rf -- {} +
fi

# 5. Reload: a running reader keeps the old file open until it reopens it.
if [[ -n "$IPGEO_RELOAD_CMD" ]]; then
  log "running reload command"
  bash -c "$IPGEO_RELOAD_CMD" || die "files installed, but the reload command failed"
fi

Besides the checks from Steps 3 to 5, the script adds a few safeguards. A lock stops a slow run from overlapping the next one, and a download that stalls for five minutes is dropped. A state file, .installed-release, remembers the timestamp it last installed, so most runs end after one request to the status endpoint. Before each rename, the script hard-links the file in use into previous/, in a folder named after the time of the swap, with a release.txt that names the release it holds; the old release stays on disk without a second copy. Our data team suggests keeping the previous seven days, which is the default in IPGEO_KEEP_DAYS. IP data changes with every release, and an effect on your application, such as a rule that starts blocking more traffic, can take a few days to notice. On a weekly plan, a week still holds the release before the current one. Each release you keep takes up disk space until it's dropped, so lower IPGEO_KEEP_DAYS if space is tight. The reload command runs only after every file is in place.

Make it executable and run it once with your settings:

bash

sudo chmod 755 /usr/local/bin/update-ipgeolocation-db.sh
sudo bash -c 'set -a; . /etc/ipgeolocation/update.env; set +a; /usr/local/bin/update-ipgeolocation-db.sh'

text

2026-10-27 17:44:14 new release: 2026-10-26 00:13:08
Verified OK
valid
2026-10-27 17:44:26 installed release 2026-10-26 00:13:08 in /var/lib/ipgeolocation

Run it again straight away and it stops after the first request, because nothing new has shipped:

text

2026-10-27 17:44:26 no new release (installed: 2026-10-26 00:13:08)

Step 7: Make your application load the new release

An application that opened the old file keeps reading it after the rename, until it reopens the file or reloads.

Timeline of an IPGeolocation.io database swap: release checked, renamed into place, app reloaded, old release kept

Set IPGEO_RELOAD_CMD in update.env to whatever your application needs. For the tools we document:

  • nginx: nginx -t && nginx -s reload, so a broken file never takes the server down (nginx guide).
  • Apache: apachectl configtest && apachectl graceful, which lets current requests finish on the old files (Apache guide).
  • Fluent Bit: set hot_reload: on in its service section, then send it SIGHUP, for example kill -HUP $(pidof fluent-bit) (Fluent Bit guide).
  • Vector: kill -HUP $(pidof vector) reloads its enrichment tables (Vector guide).
  • Traefik: no command. Set the plugin's refreshInterval, and it swaps in the new file when it sees the change (Traefik guide).
  • Kong: kong reload, or set database_refresh_interval and let each worker pick up the file (Kong guide).
  • Grafana Alloy: restart it, for example systemctl restart alloy, or use the pointer-file method that switches files without a restart (Grafana Alloy guide).
  • DuckDB: nothing; the next query reads the new file (DuckDB guide).
  • Your own code: close and reopen the MMDB reader, for example on a signal or when the file's modification time changes.
  • CSV files: run your loader, ideally inside one database transaction so queries never see half-loaded tables.

In Docker, mount the folder that holds the databases rather than the single files. A container that has one file mounted keeps the old copy after the rename.

Step 6's first run installed the files before IPGEO_RELOAD_CMD was set, so run your reload command once by hand now.


Step 8: Run it every day at 05:00 UTC

Our data team recommends checking for a new release once every 24 hours and verifying the signature on every release. Our daily build starts at 00:00 UTC, and the databases' timestamps on the status endpoint change at different times over the next few hours, so the timer below runs the check at 05:00 UTC, whatever time zone the server uses. Create the service:

ini

# /etc/systemd/system/ipgeolocation-update.service
[Unit]
Description=Install new IPGeolocation.io database releases
Wants=network-online.target
After=network-online.target

[Service]
Type=oneshot
EnvironmentFile=/etc/ipgeolocation/update.env
ExecStart=/usr/local/bin/update-ipgeolocation-db.sh

And the timer:

ini

# /etc/systemd/system/ipgeolocation-update.timer
[Unit]
Description=Check for a new IPGeolocation.io database release daily at 05:00 UTC

[Timer]
OnCalendar=*-*-* 05:00:00 UTC
Persistent=true

[Install]
WantedBy=timers.target

Persistent=true makes up a run the server missed while it was off. On a fleet of servers, adding RandomizedDelaySec=15min to the [Timer] section spreads the downloads over a quarter of an hour. The service runs as root because most reload commands need it; if yours doesn't, add User= with an account that owns /var/lib/ipgeolocation (systemd still reads update.env as root). Turn the timer on and confirm the next run time:

bash

sudo systemctl daemon-reload
sudo systemctl enable --now ipgeolocation-update.timer
systemctl list-timers ipgeolocation-update.timer

The script's output goes to the journal (journalctl -u ipgeolocation-update), and a failed run leaves the service in a failed state, which most monitoring tools can alert on.

On a server without systemd, a cron entry in /etc/cron.d/ipgeolocation-update does the same job:

bash

# Runs at 05:00 server time: on a server that isn't on UTC, change the hour.
0 5 * * * root /bin/bash -c 'set -a; . /etc/ipgeolocation/update.env; set +a; exec /usr/local/bin/update-ipgeolocation-db.sh' >> /var/log/ipgeolocation-update.log 2>&1

Cron reads times in the server's own time zone, so check it with date +%Z first. This cron entry writes all output to /var/log/ipgeolocation-update.log. Configure your monitoring to alert on failed updates in that log.


Roll back to an earlier release

If a new release causes a problem in your application, stop the timer (or comment out the cron line), find the release you want in previous/, and put its file back with a rename, the same way the script installed it:

bash

sudo systemctl stop ipgeolocation-update.timer
cd /var/lib/ipgeolocation
for d in previous/*/; do echo "$d $(cat "$d/release.txt")"; done
sudo ln -f previous/20261027T050012Z/db-ip-security.mmdb .rollback.tmp
sudo mv -f .rollback.tmp db-ip-security.mmdb

The loop prints each backup folder with the release it holds, such as previous/20261027T050012Z/ 2026-10-26 00:13:08. Then run your reload command. When you've found the cause, run sudo rm .installed-release and start the timer again with sudo systemctl start ipgeolocation-update.timer; the next run downloads and installs the newest release.


When an update fails

Errors reported by the script contain ERROR: after the UTC timestamp. To find those messages in the cron log, run grep ' ERROR: ' /var/log/ipgeolocation-update.log. All but the last error in this list leave the live files as they were:

  • can't reach the status endpoint: this server can't reach database.ipgeolocation.io over HTTPS. Check its firewall or proxy settings.
  • ... isn't in the status response exactly once: the key in IPGEO_DATABASE is misspelled. Run the commands in Step 1 again.
  • signature download failed: the signature link is wrong (it must end in downloadSignature=true), or the download itself failed.
  • archive download failed: a network error, a download that stalled, or a full disk. curl retries a temporary network error three times before it gives up, and the next run starts the download again.
  • signature verification failed: don't use the files. Run the script again to download both files fresh, and contact our support team if it fails twice.
  • can't unpack the archive or checksum mismatch: the archive or a file in it is incomplete, or the disk filled up. Run the script again; if it repeats, contact support.
  • failed mmdbio verify: the MMDB file doesn't open as a database. Treat it like a checksum failure.
  • files installed, but the reload command failed: the new files are in place, but your application hasn't loaded them. Fix the command in IPGEO_RELOAD_CMD and run it by hand.

Keep IPGeolocation.io data current wherever you use it

IPGeolocation.io databases put our IP data on your own servers: geolocation with time zone, security risk signals (VPN, proxy, Tor, and bot detection, with a threat score), ASN, company, and abuse contact data, plus IP and ASN WHOIS, hosting, and residential proxy databases. Bundles combine several of them in one download, such as location, company, ASN, abuse contact, and security data together.

Every release ships daily or weekly, depending on your plan, as CSV and MMDB, with WHOIS as NDJSON and JSON or Parquet on request. Each one is signed, so you can prove every file came from us before it reaches production, and each is listed on the status endpoint and announced by email, so the same script keeps any of them current, whether it arrives as MMDB, CSV, or NDJSON. If you'd rather not host files at all, an API or a database compares the two, and the IPGeolocation.io API adds user-agent parsing to the same IP data. To add a database to your plan, get a quote on the database pricing page.

Frequently asked questions

Once every 24 hours. Our data team recommends checking the status endpoint daily, downloading only when your database's timestamp changes, and verifying the signature on every release. The daily build starts at 00:00 UTC, so schedule the check a few hours later; this tutorial uses 05:00 UTC. How often IPGeolocation.io data is updated explains the daily and weekly plans.

Usually not, but it has to reopen the file. A process that keeps an MMDB file open goes on reading the old release after the rename: nginx needs nginx -s reload, Fluent Bit and Vector a SIGHUP, and DuckDB reads the new file on its next query.

The signature proves who produced the archive, and the checksums prove the files inside it are complete. IPGeolocation.io signs every release with its private key, while checksum.txt holds a SHA-256 hash of each file, which anyone who altered a file could recompute.

Don't install the archive. Download the archive and its signature again and repeat the check, and if it still fails, contact IPGeolocation.io support. Our data team has never seen a genuine release fail the check, so a failure points to a damaged or altered download, or a signature and archive that don't match.

Yes, up to installing the files. The same script downloads, verifies, and installs the .csv.gz files from a CSV archive; loading them into your database is a separate step, which you can run from IPGEO_RELOAD_CMD. What each archive holds lists the CSV files.

Related Tutorials

How to Run a Bulk IP Lookup on a CSV Without Losing Rows
How to Run a Bulk IP Lookup on a CSV Without Losing Rows

A Python script that sends the IP addresses from a 10,000-row CSV to the IPGeolocation.io bulk API in one request, gives every row a status, writes the rows to retry to their own file, and resumes where it stopped.

Posted on December 1, 2026
Read More: How to Run a Bulk IP Lookup on a CSV Without Losing Rows
How to Read an MMDB File in Python, Go, Node.js, and Java
How to Read an MMDB File in Python, Go, Node.js, and Java

Open an MMDB file once, look up IPv4 and IPv6 addresses, and handle missing and malformed input in Python, Go, Node.js, and Java. Every program is tested against IPGeolocation.io's free sample files, with the output it prints.

Posted on November 30, 2026
Read More: How to Read an MMDB File in Python, Go, Node.js, and Java
Get Only the IP Data You Need With fields and excludes
Get Only the IP Data You Need With fields and excludes

fields keeps only the response paths you list, and excludes removes the ones you name. Recipes for each kind of IP data, tested on the Developer plan and paid keys, with curl, Python, and Node.js.

Posted on November 25, 2026
Read More: Get Only the IP Data You Need With fields and excludes
Log the Credits Each Request Uses with X-Credits-Charged
Log the Credits Each Request Uses with X-Credits-Charged

Every successful IPGeolocation.io response tells you what it cost in the X-Credits-Charged header. Log it with the feature that made the call, total it by day, and get an alert when a call's cost changes or a feature passes its budget, in Python or Node.js.

Posted on November 24, 2026
By Abdul Mateen
Read More: Log the Credits Each Request Uses with X-Credits-Charged
How to Get a DMA Code from an IP Address
How to Get a DMA Code from an IP Address

A DMA code is the three-digit code for a US TV market. Get it from an IP address with one IPGeolocation.io lookup, read it next to the ZIP code, and count visits by market.

Posted on November 23, 2026
Read More: How to Get a DMA Code from an IP Address
Auto-Detect Country Code and Time Zone on Signup Forms
Auto-Detect Country Code and Time Zone on Signup Forms

Pre-fill a signup form's country, phone dial code, and time zone from one IP lookup on your server, then let the browser and the visitor correct them. Tested Node.js and intl-tel-input code.

Posted on November 3, 2026
Read More: Auto-Detect Country Code and Time Zone on Signup Forms

Subscribe to Our Newsletter

Get the latest in geolocation tech, straight to your inbox.