---
id: "uic_country_code"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["transport"]
langs: ["common"]
quality: 80
url: "https://registry.apicrafter.io/datatype/uic_country_code"
---

# UIC country code (`uic_country_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Two-digit code of a country in the numbering of the International Union of Railways (UIC leaflet 920-14). It appears in wagon numbers (uic_wagon_number) and station numbers. It began as a code of the railway company and now belongs to the country. Any two digits match, so use the field name or context.

- Personal data (PII): no
- Categories: Transportation (transport)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^\d{2}$
```

## Examples

- `20` — Russia
- `80` — Germany
- `87` — France
- `RU` (invalid example) — ISO 3166-1 alpha-2 code

## Translations

- ru: Код страны МСЖД (UIC)

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/List_of_UIC_country_codes>

## Quality

Score 80/100. Missing: mapping (Wikidata, Schema.org, ...), detector coverage.

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