API Access
Access dataset files directly from scripts, code, or AI agents.
Browse dataset files
API Access
Access dataset files directly from scripts, code, or AI agents.
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.
Start with these files — they give you everything you need to understand and access the dataset.
- 1. Fetch datapackage.yml to inspect schema and resources
- 2. Download data resources listed in datapackage.yml
- 3. Read README.md for full context
Data Files
Explore with AIdata
| Field | Type | Description |
|---|---|---|
| Name | string | Country Name |
| Code | string | ISO 2-letter code from ISO 3166-1-alpha-2 |
Download
Download CSVAbout
- List of all countries with their official short names in English and corresponding ISO 3166-1 alpha-2 two-letter country codes.
- Last updated
- 9 February 2026
- Total rows
- ...
- Format
- CSV
- File size
- 3.87 kB
- Source
- ISO
About this dataset
ISO 3166-1-alpha-2 English country names and code elements. This list states the country names (official short names in English) in alphabetical order as given in ISO 3166-1 and the corresponding ISO 3166-1-alpha-2 code elements.
This list is updated whenever a change to the official code list in ISO 3166-1 is effected by the ISO 3166/MA.
It lists 249 official short names and code elements as of Dec 2012.
License
This material is licensed by its maintainers under the Public Domain Dedication and License.
Nevertheless, it should be noted that this material is ultimately sourced from ISO and their rights and licensing policy is somewhat unclear. As this is a short, simple database of facts there is a strong argument that no rights can subsist in this collection. However, ISO state on their site:
ISO makes the list of alpha-2 country codes available for internal use and
non-commercial purposes free of charge.
This carries the implication (though not spelled out) that other uses are not permitted and that, therefore, there may be rights preventing further general use and reuse.