InternetDataInternetData

IP Country

Every IP range mapped to its continent and country, each as a code and a name, with its timezone and the country's currency and flag.

Explore API
IDip_country_v1
Formatscsvgz, mmdb
Update FrequencyDaily
Last UpdatedOctober 16th 2026 (today)
Entries2,455,119
File Size (csvgz)20.5 MB
File Size (mmdb)10.9 MB

Overview

Every IPv4 and IPv6 range matched to its continent and country, each by code and name, with the range's IANA timezone and the country's currency and flag. The country and the zone are the ones IP Geolocation gives the same range, and neighboring ranges of the same country and zone are merged into one row; this file carries no region or city.

  • continent: the continent code, AF, AN (Antarctica), AS, EU, NA, OC or SA, and continent_name its name.
  • country: the ISO 3166-1 alpha-2 code, and country_name its name.
  • timezone: the range's IANA timezone. Empty in the few ranges in Bouvet Island (BV) and Heard Island (HM), which have none.
  • currency_code, currency_name and currency_symbol: the country's currency, by its ISO 4217 code.
  • flag_emoji and flag_unicode: the country's flag as an emoji and as its two Unicode code points.

Free under CC BY-SA 4.0, like every Open database: credit InternetData with a link to internetdata.io, and share what you build from it under the same license.

Formats

curl -L -o ip_country_v1.csv.gz -X GET "https://internetdata.io/api/v2/database/download?id=ip_country_v1&format=csvgz&apikey=$APIKEY"
Schema
NameTypeDescription
start_ipipaddressStart IP of the IP range.
end_ipipaddressEnd IP of the IP range.
continentstringContinent code: AF, AN (Antarctica), AS, EU, NA, OC or SA.
continent_namestringContinent name.
countrystringISO 3166-1 alpha-2 country code.
country_namestringCountry name.
timezonestringIANA timezone of the IP range. Empty in the few ranges in BV and HM, which have none.
currency_codestringISO 4217 code, where there is one.
currency_namestringCurrency name, where there is one.
currency_symbolstringCurrency symbol, where known.
flag_emojistringFlag emoji of the country.
flag_unicodestringUnicode code points of the flag emoji.
Samples
start_ipend_ipcontinentcontinent_namecountrycountry_nametimezonecurrency_codecurrency_namecurrency_symbolflag_emojiflag_unicode
2a09:bac1:14a0:40c9::2a09:bac1:14a0:40df:ffff:ffff:ffff:ffffNANorth AmericaUSUnited StatesAmerica/Los_AngelesUSDDollar$🇺🇸U+1F1FA U+1F1F8
128.177.172.240128.177.172.249NANorth AmericaUSUnited StatesAmerica/New_YorkUSDDollar$🇺🇸U+1F1FA U+1F1F8
74.205.6.074.205.7.7NANorth AmericaUSUnited StatesAmerica/ChicagoUSDDollar$🇺🇸U+1F1FA U+1F1F8
2a10:bf83:838::2a10:bf83:83f:ffff:ffff:ffff:ffff:ffffNANorth AmericaSVEl SalvadorAmerica/El_SalvadorUSDDollar$🇸🇻U+1F1F8 U+1F1FB
198.68.177.8198.68.181.31NANorth AmericaUSUnited StatesAmerica/New_YorkUSDDollar$🇺🇸U+1F1FA U+1F1F8
curl -L -o ip_country_v1.mmdb -X GET "https://internetdata.io/api/v2/database/download?id=ip_country_v1&format=mmdb&apikey=$APIKEY"
Schema
NameTypeDescription
continentstringContinent code: AF, AN (Antarctica), AS, EU, NA, OC or SA.
continent_namestringContinent name.
countrystringISO 3166-1 alpha-2 country code.
country_namestringCountry name.
timezonestringIANA timezone of the IP range. Empty in the few ranges in BV and HM, which have none.
currency_codestringISO 4217 code, where there is one.
currency_namestringCurrency name, where there is one.
currency_symbolstringCurrency symbol, where known.
flag_emojistringFlag emoji of the country.
flag_unicodestringUnicode code points of the flag emoji.
Samples
continentcontinent_namecountrycountry_nametimezonecurrency_codecurrency_namecurrency_symbolflag_emojiflag_unicode
NANorth AmericaUSUnited StatesAmerica/Los_AngelesUSDDollar$🇺🇸U+1F1FA U+1F1F8
NANorth AmericaUSUnited StatesAmerica/New_YorkUSDDollar$🇺🇸U+1F1FA U+1F1F8
NANorth AmericaUSUnited StatesAmerica/ChicagoUSDDollar$🇺🇸U+1F1FA U+1F1F8
NANorth AmericaSVEl SalvadorAmerica/El_SalvadorUSDDollar$🇸🇻U+1F1F8 U+1F1FB
NANorth AmericaUSUnited StatesAmerica/New_YorkUSDDollar$🇺🇸U+1F1FA U+1F1F8

On this page