---
id: "mn_aimag_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Mongolian province code (aimag code)"
regexp: "^0(?:11|2[123]|4[1-68]|6[1-57]|8[1-5])$"
categories: ["geo", "government"]
country: ["MN"]
langs: ["common"]
quality: 83
url: "https://registry.apicrafter.io/datatype/mn_aimag_code"
---

# Mongolian province code (aimag code) (`mn_aimag_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.

Three-digit code of a Mongolian province (aimag) or of Ulaanbaatar in the classification of administrative units of the National Statistics Office: a zero and the two-digit statistical code of the province, 011 for Ulaanbaatar, 021 for Dornod, 084 for Khovd. The tens digit groups the provinces by region. The codes of soums (mn_soum_code) and bags (mn_bag_code) start with it, and the humanitarian P-code adds MN to the two digits (MN84).

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Mongolia (MN)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^0(?:11|2[123]|4[1-68]|6[1-57]|8[1-5])$
```

## Examples

- `011` — Ulaanbaatar
- `021` — Dornod
- `084` — Khovd
- `012` (invalid example) — Not a province code

## Metacrafter rules

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

- `mnaimagcodebyname` (field, `mn/mn_geo.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- mn: Аймгийн код
- ru: Код аймака Монголии

## Sources

- other: <https://rdrr.io/cran/mongolmaps/man/mn_codes.html>

## Quality

Score 83/100. Missing: authoritative source link, mapping (Wikidata, Schema.org, ...).

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