
A Dutch registration plate can identify a vehicle in RDW open data, but your application still needs to handle missing records, nullable fields and changing inspection information. By the end of this guide, you can send a plate lookup from a server, read the response in Python or PHP, and handle errors without exposing your API key.
Request a Dutch plate lookup
Vehicle API accepts a Dutch kenteken at POST https://vehicles-api.com/api/v1/plate/nl. The request body contains a plate field, and the response draws on RDW open data. Dashes are optional: both K875HJ and K-875-HJ are accepted.
Run this official example with your API key substituted for YOUR_API_KEY:
curl -X POST "https://vehicles-api.com/api/v1/plate/nl" -H "X-API-Key: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"plate":"K875HJ"}'
The base URL is https://vehicles-api.com/api/v1, and the example authenticates with the X-API-Key header. An Authorization Bearer header also works, but the examples in this guide use X-API-Key.
Make the call from your backend, not browser code. A browser-delivered key can be inspected and reused by someone else. Your frontend can send the plate to your own server, which validates the input, calls Vehicle API and returns only the fields your application needs.
Read the response
The official documentation shows this successful response for the example plate. It is an example of the response shape; live RDW information can change.
{
"status": "success",
"source": "plate_nl",
"data": {
"plate": "K875HJ",
"vin": null,
"year": 2021,
"make": "TOYOTA",
"model": "AYGO",
"body": "hatchback",
"color": "GRIJS",
"doors": 4,
"seats": 4,
"vehicle_type": "Personenauto",
"engine": {
"cylinders": 3,
"displacement_cc": 998,
"fuel": "Benzine"
},
"mass_kg": 815,
"apk_expires": "2027-01-04",
"first_registration": "2021-01-04",
"open_recall": false
}
}
Check the envelope before using vehicle data. On success, status is success, source identifies the lookup as plate_nl, and data holds the vehicle fields. An error response instead has an error status and an error object with code and message.
The fields most integrations will use are:
plate,year,makeandmodel: identify the returned plate and describe the vehicle for a listing or fleet record.body,color,doors,seatsandvehicle_type: describe the vehicle. Values such asGRIJSandPersonenautocan be Dutch, so preserve the source value if your interface also displays a translation.engine.cylinders,engine.displacement_ccandengine.fuel: provide engine details. Displacement is in cubic centimetres, and the example fuel value isBenzine.mass_kg: gives mass in kilograms. Keep the unit with the value when displaying or transforming it.apk_expiresandfirst_registration: are date values. Treat them as dates rather than inventing a time of day or timezone.open_recall: is a Boolean signal in the plate response. Display it as returned, and refresh it when current information matters rather than treating a cached value as permanent.
vin is always null for Dutch plate lookups because RDW does not publish it. Do not make a successful plate lookup depend on a VIN, and do not infer one from the registration data. Other fields may also be null, so distinguish an absent value from a valid value such as false or zero.
Implement the lookup on your server
Python with requests
Install the requests package in your server environment and set the VEHICLE_API_KEY environment variable to your key. The sample uses json= for the POST body, sets a timeout, and reads error.code before accessing the successful data.
import os
import sys
import requests
url = "https://vehicles-api.com/api/v1/plate/nl"
api_key = os.environ["VEHICLE_API_KEY"]
try:
response = requests.post(
url,
headers={"X-API-Key": api_key},
json={"plate": "K875HJ"},
timeout=7,
)
except requests.RequestException as exc:
sys.exit("Vehicle API request failed: " + str(exc))
try:
envelope = response.json()
except ValueError:
sys.exit("Vehicle API returned a non-JSON response.")
if not response.ok or envelope.get("status") != "success":
error = envelope.get("error") or {}
code = error.get("code")
message = error.get("message")
if response.status_code == 404 and code == "not_found":
sys.exit("No vehicle was found for that plate.")
sys.exit(
"Vehicle API error: HTTP "
+ str(response.status_code)
+ ", code="
+ str(code)
+ ", message="
+ str(message)
)
vehicle = envelope.get("data") or {}
engine = vehicle.get("engine") or {}
print("Source:", envelope.get("source"))
print("Plate:", vehicle.get("plate"))
print("Vehicle:", vehicle.get("year"), vehicle.get("make"), vehicle.get("model"))
print("Fuel:", engine.get("fuel"))
print("APK expires:", vehicle.get("apk_expires"))
print("Open recall:", vehicle.get("open_recall"))
print("VIN:", vehicle.get("vin"))
The nested engine object is checked before its fields are read. In an application, render a missing value as unavailable rather than converting it into a vehicle attribute. In particular, keep open_recall: false distinct from a missing or null recall value.
This endpoint is a POST, so the plate belongs in json=, not in a query string. For a documented GET request elsewhere in an integration, Python’s params= is the corresponding way to pass documented query parameters; it is not needed for this plate call.
PHP with cURL
The PHP version also reads the key from the server environment. It checks transport failure separately from an API error and handles the documented not_found code before using data.
<?php
$apiKey = getenv("VEHICLE_API_KEY");
if ($apiKey === false || $apiKey === "") {
exit("Set VEHICLE_API_KEY in the server environment.\n");
}
$url = "https://vehicles-api.com/api/v1/plate/nl";
$body = json_encode(["plate" => "K875HJ"], JSON_THROW_ON_ERROR);
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"X-API-Key: " . $apiKey,
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 7,
]);
$responseBody = curl_exec($ch);
if ($responseBody === false) {
$message = curl_error($ch);
curl_close($ch);
exit("Vehicle API request failed: " . $message . "\n");
}
$httpStatus = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
try {
$envelope = json_decode($responseBody, true, 512, JSON_THROW_ON_ERROR);
} catch (JsonException $exception) {
exit("Vehicle API returned a non-JSON response.\n");
}
if ($httpStatus < 200 || $httpStatus >= 300 ||
($envelope["status"] ?? null) !== "success") {
$error = $envelope["error"] ?? [];
$code = $error["code"] ?? null;
$message = $error["message"] ?? null;
if ($httpStatus === 404 && $code === "not_found") {
exit("No vehicle was found for that plate.\n");
}
exit("Vehicle API error: HTTP " . $httpStatus .
", code=" . ($code ?? "unavailable") .
", message=" . ($message ?? "unavailable") . "\n");
}
$vehicle = $envelope["data"] ?? [];
$engine = $vehicle["engine"] ?? [];
echo "Source: " . ($envelope["source"] ?? "unavailable") . "\n";
echo "Plate: " . ($vehicle["plate"] ?? "unavailable") . "\n";
echo "Make: " . ($vehicle["make"] ?? "unavailable") . "\n";
echo "Model: " . ($vehicle["model"] ?? "unavailable") . "\n";
echo "Fuel: " . ($engine["fuel"] ?? "unavailable") . "\n";
echo "APK expires: " . ($vehicle["apk_expires"] ?? "unavailable") . "\n";
$openRecall = $vehicle["open_recall"] ?? null;
echo "Open recall: " .
($openRecall === null ? "unavailable" : ($openRecall ? "true" : "false")) .
"\n";
Both examples show the documented plate for a reproducible call. In production, obtain the plate from your application’s input, retain the server-side key, and avoid logging the key or complete request headers. Return a useful message to the user when a plate is unknown, while keeping detailed error information in your server logs as appropriate.
Operate the integration reliably
An unknown Dutch plate returns HTTP 404 with error.code set to not_found. Treat that as a lookup result your application can explain or let the user correct, not as a reason to keep retrying the same plate immediately. For other failures, inspect the HTTP status and the returned error.code and error.message; do not assume that every failure has the same cause.
Network timeouts and malformed responses need separate handling because they may not contain a usable API error envelope. If you retry a transient failure, use a bounded retry policy and avoid sending repeated requests while a service or connection remains unavailable. Check the Documentation for current error and account details before choosing an operational policy.
Rate limits and the monthly quota are distinct constraints: one governs request rate, while the other governs usage over the billing period. Monitor both for your account, prevent duplicate lookups where practical, and handle limit-related errors without retrying in a tight loop. Starter is $19 per month, and every plan has a 7-day free trial; check the current account details for the applicable limits rather than hard-coding an assumed allowance.
For caching, use a consistent plate representation as your application’s lookup key; dashes are optional for the API. Cache successful plate data only for a period appropriate to its use, and refresh time-sensitive fields such as apk_expires and open_recall when your workflow needs current information. Record when your application fetched a result so users and downstream services can distinguish cached data from a fresh lookup.
If a separate workflow receives a VIN from another source, decoded VIN data can also be cached to reduce repeated lookups. That does not change the Dutch plate response: it never supplies a VIN, so plate-to-VIN chaining is not available from this lookup alone.
Vehicle API also supports VIN decoding worldwide, with the fullest decoding for US-market vehicles. Its NHTSA recalls, owner complaints and NCAP ratings cover US-market vehicles only and are matched by make, model and year. Do not present those US-market datasets as Dutch plate-specific results, and do not treat this API as a vehicle history report: it does not provide title, accident or ownership history.
For an agent-based workflow, the same product is also available through its MCP server. Keep the same source and coverage distinctions when an agent presents results, and protect credentials in the agent’s server environment.
FAQ
Can I submit a Dutch plate with dashes?
Yes. Dashes are optional, so K875HJ and K-875-HJ are accepted. Use a consistent representation in your own cache to avoid unnecessary duplicate lookups.
Why is the VIN null?
RDW does not publish the VIN in this data, so vin is always null for a Dutch plate lookup. A null VIN does not mean the lookup failed.
What should I do when a plate is not found?
Handle HTTP 404 with error.code of not_found as an unknown plate. Let the user check the registration they entered; handle other error codes according to the returned error and your operational policy.
Is the recall field a vehicle history report?
No. open_recall is a field in the RDW-based plate response, not title, accident or ownership history. Separate NHTSA recalls, complaints and NCAP ratings are US-market datasets matched by make, model and year.
Register to start the 7-day free trial, then run the plate request from your server and build against the returned envelope.