---
id: "ruscountrycode"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["geo"]
country: ["RU"]
langs: ["ru"]
quality: 85
url: "http://registry.apicrafter.io/datatype/ruscountrycode"
---

# Russian country code by OKSM classifier (3 digits) by data and fieldname (`ruscountrycode`)

RU datatype for 'Russian country code by OKSM classifier (3 digits) by data and fieldname' (ruscountrycode) from rules in context 'geo'. OKSM (Общероссийский классификатор стран мира) is the Russian All-Russian Classifier of Countries of the World. It uses 3-digit numeric codes to represent countries, dependent territories, and special areas of geographical interest. The classifier is based on ISO 3166-1 numeric codes but may include additional codes specific to Russian classification needs. Common codes include 643 for Russia, 276 for Germany, 840 for United States, and 826 for United Kingdom.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Russian Federation (RU)
- Languages: Russian (ru)
- Classification: identifier

## Detection

Regular expression (Python `re`):

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

## Examples

- `643` — Russia (Россия) - OKSM code
- `276` — Germany (Германия) - OKSM code
- `840` — United States (Соединенные Штаты) - OKSM code
- `826` — United Kingdom (Соединенное Королевство) - OKSM code
- `032` — Argentina (Аргентина) - OKSM code
- `704` — Vietnam (Вьетнам) - OKSM code

## Metacrafter rules

2 rules: 0 match the field name, 2 match values.

- `rucountrycode` (data, `ru/ru_geo.yaml`)
- `rucountrycodepat` (data, `ru/ru_geo.yaml`)

## Supported by tools

- `metacrafter`
- `metacrafterpro`

## Translations

- en: Russian OKSM Country Code (3 digits)
- ru: Код страны по классификатору ОКСМ (3 цифры)

## Sources

- wikipedia: <https://ru.wikipedia.org/wiki/%D0%9E%D0%B1%D1%89%D0%B5%D1%80%D0%BE%D1%81%D1%81%D0%B8%D0%B9%D1%81%D0%BA%D0%B8%D0%B9_%D0%BA%D0%BB%D0%B0%D1%81%D1%81%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%82%D0%BE%D1%80_%D1%81%D1%82%D1%80%D0%B0%D0%BD_%D0%BC%D0%B8%D1%80%D0%B0>

## Quality

Score 85/100. Missing: negative example, mapping (Wikidata, Schema.org, ...).

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