---
id: "se_lanskod"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo"]
country: ["SE"]
langs: ["sv"]
quality: 75
url: "https://registry.apicrafter.io/datatype/se_lanskod"
---

# Swedish county code (länskod) (`se_lanskod`)

> **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 one of the 21 Swedish counties (län) of Statistics Sweden, as in 01 for Stockholm. It is the first two digits of a municipality code (se_kommunkod).

- Parent datatype: `category`
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Sweden (SE)
- Languages: Swedish (sv)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:0[13-9]|1[02-47-9]|2[0-5])$
```

## Examples

- `01` — Stockholms län
- `06` — Jönköpings län
- `14` — Västra Götalands län
- `02` (invalid example) — Not in use

## Metacrafter rules

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

- `selanskodvalue` (data, `se/se_geo.yaml`)

## Supported by tools

- `metacrafter`

## Translations

- sv: Länskod

## Quality

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

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