Skip to main content
Skip to main content

World Countries — ISO 3166 Codes, Capitals, Regions, Area, Currencies, Languages, Borders

DatasetCSV.GZOpenCountriesIso 3166ReferenceGeographyFree

Every country and territory in ISO 3166 (250 rows) with alpha-2, alpha-3 and numeric codes, common and official names, capitals, UN region and sub-region, land area, independence and UN-membership flags, currencies, languages, centroid coordinates, landlocked flag, land borders, top-level domain and calling code. Built from the mledoze/countries compilation on 2026-09-05. The reference table every other dataset joins to; pair with the World Population set for headcounts. Read with pandas.read_csv(path, compression='gzip').

Use Cases

  • Join key for any country-level dataset
  • Region and sub-region grouping
  • Currency and language lookups
  • Map centroids and neighbour graphs

Methodology

Single fetch of countries.json; one row per ISO 3166 entity, sorted by common name.

Update Schedule

Static snapshot. Country data changes a few times a year; refresh quarterly.

Attribution

Source: mledoze/countries (github.com/mledoze/countries), Open Database License (ODbL).

Schema

nametype
alpha_2string
alpha_3string
numericinteger
namestring
official_namestring
capitalstring
regionstring
sub_regionstring
area_km2number
independentboolean
un_memberboolean
statusstring
currenciesstring
languagesstring
latitudenumber
longitudenumber
landlockedboolean
bordersstring
tldstring
calling_codestring

Sample Data

tldnameregionstatusalpha_2alpha_3borderscapitalnumericarea_km2latitudelanguageslongitudeun_membercurrencieslandlockedsub_regionindependentcalling_codeofficial_name
.afAfghanistanAsiaofficially-assignedAFAFGIRN;PAK;TKM;UZB;TJK;CHNKabul00465223033Dari;Pashto;Turkmen65trueAFNtrueSouthern Asiatrue+93Islamic Republic of Afghanistan
.axÅland IslandsEuropeofficially-assignedAXALAMariehamn248158060.116667Swedish19.9falseEURfalseNorthern Europefalse+35818Åland Islands
.alAlbaniaEuropeofficially-assignedALALBMNE;GRC;MKD;UNKTirana0082874841Albanian20trueALLfalseSoutheast Europetrue+355Republic of Albania
.dz;الجزائر.AlgeriaAfricaofficially-assignedDZDZATUN;LBY;NER;ESH;MRT;MLI;MARAlgiers012238174128Arabic3trueDZDfalseNorthern Africatrue+213People's Democratic Republic of Algeria
.asAmerican SamoaOceaniaofficially-assignedASASMPago Pago016199-14.33333333English;Samoan-170falseUSDfalsePolynesiafalse+1684American Samoa

Get this via API

# 1. Add dAgentBase once, in any MCP client. No install, no vendor keys.
#    Claude.ai / Claude Desktop: Settings -> Connectors -> Add custom connector
#    Cursor / Claude Code / others: mcp.json
{
  "mcpServers": {
    "dagentbase": {
      "url": "https://dagentbase.com/api/mcp",
      "headers": { "Authorization": "Bearer dm_live_YOUR_KEY" }
    }
  }
}

# 2. Then ask your agent, in plain language:
#    "Preview 'World Countries — ISO 3166 Codes, Capitals, Regions, Area, Currencies, Languages, Borders' and, if it fits, claim it and download the files."
#    Tools it will use: search_listings -> preview_listing -> purchase_listing -> get_download_urls

# 1. Add dAgentBase once, in any MCP client. No install, no vendor keys.
#    Claude.ai / Claude Desktop: Settings -> Connectors -> Add custom connector
#    Cursor / Claude Code / others: mcp.json
{
  "mcpServers": {
    "dagentbase": {
      "url": "https://dagentbase.com/api/mcp",
      "headers": { "Authorization": "Bearer dm_live_YOUR_KEY" }
    }
  }
}

# 2. Then ask your agent, in plain language:
#    "Preview 'World Countries — ISO 3166 Codes, Capitals, Regions, Area, Currencies, Languages, Borders' and, if it fits, claim it and download the files."
#    Tools it will use: search_listings -> preview_listing -> purchase_listing -> get_download_urls
Free

one time · open license

Details

Rows250
Size14.8 KB
Files1
FormatCSV.GZ

Available formats

CSV.GZ14.8 KB
Freeopen