
You need to tell a driver or a fleet when their Dutch APK (periodic inspection) expires from just a Dutch number plate. By the end of this guide, you’ll query the RDW APK expiry via Vehicle API, parse the response safely, and ship it with proper error handling, caching, and coverage awareness.
What you’ll build with the RDW APK expiry lookup
Vehicle API exposes Dutch RDW open data behind one endpoint so you can look up APK expiry and core vehicle attributes by plate. You send a Dutch plate (with or without dashes) and get an envelope that includes apk_expires as a YYYY-MM-DD date, plus fields like make, model, body, engine, mass_kg, and first_registration.
Key facts to keep in mind:
- Endpoint: POST https://vehicles-api.com/api/v1/plate/nl
- Authentication: header X-API-Key: YOUR_API_KEY (Authorization: Bearer YOUR_API_KEY also works)
- Source: Dutch RDW open data; RDW never publishes a VIN, so vin is always null
- Plates may be provided with or without dashes (e.g., K875HJ or K-875-HJ)
- Unknown plate returns a 404 not_found in the response envelope
- Response envelope: status, source, data for success; status error with error.code and error.message for failures
Vehicle API also covers VIN decoding worldwide (fullest for US-market vehicles) and US safety data (recalls, owner complaints, NCAP crash ratings matched by year/make/model). Those safety datasets are US-market only and do not apply to Dutch plates. This is not a vehicle history report and does not include title, accident, or ownership history.
Learn more on vehicles-api.com, or keep reading to integrate the RDW APK expiry endpoint.
Get access: start your 7‑day free trial and grab your API key
All plans include a 7‑day free trial (Starter is $19/mo). Create an account and copy your key from the dashboard:
- Sign up: Register
- Skim the full parameter and field list: Documentation
Your requests must include X-API-Key: YOUR_API_KEY. If you prefer, you can instead send Authorization: Bearer YOUR_API_KEY.
Send your first RDW APK expiry request
We’ll use the official docs example plate K875HJ. Copy and run this curl as-is, replacing YOUR_API_KEY with your dashboard key.
cURL
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"}'
If the plate exists in RDW, you’ll get status: success and a data object with apk_expires and other attributes. If the plate is unknown, the response will use the error envelope with error.code set to not_found.
Read the official JSON response
Here’s the official sample response for K875HJ exactly as documented.
Official JSON
{
"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
}
}
Fields you’ll actually use for APK reminders and compliance
- status, source: Response envelope metadata. status is success on a good lookup; source is plate_nl.
- data.plate: The normalized Dutch plate (no dashes in the example).
- data.vin: Always null for Dutch plates. RDW does not publish VINs.
- data.apk_expires: The APK expiry date in ISO 8601 YYYY-MM-DD. Use this to drive reminders, compliance checks, and scheduling.
- data.first_registration: First registration date (YYYY-MM-DD). Useful for age-based eligibility rules.
- data.make, data.model, data.year: Basic identity fields for UI and filtering.
- data.body, data.vehicle_type: For categorization or insurance underwriting logic.
- data.engine.*: Cylinders (count), displacement_cc (cubic centimeters), and fuel (e.g., Benzine).
- data.mass_kg: Vehicle mass in kilograms.
- data.open_recall: Boolean for known open recalls in US datasets. Note that US safety data is US-market only; treat this as informational when present.
All dates are provided as calendar dates (no time component). Treat unknown or inapplicable items as null where applicable, and be prepared for nulls in future fields as RDW and related sources evolve.
Call the endpoint from your application
Below is a minimal Python example that posts a Dutch plate and reads apk_expires from the response envelope. It uses the same endpoint and parameters shown in the official curl above.
Python (requests) example
import os
import requests
API_KEY = os.getenv("VEHICLES_API_KEY", "YOUR_API_KEY")
URL = "https://vehicles-api.com/api/v1/plate/nl"
payload = {"plate": "K875HJ"} # Dashes optional: "K-875-HJ" also valid
headers = {
"X-API-Key": API_KEY,
"Content-Type": "application/json",
}
resp = requests.post(URL, json=payload, headers=headers, timeout=10)
data = resp.json()
if data.get("status") == "success":
src = data.get("source")
vehicle = data.get("data", {})
apk_expires = vehicle.get("apk_expires") # e.g., "2027-01-04"
print(f"Source: {src}, Plate: {vehicle.get('plate')}, APK Expires: {apk_expires}")
else:
err = data.get("error", {})
print(f"Lookup failed: code={err.get('code')} message={err.get('message')}")
Notes:
- Use a network timeout to avoid hanging requests.
- Read data only when status is success. For errors, inspect error.code and error.message.
- Store apk_expires as a date. Treat it as local Netherlands calendar dates; no time zone conversions are needed.
Coverage, data sources, and what not to expect
Vehicle API’s Dutch plate results are sourced from RDW open data. Because RDW does not publish VINs, vin is null for all Dutch plates. If you need a VIN for further decoding, you must collect it from the user or another system; the Dutch plate endpoint will not provide one.
Other Vehicle API datasets you may use alongside RDW data include:
- VIN decoding (NHTSA vPIC) for year, make, model, trim, engine, transmission, and assembly plant. This works worldwide, and coverage is fullest for US-market vehicles.
- US safety datasets (recall campaigns, owner complaints, NCAP crash ratings) matched by year, make, and model. These apply to US-market vehicles only.
If you’re building AI assistants or internal tools, you can also reach the same data via the MCP server. For REST, continue using the base URL at https://vehicles-api.com/api/v1. You can always return to vehicles-api.com for product updates.
Response envelope, errors, and nulls
Every response is wrapped in a consistent envelope to keep your integration predictable:
- On success: status, source, data
- On error: status, error.code, error.message
What to handle explicitly:
- not_found: If the plate isn’t recognized in RDW, you’ll see status: error with error.code set to not_found. This is not an HTTP 200 success case; check the JSON envelope before using data.
- Null fields: vin is always null for Dutch plates. Future fields may be null if not available from the source.
- Input normalization: Dashes are optional (K875HJ and K-875-HJ both work). You can accept either, then pass directly to the API.
For other error modes (e.g., auth or validation issues), the service will still use the error envelope with error.code and error.message so you can display actionable messages or trigger retries as appropriate. Refer to the Documentation for the latest list of error codes.
Rate limits, monthly quota, and reliability
Your monthly quota and rate limits depend on plan. The API is designed for production workloads like fleet reminders and dealer back-office tools; implement backoff and caching to operate well within your limits:
- Cache by plate: Cache successful lookups keyed by the normalized plate (e.g., K875HJ). RDW data is relatively stable; consider refreshing on a schedule appropriate for your use case (for APK, daily or weekly is typical).
- Conditional refresh: Re-query when your local record is near apk_expires or when first_registration-based logic changes.
- Retries: For transient network errors or 5xx responses, retry with exponential backoff. Avoid retrying error envelopes with not_found.
- Monitoring: Track success/error envelopes and surface error.code in logs and alerts.
Designing your APK workflow
Normalization and parsing
- Accept user input with or without dashes and uppercase the string. Send exactly what you receive; the API accepts both formats.
- Treat apk_expires and first_registration as dates in YYYY-MM-DD. No timezone arithmetic is required.
Scheduling and notifications
- Calculate lead windows (e.g., 30/14/7 days before apk_expires) and schedule reminders accordingly.
- Flag overdue vehicles when current_date > apk_expires; prevent assignment or trigger escalation as needed.
Data model considerations
- Store: plate, apk_expires, first_registration, make, model, year, body, vehicle_type, engine, mass_kg, open_recall, and a fetched_at timestamp.
- Remember vin is null for Dutch plates—do not design workflows that require VIN from this endpoint.
Testing and QA with real examples
Use the documented example request for deterministic results during initial wiring. Once your pipeline is reading apk_expires correctly, test with a sample of real Dutch plates from your user base to validate normalization, caching, and reminder logic. Avoid assuming that every vehicle has a recall or that every engine field will be populated beyond displacement_cc, cylinders, and fuel as shown.
Security and production readiness
- Secrets: Keep YOUR_API_KEY in a secure secret store or environment variable. Rotate it periodically per your policy.
- Transport: Use HTTPS only. The base URL is https://vehicles-api.com/api/v1.
- Least privilege: If using server-to-server calls, never expose your API key to the client. For AI agents, prefer server-side proxy calls or the MCP bridge when applicable.
- Observability: Emit structured logs with plate, status, error.code, latency, and cache hit/miss.
Going further with Vehicle API
Once APK expiry reminders are live, you can layer in VIN decoding for vehicles where you have a VIN (from your DMS, customer input, or OEM data). VIN decoding works worldwide, and coverage is fullest for US-market vehicles. US safety data (recalls, owner complaints, NCAP ratings) is also available, matched by year, make, and model, and applies to US-market vehicles only. Dutch plates will not include or reveal VIN via RDW; keep your Dutch plate flows VIN-optional.
Refer back to the Documentation for any schema updates and new fields as RDW and other sources publish fresh data.
FAQ
-
Does the Dutch plate lookup return a VIN?
No. RDW does not publish VINs. The vin field is always null for Dutch plates. If you need VIN decoding, collect a VIN separately and call the VIN endpoint instead.
-
What format is apk_expires?
It is a date string in YYYY-MM-DD, e.g., 2027-01-04. Treat it as a calendar date without a timezone or time-of-day component.
-
Will US recalls or ratings appear for Dutch plates?
US safety data is matched by make, model, and year for US-market vehicles only. Consider open_recall informational; do not assume coverage for non‑US markets.
-
What error should I expect for an unknown plate?
The service returns an error envelope with error.code set to not_found. Do not retry not_found; confirm the plate formatting or request a different plate.
-
How should I cache results?
Cache by normalized plate (e.g., K875HJ) along with a fetched_at timestamp. Refresh periodically or when near apk_expires. Avoid caching error envelopes for long durations.
Start your 7‑day free trial and ship APK reminders today. Create an account, copy your API key, and call the Dutch plate endpoint now: Register. For tooling and schema details, keep the Documentation open as you code.