GET/api/countries
Countries from the UN M49 standard with their ISO 3166-1 codes, plus passport (ICAO), vehicle (UNECE), Olympic (IOC), FIFA, aircraft, ccTLD, calling code and membership data.
SourcesUN M49 · ISO 3166-1 · ICAO Doc 9303 · IOC · FIFA
One caveat for parsers: numericCode is present on every row except Kosovo. It is the ISO 3166-1 numeric code — which ISO took from UN M49 — and neither body assigns Kosovo one, which is why it carries the user-assigned XK/XKX instead.
| Parameter | Type | Description |
|---|---|---|
| code | string | ISO 3166-1 alpha-2 or alpha-3 code, e.g. ES or ESP. |
| region | string | UN M49 macro-region, matched as a substring, e.g. Europe. |
| independent | 01truefalse | ISO 3166 independence status. |
| unMembership | membernon-member-state | UN status. member is one of the 193 member States; non-member-state is a non-member State with a standing observer invitation (Holy See, State of Palestine). Anything on neither list has no value and matches neither. |
| euMember | 01truefalse | Current EU member state. |
| sovereignState | string | Alpha-2 of the administering country, for territories. |
| locale | string | ISO 639-1 locale, e.g. ca. Adds localizedName (the country's name in that language) and localizedLanguage (the locale code it was rendered in) to each row. Use include=localizedNames for every locale at once. |
| has | string | Comma-separated fields that must have a value. Allowed: alpha3Code, icaoCode, dsitCode, iocCode, fifaCode, aircraftRegPrefixes, ccTLD, phonePrefix, sovereignState, subdivisionCount. |
| missing | string | Comma-separated fields that must be absent. Allowed: alpha3Code, icaoCode, dsitCode, iocCode, fifaCode, aircraftRegPrefixes, ccTLD, phonePrefix, sovereignState, subdivisionCount. |
Embeddable with include: subdivisions, timezones, currencies, historicalCurrencies, languages, localizedNames
Fields
Selectable with fields and sortable with sort: flag, alpha2Code, name, fullName, localShortNames, alpha3Code, icaoCode, dsitCode, iocCode, fifaCode, aircraftRegPrefixes, ccTLD, phonePrefix, independent, unMembership, sovereignState, euMember, region, numericCode, notes, subdivisionCount
Selectable with fields but not sortable, and only present when a parameter above asks for them: localizedName, localizedLanguage, subdivisions, timezones, currencies, historicalCurrencies, languages, localizedNames. They are produced after the rows are sorted, so sort rejects them rather than quietly doing nothing.