IP Country Flag
Every IP range mapped to its country's flag, as an emoji and its Unicode code points.
| ID | ip_country_flag_v1 |
|---|---|
| Formats | csvgz, mmdb |
| Update Frequency | Daily |
| Last Updated | November 8th 2026 (today) |
| Entries | 916,784 |
File Size (csvgz) | 7.31 MB |
File Size (mmdb) | 3.95 MB |
Overview
Every IPv4 and IPv6 range matched to its country, with the flag as both an emoji and its Unicode code points: flag_emoji for a system that renders emoji, flag_unicode for one that does not. The country is the one IP Geolocation gives the same range; this file carries no region or city.
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_flag_v1.csv.gz -X GET "https://internetdata.io/api/v2/database/download?id=ip_country_flag_v1&format=csvgz&apikey=$APIKEY"Schema
| Name | Type | Description |
|---|---|---|
start_ip | ipaddress | Start IP of the IP range. |
end_ip | ipaddress | End IP of the IP range. |
country | string | ISO 3166-1 alpha-2 country code. |
country_name | string | Country name, where known. |
flag_emoji | string | Flag emoji of the country, where known. |
flag_unicode | string | Unicode code points of the flag emoji. |
Samples
| start_ip | end_ip | country | country_name | flag_emoji | flag_unicode |
|---|---|---|---|---|---|
209.120.175.48 | 209.120.175.55 | CA | Canada | 🇨🇦 | U+1F1E8 U+1F1E6 |
38.88.240.132 | 38.88.240.135 | US | United States | 🇺🇸 | U+1F1FA U+1F1F8 |
80.255.2.160 | 80.255.3.159 | DE | Germany | 🇩🇪 | U+1F1E9 U+1F1EA |
104.28.154.155 | 104.28.154.180 | AU | Australia | 🇦🇺 | U+1F1E6 U+1F1FA |
217.156.64.0 | 217.156.67.255 | MD | Moldova | 🇲🇩 | U+1F1F2 U+1F1E9 |