---
id: "de_staatsangehoerigkeitsschluessel"
kind: "datatype"
status: "draft"
is_pii: false
name: "German nationality and area key (Staatsangehörigkeits- und Gebietsschlüssel)"
regexp: "^\\d{3}$"
categories: ["government", "geo"]
country: ["DE"]
langs: ["de"]
quality: 90
url: "https://registry.apicrafter.io/datatype/de_staatsangehoerigkeitsschluessel"
---

# German nationality and area key (Staatsangehörigkeits- und Gebietsschlüssel) (`de_staatsangehoerigkeitsschluessel`)

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

Three-digit key of a state or territory in the Staats- und Gebietssystematik of the Federal Statistical Office of Germany. The first digit gives the continent where most of the state lies (1 Europe, 2 Africa, 3 America, 4 Asia, 5 Australia and Oceania) and the last two digits the state. Population registers and the statistics of residents by citizenship use it, in columns named Staatenkey, Staatsangehörigkeitsschlüssel or Staatsschlüssel next to the name of the nationality. It is not an ISO 3166-1 numeric code.

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Government related (government), Geographic identifiers (geo)
- Countries: Germany (DE)
- Languages: German (de)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^\d{3}$
```

## Examples

- `423` — Afghanistan
- `287` — in the tables of residents by nationality of the KDVZ municipalities
- `AF` (invalid example) — an ISO 3166-1 alpha-2 code

## Metacrafter rules

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

- `destaatenkeybyname` (field, `de/de_codes.yaml`)

## Supported by tools

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

## Translations

- de: Staatsangehörigkeits- und Gebietsschlüssel
- ru: Код гражданства и территории (Германия)

## Sources

- doc: <https://statistik.arbeitsagentur.de/DE/Navigation/Grundlagen/Klassifikationen/Staats-und-Gebietssystematik/Staats-und-Gebietssystematik-Nav.html>

## Quality

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

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