Datatypes › Geographic identifiers › country
ISO 3166-1 Alpha3 country code
ID countrycode_alpha3
Pattern of countryNot PIIcategorical
ISO 3166-1 alpha-3 codes are three-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest.
- Pattern of
- Country code or name
country - Categories
- Geographic identifiers
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- FTA
COUNTRY.ISO-3166-3- Wikidata
- P298
- Quality
- 90/100 · missing: negative example, translation
- Metacrafter rules
- 3 rules (0 by field name, 3 by value)
iso3166-alpha3data, common/intcodes.yamliso3166-alpha3imprecisedata, common/intcodes.yamliso3166alpha3byisofielddata, common/intcodes.yaml
- Supported by tools
- csv-detective, FTA (Fast Text Analysis), Great Expectations Semantic Types Expectations, IBM Knowledge Catalog (IBM watsonx.data intelligence), metacrafter, Pydantic and pydantic-extra-types, SAS Information Catalog (Quality Knowledge Base), Tableau, Talend (Qlik Talend Data Preparation, Data Catalog and Data Inventory), validator.js
Regular expression
^[A-Z]{3}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| RUS | Russia |
| DEU | Germany |
Sources
- wikipedia: ISO 3166-1 alpha-3 (en.wikipedia.org)
- wikidata: wikidata.org/wiki/Property:P298
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/countrycode_alpha3 - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/geo/countrycode_alpha3.yamlon GitHub