Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.7 KB

File metadata and controls

49 lines (36 loc) · 1.7 KB

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

  1. Obtain a BAG API key from Kadaster.
  2. In Open Forms, navigate to: Configuration > Services
  3. 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
  4. Click Save
  5. Navigate to Configuration > Overview. In the Address search plugin group, click on Configuration for the BAG line.
  6. Select for the BAG service, the [ORC (Overige)] BAG (Kadaster) option, that we just created in step 3.
  7. Click Save

The BAG configuration is now completed.

Technical

API Supported versions
BAG API 2.0