Skip to content
InternetData

IP Geolocation

Every IP range mapped to continent, country, region and city, with the city's coordinates, timezone, postal code and GeoNames ID, an accuracy radius, the date the location last changed, and a US range's DMA code.

Explore API
IDip_geolocation_v1
Formatscsvgz, mmdb
Update FrequencyDaily
Last UpdatedNovember 8th 2026 (today)
Entries12,313,727
File Size (csvgz)147 MB
File Size (mmdb)81.9 MB
On this page
  1. Overview
  2. Formats

Overview

Every IPv4 and IPv6 range mapped to a continent, a country, a region and a city, with the latitude and longitude of the city, its IANA timezone and a postal code: the range's own where it's known, else the city's main one. Every range carries a country, and all but a handful a city: a range placed only to its region or country names that area's most likely city. The few without one are in Bouvet Island (BV) and Heard Island (HM).

Each row also carries:

  • geoname_id: the city's ID in the GeoNames gazetteer.
  • accuracy_radius: the radius in kilometers around the latitude and longitude that holds the true location with 67% confidence. An anycast range, which answers from many places, has 20000.
  • last_changed: the date the range's location (its country, region, city or coordinates) last changed. The earliest date in the file means on or before that day.
  • dma_code: a US city's TV market (DMA, designated market area) as its 3-digit code: 501 is New York, 803 Los Angeles. Empty outside the US.

The continent, the country, the timezone, the currency and the flag of every range, and nothing finer, are free in IP Country.

Formats

bash
curl -L -o ip_geolocation_v1.csv.gz -X GET "https://internetdata.io/api/v2/database/download?id=ip_geolocation_v1&format=csvgz&apikey=$APIKEY"
Schema
NameTypeDescription
start_ipipaddressStart IP of the IP range.
end_ipipaddressEnd IP of the IP range.
continentstringContinent of the IP range.
countrystringISO 3166-1 alpha-2 country code.
country_namestringCountry name of the IP range.
region_codestringISO 3166-2 region code, where it has one.
regionstringRegion (state/province) name, if any.
citystringCity name, on every row but the few in BV and HM, which have no city: a range placed only to its region or country names that area's most likely city.
latitudefloatLatitude of the city.
longitudefloatLongitude of the city.
timezonestringIANA timezone of the IP range.
postal_codestringThe range's own postal code where known, else its city's main postal code. Empty where the country has no postal codes, or none are known for it.
geoname_idstringGeoNames ID of the city.
accuracy_radiusintegerRadius in km around the latitude and longitude that holds the true location with 67% confidence; 20000 for an anycast range, which answers from many places.
last_changeddateDate the range's location (country, region, city or coordinates) last changed. The earliest date in the file means on or before that day.
dma_codestringThe city's US TV market (DMA, designated market area) as its 3-digit code: 501 is New York, 803 Los Angeles. Empty outside the US.
Samples
start_ipend_ipcontinentcountrycountry_nameregion_coderegioncitylatitudelongitudetimezonepostal_codegeoname_idaccuracy_radiuslast_changeddma_code
207.201.242.208207.201.242.239NAUSUnited StatesUS-LALouisianaMonroe32.50931-92.1193America/Chicago71201433366920002026-10-02628
96.242.255.23496.242.255.234NAUSUnited StatesUS-NJNew JerseyNewark40.73566-74.17237America/New_York071025101798502026-10-06501
110.90.92.85110.90.92.85ASCNChinaCN-FJFujianSanming26.24861117.61861Asia/Shanghai3650001796663502026-10-19N/A
77.100.244.1577.100.244.18EUGBUnited KingdomGB-ENGEnglandWalsall52.58528-1.98396Europe/LondonWS12634853502026-10-05N/A
76.71.97.15876.71.97.207NACACanadaCA-ONOntarioSt. Catharines43.17126-79.24267America/TorontoL2N6155721102026-10-13N/A