Netherlands Buildings & Addresses (BAG) API

Dutch buildings and dwelling units from the national BAG register for any map area: build year, use, status, unit count, floor area, street address, postcode, town, province and location.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 20 fieldsv1.0

Data from api.pdok.nl/kadaster/bag/ogc/v2/collections/pand/items

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Bbox
Map area as west,south,east,north in longitude/latitude, such as 4.89,52.37,4.90,52.38.
Example: 4.89,52.37,4.90,52.38
Collectionsoptional
Which kinds of records to return: pand (buildings) and/or verblijfsobject (units with address and floor area). Default is buildings. One per line, or separated by commas.
Example: pand

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/netherlands-buildings-bag/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/netherlands-buildings-bag/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"bbox":"4.89,52.37,4.90,52.38"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

bboxtextrequired
Map area as west,south,east,north in longitude/latitude, such as 4.89,52.37,4.90,52.38.
example: 4.89,52.37,4.90,52.38
collectionslist
Which kinds of records to return: pand (buildings) and/or verblijfsobject (units with address and floor area). Default is buildings.
example: pand

What's in each record

20 fields: 18 here, 2 technical ones under Technical details.

Basics

  • Kind

    pand for a building, verblijfsobject for a unit.

    Example pand

  • Status

    Registered status, such as Pand in gebruik or Verblijfsobject in gebruik.

    Example Pand in gebruik

  • Use

    Registered use, such as woonfunctie (housing) or kantoorfunctie (office).

    Example woonfunctie

  • Units count

    Number of units in the building (buildings only).

    Example 2

  • Floor area m 2

    Floor area of the unit in square metres (units only).

    Example 1

  • House number

    Example 256

  • House addition

    House number addition, when there is one (units only).

    Example H

  • Municipality

    Municipality that keeps the record (units only).

    Example Amsterdam

  • Document number

    Number of the registering document.

    Example GV00007182_AC00AC

Location

  • Street name

    Example Oudezijds Voorburgwal

  • Postal code

    Postcode (units only).

    Example 1012GK

  • City

    Town or locality name (units only).

    Example Amsterdam

  • Province name

    Example Noord-Holland

  • Latitude

    Latitude of the unit point or building centre.

    Example 52.370284

  • Longitude

    Longitude of the unit point or building centre.

    Example 4.895417

Dates

  • Build year

    Year the building was built (buildings only).

    Example 1663

  • Document date

    Date of the registering document.

    Example Sep 28, 2023

Technical detailsField names and types for developers, and the 2 fields hidden above

Hidden by default

These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.

  • ID idBAG identification number of the building or unit.
  • Linked unit IDs linked_unit_idsBAG ids of the units in the building, or of the buildings a unit sits in.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
kindtextKind3 of 3
urllinkLink3 of 3
statustextStatus3 of 3
build_yearnumberBuild year3 of 3
usetextUse3 of 3
units_countnumberUnits count3 of 3
floor_area_m2numberFloor area m 20 of 3
streettextStreet name0 of 3
house_numbernumberHouse number0 of 3
house_additiontextHouse addition0 of 3
postal_codetextPostal code0 of 3
citytextCity0 of 3
provincetextProvince name0 of 3
municipalitytextMunicipality0 of 3
document_datedateDocument date3 of 3
document_numbertextDocument number3 of 3
latitudenumberLatitude3 of 3
longitudenumberLongitude3 of 3
linked_unit_idslistLinked unit IDs (hidden)3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordKindStatusUseUnits countFloor area m 2House numberHouse additionMunicipalityDocument numberStreet namePostal codeCityProvince nameLatitudeLongitudeBuild yearDocument dateLink
1pandPand in gebruikwoonfunctie2————GV00007182_AC00AC————52.3702844.8954171663Sep 28, 2023bag.basisregistraties.overheid.nl/bag/id/pand/0363100012165291
2pandPand in gebruikwoonfunctie4————GV00007182_AC00AC————52.3703414.8954551742Sep 28, 2023bag.basisregistraties.overheid.nl/bag/id/pand/0363100012165292
3pandPand in gebruikbijeenkomstfunctie,logiesfunctie,overige gebruiksfunctie,winkelfunctie15————GV00007182_AC00AC————52.3727094.8950231994Sep 28, 2023bag.basisregistraties.overheid.nl/bag/id/pand/0363100012165293

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • An area is required: give a bounding box in longitude/latitude (west,south,east,north). Large boxes hold hundreds of thousands of buildings, so the number of records you ask for is the cap.
  • Two kinds of records: buildings (pand) carry build year, use, status and unit count but no address or floor area; units (verblijfsobject) carry address, postcode, town, province and floor area but no build year.
  • Floor area is in square metres as registered; some units show very small placeholder values. Use is the registered main purpose and can be a list of purposes for one building.
  • The location is a single point: the unit's own point, or the middle of the building outline.
  • Data is the Dutch Kadaster BAG register published as open data by PDOK (CC0); it is updated daily by the source. No request limit is published, so runs read one page at a time at a modest pace.

Version history

A run uses the live version unless the request names another one with version.