---
id: "at_bundesland_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Austrian state code (1-9)"
regexp: "^[1-9]$"
categories: ["geo", "government"]
country: ["AT"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/at_bundesland_code"
---

# Austrian state code (1-9) (`at_bundesland_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.

One-digit code of an Austrian state used by Statistics Austria and in the Austrian open data files (BundeslandID, BL, BDL), the states in alphabetical order of their German names, 1 Burgenland, 2 Kärnten, 3 Niederösterreich, 4 Oberösterreich, 5 Salzburg, 6 Steiermark, 7 Tirol, 8 Vorarlberg, 9 Wien. It is the first digit of the municipality code (at_gkz), of the political district code (at_bezirkskennziffer) and of the school code (at_schulkennzahl), and the subdivision part of the ISO 3166-2 codes AT-1 to AT-9. Some files add 10 for Austria as a whole.

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

## Detection

Regular expression (Python `re`):

```
^[1-9]$
```

## Examples

- `3` — Niederösterreich
- `9` — Wien
- `10` (invalid example) — Austria as a whole in the COVID-19 case files, not a state

## Metacrafter rules

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

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

## Supported by tools

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

## Translations

- de: Bundeslandkennziffer
- ru: Код федеральной земли Австрии

## Sources

- wikipedia: <https://de.wikipedia.org/wiki/ISO_3166-2:AT>

## Quality

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

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