Every IP range, placed on the map.
Continent, country, region and city for every IPv4 and IPv6 range, with coordinates and an IANA timezone where they're known. City resolves for a minority of addresses; the rest stops at country.
Schema at a glance.
See documentation →The database's schema and metadata are documented carefully. It is published as CSVGZ and MMDB.
| start_ip | end_ip | continent | country | country_name | region_code | region | city | latitude | longitude | timezone | geoname_id |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003:40:4094:: | 2003:40:4094:ffff:ffff:ffff:ffff:ffff | EU | DE | Germany | DE-NW | North Rhine-Westphalia | Bonn | 50.73438 | 7.09549 | Europe/Berlin | 2946447 |
| 193.240.187.224 | 193.240.187.239 | EU | DE | Germany | DE-BE | State of Berlin | Berlin | 52.52437 | 13.41053 | Europe/Berlin | 2950159 |
| 50.93.255.0 | 50.93.255.255 | NA | US | United States | US-MN | Minnesota | Minnetonka | 44.9133 | -93.50329 | America/Chicago | 5037784 |
| 2a02:26f7:bbc4:4224:: | 2a02:26f7:bbc4:4224:ffff:ffff:ffff:ffff | NA | CA | Canada | CA-SK | Saskatchewan | Onion Lake | 53.71688 | -110.00158 | America/Edmonton | 6093911 |
| 37.119.136.0 | 37.119.138.255 | EU | IT | Italy | Europe/Rome |
Downloading it from code.
Database API reference →One call gets you the current IP Geolocation build. Every official client wraps it three ways: straight to disk, a time-limited link you hand to your own runner, or bytes in memory. A file written to disk lands only once the whole transfer has arrived, and checksums() returns the published digests to verify it against.
download()downloadUrl()downloadBytes()metadata()checksums()import osfrom internetdata import InternetDataclient = InternetData(os.environ["INTERNETDATA_API_KEY"])# what is in today's build, without moving the filemeta = client.database.metadata("ip_geolocation_v1")client.database.download("ip_geolocation_v1", "mmdb", "./ip_geolocation_v1.mmdb")sums = client.database.checksums("ip_geolocation_v1", "mmdb")print(meta.updated, meta.entries, sums["sha256"])
Getting your hands on it.
The file is the product. Teams join IP Geolocation against traffic they already log, inside their own infrastructure, and never send an address anywhere to get an answer.
Localization and routing
Serve the right language, currency or regional endpoint based on where a request comes from, without a per-request lookup.
Fraud and compliance context
Flag a checkout or signup whose claimed address and billing country do not line up.
Analytics
Break down traffic and usage by country, region or city without sending addresses anywhere to resolve them.
An official client for every major language.
All SDKs on GitHub →Twelve official clients for the languages you ship in, each wrapping the database endpoints — list what you are licensed for, poll a build, follow the download redirect, verify what landed. Install commands are in the docs.
No loose ends.
How often does this database rebuild?
Daily. The metadata call answers when the current build landed and how many rows it holds, before you fetch it.
What is in a row?
One range: a start and an end address, both inclusive, and what this database says about it. IPv4 and IPv6 are in the same file.
Why is a field sometimes empty?
Every range carries a country. Region, city, coordinates and timezone are filled only where the place is known, so most of the address space stops at country.
Which formats does a build ship in?
Gzipped CSV and MMDB, both cut from the same build. The schema section above names them.
Test the real build first.
An evaluation license puts a full current build in your hands — every row, every column, no sampling — so you can measure it against your own traffic before anyone talks about terms.