Datatypes › Germany › Geographic identifiers

German municipality key (Amtlicher Gemeindeschlüssel, AGS)

ID de_ags

DatatypeNot PIIidentifier

Eight-digit official code of a German municipality that the statistical offices publish in the municipality directory (Gemeindeverzeichnis): two digits for the state (01 Schleswig-Holstein to 16 Thüringen), one for the government region, two for the district and three for the municipality. The first five digits are the district key (Kreisschlüssel).

Categories
Geographic identifiers
Countries
Germany
Languages
Common to most languages
Wikidata
P439
Quality
100/100
Metacrafter rules
1 rule (0 by field name, 1 by value)
Supported by tools
metacrafter

Regular expression

^(?:0[1-9]|1[0-6])\d{6}$

Python re syntax.

Test a value

Examples

ValueDescription
03459033 Wallenhorst
12060020 Bernau bei Berlin
3459033 invalid Leading zero dropped
17060020 invalid There is no state 17

Translations

LanguageNameDescription
GermanAmtlicher Gemeindeschlüssel (AGS)
RussianОфициальный код общины Германии (AGS)Восьмизначный код общины - две цифры земли, одна цифра административного округа, две цифры района и три цифры общины.

Sources

Use this record