Skip to main content
Skip to main content

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

by dAgentBaseData quality A · 91/100
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

Choose your client and connect your agent
# Example for Cursor (.cursor/mcp.json).
# For Claude, ChatGPT and Codex, use the Connect your agent guide.
# Read-only keys can preview and query data you already have access to.
{
  "mcpServers": {
    "dagentbase": {
      "url": "https://dagentbase.com/api/mcp",
      "headers": { "Authorization": "Bearer dm_live_YOUR_KEY" }
    }
  }
}

# 2. Then ask your agent, in plain language:
#    "Preview listing 7d2a5b9d-53d0-4b28-a95a-17f000762f83 and explain its coverage and license."
#    Tools: preview_listing -> describe_dataset -> query_dataset
#    Claim or purchase in the platform before querying with a read-only key.
Free

one time · open license

Details

Rows250
Size14.8 KB
Files1
FormatCSV.GZ

Available formats

CSV.GZ14.8 KB
Freeopen