BAG¶
The BAG (Basisregistratie Adressen en Gebouwen) is a database from the Kadaster containing address information, that can be accessed via the semi-public BAG API. Open Forms can be configured to access this API to autocomplete addresses.
Configuration¶
Obtain a BAG API key from Kadaster.
In Open Forms, navigate to: Configuration > Services
Click Add service and fill in the following details:
Label: BAG (Kadaster)
Type: ORC (Overige)
API root URL:
https://api.bag.kadaster.nl/lvbag/individuelebevragingen/v2/
Authorization type: API key
Header key: X-Api-Key
Header value: The BAG API key obtained in step 1
OAS:
https://raw.githubusercontent.com/lvbag/BAG-API/4ab6ea5f3c2749f62d1079e2fe7539d4526c04e7/Technische%20specificatie/Archief/Yaml's/BAG%20API%20Individuele%20Bevragingen/resolved/individuelebevragingen/v2/adressen.yaml
Click Save
Navigate to Configuration > Overview. In the Address search plugin group, click on Configuration for the BAG line.
Select for the BAG service, the [ORC (Overige)] BAG (Kadaster) option, that we just created in step 3.
Click Save
The BAG configuration is now completed.
Technical¶
API |
Supported versions |
---|---|
BAG API |
2.0 |