---
id: "at_ortschaftskennziffer"
kind: "datatype"
status: "draft"
is_pii: false
name: "Austrian locality code (Ortschaftskennziffer, OKZ)"
regexp: "^\\d{5}$"
categories: ["geo"]
country: ["AT"]
langs: ["common"]
quality: 83
url: "https://registry.apicrafter.io/datatype/at_ortschaftskennziffer"
---

# Austrian locality code (Ortschaftskennziffer, OKZ) (`at_ortschaftskennziffer`)

> **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 code of a locality (Ortschaft) of an Austrian municipality, assigned by Statistics Austria and kept in the address register of the BEV with the street code (at_strassenkennziffer). A municipality (at_gkz) has one or more localities. Not to be confused with the e-government organisation code (at_okz), which is also abbreviated OKZ.

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Austria (AT)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

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

## Examples

- `12120` — A locality of Engerwitzdorf (Upper Austria)
- `L5AL-200` (invalid example) — An organisation code (at_okz)

## Metacrafter rules

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

- `atortschaftskennzifferbyname` (field, `at/at_geo.yaml`)

## Supported by tools

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

## Translations

- de: Ortschaftskennziffer
- ru: Код населённого пункта Австрии (OKZ)

## Sources

- doc: <https://www.bev.gv.at/Services/Produkte/Adressregister.html>
- doc: <https://gesetzefinden.at/bundesrecht/verordnungen/adrregv-2016/para-2>

## Quality

Score 83/100. Missing: second example, mapping (Wikidata, Schema.org, ...).

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