---
id: "se_nyko"
kind: "datatype"
status: "draft"
is_pii: false
name: "Swedish key code area (NYKO)"
regexp: "^\\d{1,6}$"
categories: ["geo", "government"]
country: ["SE"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/se_nyko"
---

# Swedish key code area (NYKO) (`se_nyko`)

> **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.

Code of a sub-area of a Swedish municipality in the key code system (nyckelkodsystemet, NYKO) of Statistics Sweden. Each municipality divides itself into areas on up to six levels and the code grows with the level; the finest level has six digits, as in 010104. Statistics Sweden delivers population statistics by these areas, and municipal open data carries the code in columns named nyckelkod or nyko.

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

## Detection

Regular expression (Python `re`):

```
^\d{1,6}$
```

## Examples

- `010104` — a level 6 area of Umeå
- `174908` — a level 6 area of Umeå
- `0101045` (invalid example) — seven digits

## Metacrafter rules

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

- `senykobyname` (field, `se/se_codes.yaml`)

## Supported by tools

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

## Translations

- sv: Nyckelkod (NYKO)
- ru: Код статистического района муниципалитета Швеции (NYKO)

## Sources

- doc: <https://www.scb.se/vara-tjanster/bestall-data-och-statistik/regionala-statistikprodukter/statistikpaket/nyckelkodsystemet-nyko/>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

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