---
id: "hu_ksh_code"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo"]
country: ["HU"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/hu_ksh_code"
---

# Hungarian KSH settlement code (`hu_ksh_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.

Five-digit identifier of a Hungarian town or village assigned by the Hungarian Central Statistical Office (KSH).

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Hungary (HU)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{5}$
```

## Examples

- `23959` — Mohács
- `09566` — Budapest District I

## Mappings

- wikidata: `P939`

## Sources

- wikidata: <https://www.wikidata.org/wiki/Property:P939>

## Quality

Score 80/100. Missing: negative example, translation, detector coverage.

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