---
id: "countrycode_num"
kind: "pattern"
status: "stable"
is_pii: false
categories: ["geo"]
langs: ["common"]
quality: 90
url: "http://registry.apicrafter.io/datatype/countrycode_num"
---

# ISO 3166-1 Numeric code (country code) (`countrycode_num`)

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`
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[0-9]{3}$
```

## Examples

- `554` — New Zealand
- `276` — Germany

## Mappings

- bioregistry: `iso.3166`
- wikidata: `P299`

## Supported by tools

- `csvdetective`
- `greatexpectations`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/ISO_3166-1_numeric>
- wikidata: <https://www.wikidata.org/wiki/Property:P299>

## Quality

Score 90/100. Missing: negative example, translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/countrycode_num.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/geo/countrycode_num.yaml>
