Get BAG information
  • 07 Feb 2025
  • 3 Minutes to read
  • Dark
    Light

Get BAG information

  • Dark
    Light

Article summary

Get
/api/v1/realestateobjects/buildings/bag

[PREVIEW] Get BAG information.

Description

This endpoint can be used to retrieve the BAG information regarding a certain building. The BAG data entails information regarding the property from the government source (kadaster). This data can only be retrieved if it has already been retrieved from the BAG through the Bloxs application. This means that the data is already available in the application and which will then be the source of the information. Attempting to retrieve BAG information with this endpoint without retrieving the data first through the Bloxs application is not possible.

Both the 'reference' and the 'externalIdentifier' can be used to identify the object from which the BAG data should be retrieved. Preferably only the reference is used. If this is not available, the externalIdentifier can be used. If both properties are used it is important that both are correct and match with the same entity (object). If this is not the case, the request will return with an error code.

Use Case

This endpoint can be used to retrieve governmental data regarding a certain object. This data can subsequently be used to retrieve other specific data points.   

Response fields

The response contains the fields in the table below. 

FieldDescription
retrievedOnTimestamp indicating when Bloxs retrieved the data from BAG.
addressThe address data as retrieved from the BAG. This includes the street, housenumber (and addition), postal code and city/town.
premises.premisesIdDetails of the property itself. BAG includes building, occupancy unit, and house number information. This refers to the BAG building ID.
premises.premises_OriginalBuildYearOriginal construction year of the property.
premises.premises_StatusThe status of the premise as retrieved from the BAG.
residenceIdOccupancy unit identification number, abbreviated as BAG VBO ID.
residence_UsesThe purpose of the residence as registered by the BAG. For example: Housing (woonfunctie).
residence_SurfaceThe surface of the residence in sqm2 as registered by the BAG.
residence_StatusThe status of the residence as retrieved from the BAG.
numberDesignationIdThe number designation ID as retrieved from the BAG.
numberDesignation_PostalCodeThe postal code linked to the number designation ID as retrieved from the BAG.
numberDesignation_HouseNumberThe house number linked to the number designation ID as retrieved from the BAG.
numberDesignation_HouseNumberCharacterThe house number character (e.g. 1A) linked to the number designation ID as retrieved from the BAG.
numberDesignation.HouseNumberAdditionThe house number addition linked to the number designation ID as retrieved from the BAG., e.g., 350-1. This can include more than just a number (e.g., "bis" or "264H").
numberDesignation.StatusThe status linked to the number designation ID as retrieved from the BAG.
publicSpaceIdThe identification number of the public space in which the object is located, as retrieved from the BAG.
publicSpace_NameThe name of the public space in which the object is located, as retrieved from the BAG. This can for example be illustrated by the name of the street.
publicSpace_StatusThe status of the public space in which the object is located, as retrieved from the BAG.
city_NameThe name of the city in which the object is located, as retrieved from the BAG.
city_StatusThe status of the city in which the object is located, as retrieved from the BAG.
sourceHolders.sourceHolder_CodeThe identification code of the municipality in which the object is located, as retrieved from the BAG.
sourceHolders.sourceHolder_NameThe name of the municipality in which the object is located, as retrieved from the BAG.
parcels.cadastralNumberThe cadastral number of the parcel on which the object is located, as retrieved from the BAG.
parcels.parcelAreaThe surface area in sqm2 of the parcel on which the object is located, as retrieved from the BAG.
parcels.municipality_NameThe cadastral municipality of the parcel on which the object is located, as retrieved from the BAG. The cadastral municipality can differ from the regular municipality, for example in the event of merging of municipalities. 
parcels.condominiumIdsThe condominium ID(s) known in the parcel on which the object is located, as retrieved from the BAG. Multiple IDs can be returned for one parcel.
Security
HTTP
Type Bearer

Please enter a valid token

Query parameters
reference
string

The internal identifier of the model (i.e. Reference, Code, Name, depends on model).

externalIdentifier
string

The external API identifier of the model.

Responses
200

OK

Array of object
object
retrievedOn
string (date-time)
address
string | null
premises
Array of object (PremisesModel) | null
object
premisesId
string | null
premises_OriginalBuildYear
string | null
premises_Status
string | null
residenceId
string | null
residence_Uses
string | null
residence_Surface
integer (int32)
residence_Status
string | null
numberDesignationId
string | null
numberDesignation_PostalCode
string | null
numberDesignation_HouseNumber
integer (int32)
numberDesignation_HouseNumberCharacter
string | null
numberDesignation_HouseNumberAddition
string | null
numberDesignation_Status
string | null
publicSpaceId
string | null
publicSpace_Name
string | null
publicSpace_Status
string | null
city_Name
string | null
city_Status
string | null
sourceHolders
Array of object (SourceHolderModel) | null
object
sourceHolder_Code
string | null
sourceHolder_Name
string | null
parcels
Array of object (ParcelModel) | null
object
cadastralNumber
string | null
parcel_Area
number (double)
municipality_Name
string | null
condominiumIds
Array of string | null
string