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

# Dutch BAG object identifier (`nl_bag_id`)

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

Identifier of an object in the Basisregistratie Adressen en Gebouwen (BAG), the Dutch register of addresses and buildings that the municipalities keep and Kadaster publishes. It has 16 digits: the 4-digit code of the municipality that assigned it (nl_municipality_code, possibly of a former municipality), a 2-digit object type and a 10-digit serial number. The object types are 01 verblijfsobject (unit such as a dwelling or office), 02 ligplaats (mooring), 03 standplaats (pitch), 10 pand (building, nl_bag_building_id), 20 nummeraanduiding (address) and 30 openbare ruimte (public space such as a street; Wikidata P5207). Places (woonplaatsen) have a 4-digit code instead (nl_bag_woonplaats_code).

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Real estate (realestate)
- Countries: Netherlands (NL)
- Languages: Common to most languages (common)
- Classification: identifier
- Patterns: `nl_bag_building_id`

## Detection

Regular expression (Python `re`):

```
^\d{4}(?:0[123]|[123]0)\d{10}$
```

## Examples

- `0363010000544772` — Verblijfsobject in Amsterdam, from the PDOK BAG API
- `0363200000447176` — Nummeraanduiding in Amsterdam, from the PDOK BAG API
- `0363300000004696` — Openbare ruimte Oudezijds Voorburgwal, Amsterdam
- `0363020000963270` — Ligplaats in Amsterdam, from the PDOK BAG API
- `0363400000004696` (invalid example) — 40 is not an object type
- `036301000054477` (invalid example) — 15 digits

## Translations

- nl: BAG-identificatie: Zestiencijferige identificatie van een BAG-object - gemeentecode, objecttypecode en volgnummer.
- ru: Идентификатор объекта BAG (Нидерланды): Шестнадцатизначный идентификатор объекта в реестре адресов и зданий BAG - код муниципалитета, код типа объекта и порядковый номер.

## Sources

- doc: <https://imbag.github.io/catalogus/hoofdstukken/attributen--relaties>
- doc: <https://imbag.github.io/catalogus/hoofdstukken/domeinwaarden>
- other: <https://api.pdok.nl/kadaster/bag/ogc/v2/>
- wikipedia: <https://nl.wikipedia.org/wiki/Basisregistratie_Adressen_en_Gebouwen>

## Quality

Score 80/100. Missing: mapping (Wikidata, Schema.org, ...), detector coverage.

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