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.10 MB
- Entries: 347.5K
- Fields: 13
IP ranges mapped to locations with place IDs (for multilingual responses), ZIP codes, coordinates, time zone, and connection type.
- File Size: 445.33 MB
- Entries: 30.0M
- Fields: 16
Documentation for dataset contents, schema, usage, and support.
- File Size: 4.55 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
104.8.171.75,104.8.171.75,172,577,US-OH,5730,32860,11.571,medium,510,44141,41.31978,-81.62679,5148115,America/New_York,DSL
178.222.216.210,178.222.216.210,183,749,RS-00,2862,162928,2.954,high,,11102,44.81255,20.46123,9949746,Europe/Belgrade,DSL
208.97.156.161,208.97.156.161,172,390,US-VA,3965,24103,7.431,medium,511,20147,39.05232,-77.4827,4744871,America/New_York,Wireless
184.147.69.70,184.147.69.70,29,597,CA-ON,4372,9325,7.369,high,,M5H,43.65323,-79.38318,8014951,America/Toronto,DSL
156.67.134.14,156.67.134.14,41,716,DE-RP,11790,58859,9.14,high,,66,49.45715,7.52672,2827613,Europe/Berlin,Broadband
146.115.56.242,146.115.56.242,172,384,US-MA,4326,28365,14.04,medium,506,01702,42.28003,-71.41619,9687727,America/New_York,Cable
99.248.66.129,99.248.66.129,29,597,CA-ON,240077,39581,6.125,high,,L0B,43.93454,-78.60003,12022552,America/Toronto,Cable
188.138.96.128,188.138.96.191,56,351,FR-44,3948,24096,14.845,medium,,67100,48.57341,7.75211,8989470,Europe/Paris,Leased Line
145.1.233.204,145.1.233.204,51,841,ES-IB,841,240078,7.662,high,,7014,39.569487,2.629389,9403798,Europe/Madrid,Fiber
24.246.64.107,24.246.64.107,29,597,CA-ON,240079,31754,7.891,high,,L5B,43.5853,-79.64498,5951031,America/Toronto,Cable2. 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
3948,Bas-Rhin,Bas-Rhin,Бас-Рин,Baixo Reno,Baixo Reno,バラン県,,Bas-Rhin,下莱茵省,Bajo Rin,Bas-Rhin,Basso Reno
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
39581,Oshawa,Oshawa,Ошава,오샤와,,オシャワ,اوشاوا,Oshawa,奧沙華,Oshawa,Oshawa,Oshawa
240018,United States of America,,,,,,,,,,,
240019,"Washington, D.C.",,,,,,,,,,,
240079,Regional Municipality of Peel,,,,,,,,,,,
162928,Stari Grad,Stari Grad,Стари Град,,,スタリグラード,,Stari Grad,斯塔里·格勒,Stari Grad,Stari Grad,Stari Grad
716,Rheinland-Pfalz,Rheinland-Pfalz,Рейнланд-Пфальц,Renânia-Palatinado,Renânia-Palatinado,ラインラント=プファルツ州,راینلاند-فالتس,Rhénanie-Palatinat,莱茵兰-普法尔茨,Rheinland-Pfalz,Porýní-Falc,Rheinland-Pfalz
28,United States,USA,США,Estados Unidos,Estados Unidos,アメリカ合衆国,ایالات متحدهٔ امریکا,États-Unis,美国,Estados Unidos,Spojené státy americké,Stati Uniti d'America
240029,Republic of Serbia,,,,,,,,,,,
31,France,Frankreich,Франция,França,França,フランス共和国,فرانسه,France,法国,Francia,Francie,Francia
597,Ontario,Ontario,Онтарио,Ontário,Ontário,オンタリオ州,انتاریو,Ontario,安大略,V Ontariu,V Ontariu,Ontario
240077,Regional Municipality of Durham,,,,,,,,,,,
34,Spain,Spanien,Испания,Espanha,Espanha,スペイン,اسپانیا,Espagne,西班牙,España,Španělsko,Spagna
33,Germany,Deutschland,Германия,Alemanha,Alemanha,ドイツ連邦共和国,آلمان,Allemagne,德国,Alemania,Německo,Germania
239906,Federal Republic of Germany,,,,,,,,,,,
240078,Palma de Mallorca,,,,,,,,,,,
239915,Kingdom of Spain,,,,,,,,,,,
841,Balearic Islands,Balearen Inseln,Балеарские Острова,Ilhas Baleares,Ilhas Baleares,バレアレス,,Province des Îles Baléares,巴利阿里群島,Baleares,Baleárské ostrovy,Isole Baleari
3630,Paris,Paris,Париж,,,パリだ,,Paris,巴黎,París,Paříž,Parigi
2862,Belgrade,Belgrad,Белград,,,ベオグラード,,Belgrade,贝尔格莱德,Belgrado,Bělehrad,Belgrado
239920,Republic of France,,,,,,,,,,,
31754,Mississauga,Mississauga,Миссиссога,미시소거,,ミシサガ,میسیساگا,Mississauga,密西沙加,Mississauga,Mississauga,Mississauga
562,Berlin,Berlin,Берлин,베를린,Berlim,ベルリン,برلین,Berlin,柏林,Berlín,Berlín,Berlino
749,Central Serbia,Zentralserbien,Центральная Сербия,,,中央セルビア共和国,,Serbie centrale,中塞尔维亚,Střední Srbsko,Střední Srbsko,Serbia centrale
390,Virginia,Virginia,Вирджиния,Virgínia,Virgínia,バージニア州,ویرجینیا,Virginie,弗吉尼亚州,Virginie,Virginie,- Virginia
65,Canada,Kanada,Канада,Canadá,Canadá,カナダ,کانادا,Canada,加拿大,Canadá,Kanada,Canada
32860,Brecksville,Brecksville,Брексвилл,,,ブレックスビル,برکسویل، اوهایو,Brecksville,布雷克斯维尔,Brecksville,Brecksville,Brecksville
3965,Loudoun,Loudoun,Лаудон,,Condado de Loudoun,ラウドン郡,,Comté de Loudoun,勞登縣,Loudoun,Loudoun,Loudoun
11790,Kaiserslautern,Kaiserslautern,Кайзерслаутерн,Kaiserslautern,,カイザースラウテルン,,Kaiserslautern,凯撒斯劳滕,Kaiserslautern,Kaiserslautern,Kaiserslautern
28365,Framingham,Framingham,Фрамингем,프레이밍햄,,フレイミングハム,فرامینگهام، ماساچوست,Framingham,弗雷明翰,Framinghamu,Framinghamu,Framingham
4372,Toronto Division,Toronto Division,Отделение Торонто,,,トロント,,Division de Toronto,多伦多足球甲级联赛,Toronto (rozbor),Toronto (rozbor),Division Toronto
94,Serbia,Serbien,Сербия,Sérvia,Sérvia,セルビア,صربستان,Serbie,塞尔维亚,Serbia,Srbsko,Serbia
9325,Toronto,Toronto,Торонто,Toronto,,トロント,,Toronto,多伦多,Toronto,Toronto,Toronto
384,Massachusetts,Massachusetts,Массачусетс,매사추세츠 주,,マサチューセッツ州,ماساچوست,Massachusetts,麻薩諸塞州,Massachusetts,Massachusetts,Massachusetts
351,Grand Est,Grand Est,Гранд Эст,그랑테스트,,グランドエスト,,Grand Est,大东部州,Grand Est,Grand Est,Gran Est
358,Madrid,Madrid,Мадрид,마드리드 지방,,マドリッド,,Madrid,马德里,Madrid,Madrid,Madrid
577,Ohio,Ohio,Огайо,오하이오 주,,オハイオ州,اوهایو,Ohio,俄亥俄州,Ohio,Ohio,Ohio
24096,Strasbourg,Straßburg,Страсбург,Estrasburgo,Estrasburgo,ストラスブール,استراسبورگ,Strasbourg,斯特拉斯堡,Estrasburgo,Štrasburk,Strasburgo
24103,Ashburn,Ashburn,Ашберн,애슈번,,アッシュバーン,اشبرن، ویرجینیا,Ashburn,阿什本,Ashburn,Ashburn,Ashburn
4588,Ottawa,Ottawa,Оттава,Otava,Condado de Ottawa,オタワ,شهرستان اتاوا، اکلاهما,Ottawa,渥太華縣,Ottawa,Ottawa,Ottawa
5730,Cuyahoga County,Cuyahoga,Кайахога,,Condado de Cuyahoga,カヤホガ郡,شهرستان کویاهوگا، اوهایو,Comté de Cuyahoga,凱霍加縣,Кайахога,Cuyahoga,Contea di Cuyahoga
58859,Steinwenden,Steinwenden,Штайнвенден,,,シュタインウェンデン,,Steinwenden,史坦文登,Steinwenden,Steinwenden,Steinwenden
4326,Middlesex,Middlesex,Мидлсекс,,Condado de Middlesex,ミドルセックス郡,شهرستان میدلسکس، ماساچوست,Comté de Middlesex,米德爾塞克斯縣,Middlesex,Middlesex,Middlesex
2862,Belgrade,Belgrad,Белград,,,ベオグラード,,Belgrade,贝尔格莱德,Belgrado,Bělehrad,Belgrado3. 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
56,EU,7,FR,FRA,FRA,31,239920,3630,EUR,Euro,€,+33,.fr,"fr-FR,frp,br,co,ca,eu,oc"
51,EU,7,ES,ESP,ESP,34,239915,358,EUR,Euro,€,+34,.es,"es-ES,ca,gl,eu,oc"
172,NA,6,US,USA,USA,28,240018,240019,USD,US Dollar,$,+1,.us,"en-US,es-US,haw,fr"
183,EU,7,RS,SRB,,94,240029,2862,RSD,Serbian Dinar,din,+381,.rs,"sr,hu,bs,rom"
29,NA,6,CA,CAN,CAN,65,65,4588,CAD,Canadian Dollar,C$,+1,.ca,"en-CA,fr-CA,iu"
41,EU,7,DE,DEU,GER,33,239906,562,EUR,Euro,€,+49,.de,de4. 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.55 GB
- Entries: 30.0M
Documentation for dataset contents, schema, usage, and support.
- File Size: 4.55 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": "DSL",
"location": {
"accuracy_radius": "11.571",
"city": {
"name": {
"cs": "Brecksville",
"de": "Brecksville",
"en": "Brecksville",
"es": "Brecksville",
"fa": "برکسویل، اوهایو",
"fr": "Brecksville",
"it": "Brecksville",
"ja": "ブレックスビル",
"ko": "",
"pt": "",
"ru": "Брексвилл",
"zh": "布雷克斯维尔"
}
},
"confidence": "medium",
"coordinates": {
"latitude": "41.31978",
"longitude": "-81.62679"
},
"country": {
"capital": {
"cs": "",
"de": "",
"en": "Washington, D.C.",
"es": "",
"fa": "",
"fr": "",
"it": "",
"ja": "",
"ko": "",
"pt": "",
"ru": "",
"zh": ""
},
"code2": "US",
"code3": "USA",
"code_ioc": "USA",
"continent": {
"code": "NA",
"name": {
"cs": "Severní Amerika",
"de": "Nordamerika",
"en": "North America",
"es": "Norteamérica",
"fa": " امریکای شمالی",
"fr": "Amérique du Nord",
"it": "America del Nord",
"ja": "北アメリカ",
"ko": "América do Norte",
"pt": "América Do Norte",
"ru": "Северная Америка",
"zh": "北美洲"
}
},
"currency": {
"code": "USD",
"name": {
"en": "US Dollar"
},
"symbol": "$"
},
"metadata": {
"calling_code": "+1",
"languages": "en-US,es-US,haw,fr",
"tld": ".us"
},
"name": {
"cs": "Spojené státy americké",
"de": "USA",
"en": "United States",
"es": "Estados Unidos",
"fa": "ایالات متحدهٔ امریکا",
"fr": "États-Unis",
"it": "Stati Uniti d'America",
"ja": "アメリカ合衆国",
"ko": "Estados Unidos",
"pt": "Estados Unidos",
"ru": "США",
"zh": "美国"
},
"name_official": {
"cs": "",
"de": "",
"en": "United States of America",
"es": "",
"fa": "",
"fr": "",
"it": "",
"ja": "",
"ko": "",
"pt": "",
"ru": "",
"zh": ""
}
},
"district": {
"name": {
"cs": "Cuyahoga",
"de": "Cuyahoga",
"en": "Cuyahoga County",
"es": "Кайахога",
"fa": "شهرستان کویاهوگا، اوهایو",
"fr": "Comté de Cuyahoga",
"it": "Contea di Cuyahoga",
"ja": "カヤホガ郡",
"ko": "",
"pt": "Condado de Cuyahoga",
"ru": "Кайахога",
"zh": "凱霍加縣"
}
},
"dma_code": "510",
"geoname_id": "5148115",
"state": {
"code": "US-OH",
"name": {
"cs": "Ohio",
"de": "Ohio",
"en": "Ohio",
"es": "Ohio",
"fa": "اوهایو",
"fr": "Ohio",
"it": "Ohio",
"ja": "オハイオ州",
"ko": "오하이오 주",
"pt": "",
"ru": "Огайо",
"zh": "俄亥俄州"
}
},
"zipcode": "44141"
},
"time_zone": "America/New_York"
}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.