API documentation
Adrescheck Basis Nationaal v1
Adrescheck Basis Nationaal v1
Method | Endpoint |
GET | https://api.postnl.nl/address/national/basic/v1/citystreetname |
GET | https://api.postnl.nl/address/national/basic/v1/postalcode |
Key | Value |
Content-Type | Application/json |
apikey | < your apikey > |
For endpoint citystreetname:
Fieldname | Mandatory/optional | Format | Example |
postalcode | Mandatory | String [6] | 1234AB |
For endpoint postalcode:
Fieldname | Mandatory/optional | Format | Example |
postalcode | Mandatory | String [6] | 1234AB |
housenumber | Mandatory | Number [1-5] | 123 (only numerical values allowed) |
For endpoint citystreetname:
Fieldname | Description of attribute | Format [lenght] |
city | City of requested postalcode | String [1-35] |
streetName | Street of requested postalcode | String [1-95] |
For endpoint postalcode:
Fieldname | Description of attribute | Format [length] |
status | Indicator whether we found a matching result (values 0 or 1) | String [1] |
city | City of requested address | String [1-35] |
postalCode | Postalcode of requested address | String [6] |
streetName | Street of requested address | String [1-95] |
houseNumber | Housenumber of requested address | Number [1-5] |
areaCode | Areacode of requested address | String [3-4] |
Examples of all possible requests can be found in the Postman collections.
Request | Response |
Params: postalcode: 2242LE Housenumber: 189 | [ |
Status code | Status message |
200 | JSON response with requested data. |
200 | If no address was found, we return statusfield 0. |
4xx | Error on customer-side. Example:
|
500 | Error on PostNL side. |