Database
![]() |
IP-Country-Region-City DatabaseIP2Location™ IP-Country-Region-City Database [DB3] provides a solution to determine the country, region or state, and city of origin for any IP address in a few simple steps. First, retrieve the IP address from the networking protocol or server-side variable of the Web server. Next, translate the IP address to an IP number in decimal format to speed up the database query. Lastly, reverse lookup the IP number from the IP2Location™ database to pinpoint the exact geographical location. This is a database subscription service. You can download all monthly updates for free if subscription is active. IPv4 and IPv6 supported. |
SAMPLE REQUESTRequest free sample database and source codes for PHP, ASP.NET, ASP, C#, VB.NET, MSSQL, and MySQL.
PRODUCT FEATURES| Features | Translates IP address (IPv4 or IPv6) to country, region or state, and city. |
|---|---|
| Current Version | January 2017 |
| Next Update | February 2017 |
| Database Size | 84.39 MB (8,827,123 Rows) |
| Database Format | ASCII Text File (Comma Delimited) and BIN (API) |
| Total Cities | >110,000 (See Worldwide Coverage) |
DATABASE FIELDS| Name | Type | Description |
|---|---|---|
| ip_from | INT(10)† / Decimal(39,0)†† | First IP address in netblock. |
| ip_to | INT(10)† / Decimal(39,0)†† | Last IP address in netblock. |
| country_code | CHAR(2) | Two-character country code based on ISO 3166. |
| country_name | VARCHAR(64) | Country name based on ISO 3166. |
| region_name | VARCHAR(128) | Region or state name. |
| city_name | VARCHAR(128) | City name. |
† IPv4
†† IPv6
†† IPv6
FREE ADD-ONS| Name | Description | |
|---|---|---|
| Continent Multilingual | Continent name in multiple languages. | More Info |
| Country Multilingual | Country name in multiple languages. | More Info |
| City Multilingual | City name in multiple languages. | More Info |
| Country Flags | Countries flag icon in multiple sizes. | More Info |
| World SVG Map | World border shape in SVG format. | More Info |
MISCELLANEOUSLicense Agreement: General Terms and Conditions for the database licensing.
Server License: The number of license required for server installation.
IP2Location™ is a registered trademark of HEXASOFT. All other trademarks are the property of their respective owners.
Sample Request
Please send me free sample database, binary and source codes of IP2Location products.






