IP Location Database (Advance)
Overview
Our Advanced Tier IP to Geolocation Database provides you with precise city level geolocation data for both IPv4 and IPv6 addresses. Compared to our Standard Tier IP to Geolocation Database, it adds extra fields such as accuracy radius, confidence score, and DMA codes (DMA codes are available in the USA only) to give you the pinpoint accuracy you need to make tighter decisions.
Every IP range is linked to countries, states, districts, and cities, with multilingual place names resolved through reference tables for consistency. This structure makes it easy to join datasets and work with standardized metadata across different regions and languages. We update our databases every single day, and it's available in CSV, MMDB, or custom formats to fit your needs.
Below, you'll find full documentation of the archive contents, schema definitions, file specifications, and integration notes to help you get up and running quickly.
Available Database Formats
CSV Database Documentation
1. Overview
The CSV version of our Advance IP to Location Database is delivered as a ZIP archive that includes Gzip-compressed files with IP ranges, location details, and multilingual place names. It's well-suited for bulk imports and easy integration into relational databases.
2. Archive Content
After downloading and extracting the Advance IP to Location CSV database archive, you'll find the following files (with their types noted):
Standardized country and continent metadata with codes, currency, calling codes, TLDs, and languages.
- File Size: 9.67 KB
- Entries: 254
- Fields: 15
Multilingual place names for cities, districts, states, countries, and continents.
- File Size: 13.09 MB
- Entries: 345.8K
- Fields: 13
IP ranges mapped to locations with place IDs (for multilingual responses), ZIP codes, coordinates, time zone, and connection type.
- File Size: 437.16 MB
- Entries: 29.6M
- Fields: 16
Documentation for dataset contents, schema, usage, and support.
- File Size: 9.79 KB
SHA-256 checksums for verifying file integrity.
- File Size: 330 Bytes
Schema
This section describes the schema of each file included in the Advance IP to Location Database archive. For every file, you'll find its purpose, field definitions, and examples to help with integration.
1. db-ip-location.csv.gz
This file provides geolocation data for IPv4 and IPv6 ranges, mapped down to the city level. Each record links an IP block to country, state, district, and city (through place IDs for multilingual response), geographic coordinates, time zone, GeoNames ID, and connection type. It also includes accuracy radius, confidence level, and DMA codes (U.S. only) for finer and more granular details.
| Field | Type | Description | Can be empty? | Example |
|---|---|---|---|---|
| start_ip | string | The starting IP address of the range in IPv4 or IPv6 format. | No | 192.168.0.1 |
| end_ip | string | The ending IP address of the range in IPv4 or IPv6 format. | No | 192.168.0.255 |
| country_id | number | The unique identifier for the country associated with the IP range. | No | 192 |
| state_place_id | number | The unique identifier for the state or province associated with the IP range. | Yes | 5332921 |
| state_code | string | The two-letter code representing the state or province with country-code, following ISO 3166-2 standards. | Yes | CA |
| district_place_id | number | The unique identifier for the district associated with the IP range. | Yes | 5332923 |
| city_place_id | number | The unique identifier for the city associated with the IP range. | Yes | 5375480 |
| accuracy_radius | number | The accuracy radius in kilometers for the location associated with the IP range. | No | 20 |
| confidence | number | The confidence level (0-100) of the location data associated with the IP range. | No | 95 |
| dma_code | number | The Designated Market Area (DMA) code for the location associated with the IP range. | Yes | 807 |
| zip_code | string | The postal code for the location associated with the IP range. | Yes | 94043 |
| latitude | number | The latitude coordinate of the location associated with the IP range. | No | 37.3861 |
| longitude | number | The longitude coordinate of the location associated with the IP range. | No | -122.0838 |
| geo_name_id | number | The GeoNames ID for the location associated with the IP range. | Yes | 5375480 |
| time_zone_name | string | The time zone name for the location associated with the IP range. | No | America/Los_Angeles |
| connection_type | string | The type of internet connection associated with the IP range (e.g., dialup, cable, DSL, fiber, etc.). | Yes | cable |
1. Example Records
start_ip,end_ip,country_id,state_place_id,state_code,district_place_id,city_place_id,accuracy_radius,confidence,dma_code,zip_code,latitude,longitude,geo_name_id,time_zone_name,connection_type
1.20.186.1,1.20.186.1,161,1418,TH-20,214293,240077,5.326,high,,20150,12.92359,100.88244,7114958,Asia/Bangkok,Mobile
196.208.52.4,196.208.52.4,180,772,ZA-WC,240078,29038,5.021,high,,7701,-33.96579,18.48102,3365010,Africa/Johannesburg,Broadband
166.70.44.35,166.70.44.35,172,586,US-UT,4475,28344,3.631,high,770,84139,40.76031,-111.88822,12036213,America/Denver,DSL
210.4.123.4,210.4.123.4,133,600,PH-03,146213,52239,3.406,high,,2105,14.4323,120.48408,7568537,Asia/Manila,Broadband
132.239.138.132,132.239.138.132,172,362,US-CA,33848,4366,3.275,high,825,92114,32.719093,-117.057348,5346607,America/Los_Angeles,Leased Line
62.167.87.132,62.167.87.132,187,634,CH-VD,4951,43610,6.05,high,,1260,46.38327,6.23479,8741327,Europe/Zurich,DSL
113.195.224.4,113.195.224.4,35,1288,CN-JX,240079,11782,10.98,medium,,338000,27.801,114.944,7658373,Asia/Shanghai,DSL
144.217.150.70,144.217.150.83,29,598,CA-QC,209767,52037,14.245,medium,,J6N,45.31396,-73.87629,5896496,America/Toronto,Leased Line
67.225.200.147,67.225.200.153,172,373,US-TX,4556,4330,11.398,medium,623,75201,32.77822,-96.79512,4684902,America/Chicago,Leased Line
41.116.141.94,41.116.141.94,180,772,ZA-WC,4814,29038,2.895,high,,8000,-33.92209,18.42314,6501054,Africa/Johannesburg,Mobile2. db-place.csv.gz
This file contains multilingual names for countries, continents, states, districts, and cities worldwide. It serves as the reference dictionary for the IP Location Database, allowing you to resolve place IDs into multilingual responses across different regions and languages.
| Field | Type | Description | Can be empty? | Example |
|---|---|---|---|---|
| id | number | The unique identifier for the place. | No | 5375480 |
| place_english | string | The name of the place in English. | No | Mountain View |
| place_german | string | The name of the place in German. | Yes | Mountain View |
| place_russian | string | The name of the place in Russian. | Yes | Маунтин-Вью |
| place_korean | string | The name of the place in Korean. | Yes | 마운틴 뷰 |
| place_portuguese | string | The name of the place in Portuguese. | Yes | Mountain View |
| place_japanese | string | The name of the place in Japanese. | Yes | マウンテンビュー |
| place_persian | string | The name of the place in Farsi. | Yes | ماونتین ویو |
| place_french | string | The name of the place in French. | Yes | Mountain View |
| place_chinese | string | The name of the place in Chinese. | Yes | 山景城 |
| place_spanish | string | The name of the place in Spanish. | Yes | Mountain View |
| place_czech | string | The name of the place in Czech. | Yes | Mountain View |
| place_italian | string | The name of the place in Italian. | Yes | Mountain View |
2. Example Records
id,place_english,place_german,place_russian,place_korean,place_portuguese,place_japanese,place_persian,place_french,place_chinese,place_spanish,place_czech,place_italian
586,Utah,Utah,Юта,Utá,Utá,ユタ州,یوتا,Utah,犹他州,Utah,Utahu,Utah
5,Asia,Asien,Азия,Ásia,Ásia,アジア, آسیا,Asie,亚洲,Asia,Asie,Asia
6,North America,Nordamerika,Северная Америка,América do Norte,América Do Norte,北アメリカ, امریکای شمالی,Amérique du Nord,北美洲,Norteamérica,Severní Amerika,America del Nord
7,Europe,Europa,Европа,Europa,Europa,ヨーロッパ, اروپا,Europe,欧洲,Europa,Evropa,Europa
11782,Xinyu,Xinyu,Синью,,,新嶼だ,,Xinyu,新宇,Xinyu,Xinyu,Xinyu
9,Africa,Afrika,Африка,África,África,アフリカ,افریقا,Afrique,非洲,África,Afrika,Africa
240010,Kingdom of Thailand,,,,,,,,,,,
12,China,China,Китай,China,China,中国,چین,Chine,中国,China,Čína,Cina
4366,San Diego,San Diego,Сан-Диего,San Diego,Condado de San Diego,サンディエゴ,شهرستان سن دیگو، کالیفرنیا,San Diego,圣迭戈县,San Diego,San Diego,San Diego
373,Texas,Texas,Техас,텍사스 주,,テキサス州,تگزاس,Texas,德克萨斯州,Texas,Texas,Texas
14,Thailand,Thailand,Тайланд,Tailândia,Tailândia,タイ王国,تایلند,Thaïlande,泰国,Tailandia,Thajsko,Thailandia
273,Bangkok,Bangkok,Бангкок,,,バンコク,,Bangkok,曼谷,Bangkok,- Bangkoku,Bangkok
4951,Nyon District,Nyon (Distrikt),Район Ньон,,,ニヨン,,Nyon,尼翁区,Okres Nyon,Okres Nyon,Distretto di Nyon
275,Beijing,Peking,Пекин,,,北京,,Municipalité de Pékin,北京,Peking,Peking,Pechino
29038,Cape Town,Kapstadt,Кейптаун,Cidade do Cabo,Cidade do Cabo,ケープタウン,کیپتاون,Le Cap,開普敦,Ciudad del Cabo,Kapské Město,Città del Capo
240018,United States of America,,,,,,,,,,,
240019,"Washington, D.C.",,,,,,,,,,,
634,Vaud,Waadt,Во,보 주,,ヴォー州,,Vaud,沃德,Vaud,Vaud,Vaud
240026,Republic of South Africa,,,,,,,,,,,
28,United States,USA,США,Estados Unidos,Estados Unidos,アメリカ合衆国,ایالات متحدهٔ امریکا,États-Unis,美国,Estados Unidos,Spojené státy americké,Stati Uniti d'America
29,Philippines,Philippinen,Филиппины,Filipinas,Filipinas,フィリピン共和国,فیلیپین,Philippines,菲律宾,Filipinas,Filipíny,Filippine
239901,People’s Republic of China,,,,,,,,,,,
240031,Swiss Confederation,,,,,,,,,,,
209767,Beauharnois-Salaberry,Beauharnois-Salaberry,Бохарнуа-Салаберри,,,ボアルノワ = サラベリ,,Beauharnois-Salaberry,博哈诺瓦-萨拉贝里,Beauharnois-Salaberry,Beauharnois-Salaberry,Beauharnois-Salaberry
600,Central Luzon,Central Luzon,Центральный Лусон,중부 루손 지방,,中部ルソン地方,,Luçon centrale,中央吕宋,Luzón Central,Luzon,Luzon centrale
42,Switzerland,Schweiz,Швейцария,Suíça,Suíça,スイス連邦,سوئیس,Suisse,瑞士,Suiza,Švýcarsko,Svizzera
4475,Salt Lake County,Salt Lake,Солт-Лейк,,Condado de Salt Lake,ソルトレイク郡,شهرستان سالتلیک، یوتا,Comté de Salt Lake,鹽湖縣,Comté de Salt Lake,Slané jezero,Contea di Salt Lake
1418,Chon Buri,Chon Buri,Чонбури,,,チョンブリー,,Chon Buri,川武里,Chon Buri,Chon Buri,Chon Buri
53,South Africa,Südafrika,ЮАР,África do Sul,África do Sul,南アフリカ,افریقای جنوبی,Afrique du Sud,南非,Sudáfrica,Jihoafrická republika,Africa del Sud
362,California,Kalifornien,Калифорния,Califórnia,Califórnia,カリフォルニアだ,کالیفرنیا,Californie,加州,California,Kalifornie,California
240077,Phatthaya,,,,,,,,,,,
13883,Pretoria,Pretoria,Претория,Pretória,,プレトリア,,Pretoria,比勒陀利亚,Pretoria,Pretorii,Pretoria
52037,Beauharnois,Beauharnois,Бохарнуа,,,ボーアルノワ,بوآرنوآ، کبک,Beauharnois,博哈诺瓦人,Beauharnois,Beauharnois,Beauharnois
4556,Dallas County,Dallas,Даллас,,Condado de Dallas,ダラス郡,شهرستان دالاس، تگزاس,Comté de Dallas,達拉斯縣,Даллас,Dallasu,Contea di Dallas
240079,Yushui,,,,,,,,,,,
65,Canada,Kanada,Канада,Canadá,Canadá,カナダ,کانادا,Canada,加拿大,Canadá,Kanada,Canada
240078,City of Cape Town Metropolitan Municipality,,,,,,,,,,,
598,Quebec,Quebec,Квебек,Quebeque,Quebeque,ケベック州,,Québec,魁北克省,Quebec,Quebec,Quebec
214293,Bang Lamung District,Amphoe Bang Lamung,Банг Ламунг (округ),,,バーンラムン郡,,District de Bang Lamung,邦拉蒙区, Okres Bang Lamung,Okres Bang Lamung,Distretto di Bang Lamung
33848,San Diego County,San Diego,Сан-Диего,샌디에이고 군,Condado de San Diego,サンディエゴ郡,شهرستان سن دیگو، کالیفرنیا,Comté de San Diego,圣迭戈县,Сан-Диего,San Diego County,Contea di San Diego
52239,Mariveles,Mariveles,Маривелес,,,マリベレス,,Mariveles,玛丽维尔,Mariveles,Mariveles,Mariveles
146213,Province of Bataan,Provinz Bataan,Провинция Батаан,,,バターン州,,Province de Bataan,巴丹省, Provincie Bataan,Provincie Bataan,Provincia di Bataan
772,Western Cape,Westkap,Западный Кейп,Cabo Ocidental,Cabo Ocidental,西ケープ州,,Cap Ouest,西开普省,Kapského mysu,Kapského mysu,Capo Occidentale
1288,Jiangxi,Jiangxi,Цзянси,,,江西省,,Province de Jiangxi,江西,Jiangxi,Jiangxi,Jiangxi
43610,Nyon,Nyon,Ньон,,,ニヨン,,Nyon,尼翁,Nyon,Nyon,Nyon
4814,City of Cape Town,City of Cape Town,Кейптаун,케이프타운 시,Município metropolitano da Cidade do Cabo,ケープタウン,,Ville du Cap,开普敦,Kapské Město,Kapské Město,Città di Città del Capo
4330,Dallas,Dallas,Даллас,,Condado de Dallas,ダラス郡,شهرستان دالاس، تگزاس,Comté de Dallas,達拉斯縣,Z Dallasu,Z Dallasu,Dallas
4588,Ottawa,Ottawa,Оттава,Otava,Condado de Ottawa,オタワ,شهرستان اتاوا، اکلاهما,Ottawa,渥太華縣,Ottawa,Ottawa,Ottawa
3054,Manila,Manila,Манила,,,マニラ,,Manille,马尼拉,Manila,Manila,Manila
239984,Republic of the Philippines,,,,,,,,,,,
632,Bern,Bern,Берн,베른 주,,ベルン,,Berne,伯尔尼,Bern,Bern,Berna
28344,Salt Lake City,Salt Lake City,Солт-Лейк-Сити,Salt Lake City,Salt Lake City,ソルトレイクシティ,سالتلیکسیتی,Salt Lake City,盐湖城,Salt Lake City,Slané jezero City,Salt Lake City3. db-country.csv.gz
This file contains standardized country metadata for the IP Location Database. It includes continent codes and names, ISO-2/ISO-3/IOC country codes, country and official names (as place IDs), capital (place ID), currency (code, name, symbol), international calling codes, top-level domains (TLDs), and supported language tags.
| Field | Type | Description | Can be empty? | Example |
|---|---|---|---|---|
| id | number | The unique identifier for the country. | No | 192 |
| continent_code | string | The continent code associated with the country. | No | NA |
| continent_name_place_id | number | The unique identifier for the continent place. | No | 6255148 |
| country_code2 | string | The ISO 3166-1 alpha-2 code of the country. | No | US |
| country_code3 | string | The ISO 3166-1 alpha-3 code of the country. | No | USA |
| country_code_ioc | string | The IOC country code. | No | USA |
| country_name_place_id | number | The unique identifier for the country place. | No | 6252001 |
| country_name_official_place_id | number | The unique identifier for the official country place. | No | 6252001 |
| country_capital_place_id | number | The unique identifier for the capital place. | No | 5375480 |
| currency_code | string | The ISO 4217 currency code of the country. | No | USD |
| currency_name | string | The name of the currency used in the country. | No | United States Dollar |
| currency_symbol | string | The symbol of the currency used in the country. | No | $ |
| calling_code | string | The international calling code of the country. | No | +1 |
| tld | string | The top-level domain (TLD) of the country. | No | .us |
| languages | string | The official languages spoken in the country, represented as a comma-separated list of ISO 639-1 codes. | No | en,es |
3. Example Records
id,continent_code,continent_name_place_id,country_code2,country_code3,country_code_ioc,country_name_place_id,country_name_official_place_id,country_capital_place_id,currency_code,currency_name,currency_symbol,calling_code,tld,languages
29,NA,6,CA,CAN,CAN,65,65,4588,CAD,Canadian Dollar,C$,+1,.ca,"en-CA,fr-CA,iu"
161,AS,5,TH,THA,THA,14,240010,273,THB,Baht,฿,+66,.th,"th,en"
133,AS,5,PH,PHL,PHI,29,239984,3054,PHP,Philippine Piso,₱,+63,.ph,"tl,en-PH,fil"
180,AF,9,ZA,ZAF,RSA,53,240026,13883,ZAR,Rand,R,+27,.za,"zu,xh,af,nso,en-ZA,tn,st,ts,ss,ve,nr"
35,AS,5,CN,CHN,CHN,12,239901,275,CNY,Yuan Renminbi,¥,+86,.cn,"zh-CN,yue,wuu,dta,ug,za"
172,NA,6,US,USA,USA,28,240018,240019,USD,US Dollar,$,+1,.us,"en-US,es-US,haw,fr"
187,EU,7,CH,CHE,SUI,42,240031,632,CHF,Swiss Franc,CHF,+41,.ch,"de-CH,fr-CH,it-CH,rm"4. File Relationship Diagram
File Format & Encoding
All Advance IP to Location CSV datasets are provided in UTF-8 encoding, comma-separated, and compressed with Gzip (.csv.gz). Each file includes a header row listing the field names for clarity and consistency.
Field values are unquoted by default, with quotes applied only in the following cases:
- Line breaks within text fields.
- Commas inside a value (e.g., addresses).
- Lists of values (e.g., languages).
- Spaces that may be auto-quoted by export tools.
MMDB Database Documentation
1. Overview
The MMDB version of our Advance IP to Location is delivered as a ZIP archive that includes a single MMDB file with all geolocation data (including multilingual place fields), a README file, and a checksum file. It's optimized for fast lookups in applications and services, making it ideal for real-time queries and direct integration into your systems.
2. Archive Content
After downloading and extracting the Advance IP to Location MMDB database archive, you'll find the following files (with their types noted):
- File Size: 2.49 GB
- Entries: 29.6M
Documentation for dataset contents, schema, usage, and support.
- File Size: 11.10 KB
SHA-256 checksums for verifying file integrity.
- File Size: 162 Bytes
Response Schema
This section describes the structure of the data returned from the Advance IP to Location MMDB file. Each field is detailed with its type, meaning, and example values to help you interpret responses and integrate them into your applications.
1. db-ip-geolocation.mmdb
This file provides geolocation data for IPv4 and IPv6 ranges at the city level. Each response includes multilingual country, state, district, and city details, geographic coordinates, time zone, GeoNames ID, and connection type. It also includes accuracy radius, confidence level, and U.S.-only DMA codes for finer, more granular detail.
2. Field Reference
The following reference lists all fields available in the MMDB response. Each entry includes the field path, its description, data type, and example value to help you understand how to parse and integrate the data.
2. Example Records
{
"connection_type": "Mobile",
"location": {
"accuracy_radius": "5.326",
"city": {
"name": {
"cs": "",
"de": "",
"en": "Phatthaya",
"es": "",
"fa": "",
"fr": "",
"it": "",
"ja": "",
"ko": "",
"pt": "",
"ru": "",
"zh": ""
}
},
"confidence": "high",
"coordinates": {
"latitude": "12.92359",
"longitude": "100.88244"
},
"country": {
"capital": {
"cs": "- Bangkoku",
"de": "Bangkok",
"en": "Bangkok",
"es": "Bangkok",
"fa": "",
"fr": "Bangkok",
"it": "Bangkok",
"ja": "バンコク",
"ko": "",
"pt": "",
"ru": "Бангкок",
"zh": "曼谷"
},
"code2": "TH",
"code3": "THA",
"code_ioc": "THA",
"continent": {
"code": "AS",
"name": {
"cs": "Asie",
"de": "Asien",
"en": "Asia",
"es": "Asia",
"fa": " آسیا",
"fr": "Asie",
"it": "Asia",
"ja": "アジア",
"ko": "Ásia",
"pt": "Ásia",
"ru": "Азия",
"zh": "亚洲"
}
},
"currency": {
"code": "THB",
"name": {
"en": "Baht"
},
"symbol": "฿"
},
"metadata": {
"calling_code": "+66",
"languages": "th,en",
"tld": ".th"
},
"name": {
"cs": "Thajsko",
"de": "Thailand",
"en": "Thailand",
"es": "Tailandia",
"fa": "تایلند",
"fr": "Thaïlande",
"it": "Thailandia",
"ja": "タイ王国",
"ko": "Tailândia",
"pt": "Tailândia",
"ru": "Тайланд",
"zh": "泰国"
},
"name_official": {
"cs": "",
"de": "",
"en": "Kingdom of Thailand",
"es": "",
"fa": "",
"fr": "",
"it": "",
"ja": "",
"ko": "",
"pt": "",
"ru": "",
"zh": ""
}
},
"district": {
"name": {
"cs": "Okres Bang Lamung",
"de": "Amphoe Bang Lamung",
"en": "Bang Lamung District",
"es": " Okres Bang Lamung",
"fa": "",
"fr": "District de Bang Lamung",
"it": "Distretto di Bang Lamung",
"ja": "バーンラムン郡",
"ko": "",
"pt": "",
"ru": "Банг Ламунг (округ)",
"zh": "邦拉蒙区"
}
},
"dma_code": "",
"geoname_id": "7114958",
"state": {
"code": "TH-20",
"name": {
"cs": "Chon Buri",
"de": "Chon Buri",
"en": "Chon Buri",
"es": "Chon Buri",
"fa": "",
"fr": "Chon Buri",
"it": "Chon Buri",
"ja": "チョンブリー",
"ko": "",
"pt": "",
"ru": "Чонбури",
"zh": "川武里"
}
},
"zipcode": "20150"
},
"time_zone": "Asia/Bangkok"
}Database Integrity & Authenticity Verification
There are two methods of verifying the integrity and authenticity of our Database:
1. Using the Signature File (Recommended)
IPGeolocation.io signs every database release to ensure its authenticity and integrity. This allows customers to verify that a downloaded Advance IP to Location database file originates directly from IPGeolocation.io and has not been altered, corrupted, or tampered with during transfer or storage.
Each database update includes a corresponding signature file, generated using our private signing key. Customers can validate the database using the provided public verification key. To verify a database file, you need:
- Database file (the downloaded archive)
- Signature file (the matching signature for that archive)
- Public key (public-key.pem)
These files are available via official IPGeolocation.io download endpoints and are also shared in database update notifications.
2. Using the Checksum File (Legacy)
Each database archive includes a checksum.txt file containing the SHA-256 checksums for the files packaged in the archive. You can use this file to validate that the extracted contents are complete and unchanged.
Data Format & Constraints
- All fields defined in the schema are always present in the Advance IP to Location MMDB response.
- Fields may contain empty strings (""), but never null, so null checks are not required.
- Place names such as countries, states, districts, and cities are available in multiple translations.
- All text values are encoded in UTF-8.
- Field names and response structure remain stable across updates for backward compatibility.
Database Updates & Delivery
When you subscribe to our Advance IP to Location database, we'll send you static download links. These links never change, so you can use them both for your initial download and for all future updates. You will receive:
- Database Archive URL : downloads the latest release of your subscribed database (CSV, MMDB or requested formats).
- Signature File URL : downloads the matching signature file for the latest release (used for authenticity verification).
- Public Key URL : downloads the public verification key (used with the signature file).
- Status Endpoint URL : returns the database's most recent update timestamp.
Our databases are refreshed daily and weekly, ensuring you always have access to the most current data. Each time your subscribed dataset is updated, you'll also receive an email notification so you don't miss a release.
For automated workflows, you can check our status endpoint to see the last update timestamp. When the date changes, simply re-fetch the archive using your static download URL to pull the latest version into your system.