PostcodeData.nl API

Free to Use
33 F
Measured Score 0 50 100 Speed 6/30 Consistency 8/20 Security 0/20 Browser access 15/15 Transparency 4/15 TESTED 2026-08-10

Overview

PostcodeData.nl provides geolocation and address data for Dutch postal codes. You can look up a postcode with a house number to get the full address, city, province, and GPS coordinates. No API key is required, making it simple to use for Dutch address validation projects.

Beginner Tip

Dutch postcodes follow the format NNNNXX (4 digits + 2 letters, e.g., 1211EP). Always include both the postcode and streetnumber parameters for the most accurate results.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET http://api.postcodedata.nl/v1/postcode/?postcode=1211EP&streetnumber=60&ref=test&type=json
Result
HTTP 200 · application/json · 299 bytes
Response time
494 ms (median of 3) · fastest 361 ms
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
Apache/2.4.25 (Ubuntu)
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
status string ok
details array [1 item]

Captured Response

Captured from a real request to http://api.postcodedata.nl/v1/postcode/?postcode=1211EP&streetnumber=60&ref=test&type=json on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "status": "ok",
  "details": [
    {
      "street": "Stationsstraat",
      "city": "Hilversum",
      "municipality": "Hilversum",
      "province": "Noord-Holland",
      "postcode": "1211 EP",
      "pnum": "1211",
      "pchar": "EP",
      "rd_x": "140707.47566666666666666667",
      "rd_y": "471005.06166666666666666667",
      "lat": "52.2269378842251",
      "lon": "5.1780191356884"
    }
  ]
}

Field Reference

postcode The Dutch postcode that was looked up.
street Street name associated with the postcode and house number.
city City or municipality for this address.
province Province within the Netherlands where the address is located.

Implementation Example

Request skeleton. The URL below is this API's documentation page, not a live endpoint — swap in the path you need from the provider's docs before running it.

Request
const url = "http://api.postcodedata.nl/v1/postcode/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/html

Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

Empty or null response for a postcode The postcode and street number combination does not exist in the database.
Verify the postcode is in valid Dutch format (4 digits + 2 uppercase letters) and that the house number is correct.
JSON parse error The type=json parameter may be missing, causing the API to return a different format.
Always include &type=json in your request URL to ensure JSON output.
Server throttle or slow response Too many requests sent in a short period.
Add a delay between requests (at least 1 second) and cache results to avoid repeat lookups.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 6/30
Consistency 8/20
Security 0/20
Browser access 15/15
Transparency 4/15
Endpoint Response Time 494ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS NO
CORS UNKNOWN
Category Geocoding
Difficulty Beginner
Endpoint last called: 2026-08-10

Similar APIs

View All →