Datatypes › Geographic identifiers › country
ISO 3166-1 Numeric code (country code)
ID countrycode_num
Pattern of countryNot PIIcategorical
ISO 3166-1 numeric (or numeric-3) codes are three-digit 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
- Bioregistry
iso.3166- Wikidata
- P299
- Quality
- 90/100 · missing: negative example, translation
- Metacrafter rules
- 1 rule (1 by field name, 0 by value)
escountrycodenumbynamefield, es/es_codes.yaml
- Supported by tools
- csv-detective, Great Expectations Semantic Types Expectations, metacrafter, Pydantic and pydantic-extra-types, validator.js
Regular expression
^[0-9]{3}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 554 | New Zealand |
| 276 | Germany |
Sources
- wikipedia: ISO 3166-1 numeric (en.wikipedia.org)
- wikidata: wikidata.org/wiki/Property:P299
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/countrycode_num - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/geo/countrycode_num.yamlon GitHub