RDW APK Expiry Data API

By Vehicle API
RDW APK Expiry Data API

You need to surface the APK (periodic inspection) expiration date for Dutch license plates so you can schedule service, enforce compliance, and notify drivers before expiry. By the end of this guide, you’ll query RDW plate data from Vehicle API, read the apk_expires field, handle nulls and errors, cache results, and ship it in production.

What you get from the RDW APK expiry lookup

This endpoint returns Dutch RDW open data for a given kenteken (license plate). The key field you’ll use is apk_expires, the date the current APK certificate expires. You also receive useful context like first registration date, mass, number of doors and seats, fuel type, and an open_recall boolean (based on US recall data matched by make, model, and year).

Illustration: RDW APK Expiry Data API
  • apk_expires: The date the inspection expires (YYYY-MM-DD). Use this for reminders, compliance dashboards, and blocking overdue vehicles.
  • vin: Always null for Dutch plates. RDW does not publish VINs, so do not expect a VIN from this endpoint.
  • Coverage notes:
    • VIN decoding works worldwide and is fullest for US-market vehicles (via NHTSA vPIC).
    • Recalls, owner complaints, and NCAP crash ratings are US-market only and matched by make + model + year.
    • Dutch plates are from RDW open data and never include a VIN.
    • This is not a vehicle history report (no title, accident, or ownership history).

Vehicle API is available as a JSON REST API at https://vehicles-api.com/api/v1 and as an MCP server for agents at MCP.

Endpoint and authentication

Use the plate lookup endpoint for the Netherlands:

POST https://vehicles-api.com/api/v1/plate/nl

Authentication:

  • Header: X-API-Key: YOUR_API_KEY
  • Alternatively: Authorization: Bearer YOUR_API_KEY

Request body:

  • JSON with a single key plate. Dashes are optional; for example K875HJ and K-875-HJ both work.

Response envelope:

  • On success: { "status": "success", "source": "plate_nl", "data": { ... } }
  • On error: { "status": "error", "error": { "code": "...", "message": "..." } }

Unknown plate returns HTTP 404 with error.code of not_found.

Base URL and docs:

  • REST: https://vehicles-api.com/api/v1
  • Learn more in the Documentation

cURL: RDW APK expiry for K875HJ

Copy and run this exact example to see the envelope and fields you’ll parse in production:

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"}'

Official JSON response and field guide

{
    "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 use most often:

  • status: "success" on a successful lookup. Always check this before parsing data.
  • source: "plate_nl" identifies RDW plate data. Useful for analytics or routing.
  • data.plate: Canonicalized plate string. Store what you sent and what you got back for debugging.
  • data.vin: Always null for Dutch plates because RDW does not publish VINs. Do not rely on VIN being present.
  • data.apk_expires: "2027-01-04" is the APK expiry date. Treat it as a date string in YYYY-MM-DD.
  • data.first_registration: First registration date in YYYY-MM-DD. Helpful for age-based policies.
  • data.open_recall: Boolean. US-market recall coverage only, matched by make + model + year. Not all Dutch-market vehicles will have recall data.
  • data.engine, data.mass_kg, data.seats, data.doors, data.vehicle_type: Operational context for fleet capacity, pricing, and filtering.

Date handling:

  • Dates are in YYYY-MM-DD. Treat them as local calendar dates with no time component.
  • Expiry logic: A vehicle is compliant if today <= apk_expires; overdue if today > apk_expires.

Python example: retrieve apk_expires and schedule a reminder

This snippet posts a Dutch plate, reads apk_expires, and demonstrates basic error and null handling. It uses the same endpoint and example plate.

import os
import requests
from datetime import date, timedelta

API_KEY = os.getenv("VEHICLES_API_KEY", "YOUR_API_KEY")
URL = "https://vehicles-api.com/api/v1/plate/nl"

def lookup_apk_expiry(plate: str):
headers = {
"X-API-Key": API_KEY,
"Content-Type": "application/json",
}
resp = requests.post(URL, headers=headers, json={"plate": plate})
# Handle non-2xx, including 404 not_found
if not resp.ok:
try:
err = resp.json().get("error", {})
code = err.get("code", str(resp.status_code))
msg = err.get("message", "request failed")
except Exception:
code, msg = str(resp.status_code), resp.text
raise RuntimeError(f"lookup failed: {code}: {msg}")
body = resp.json()
if body.get("status") != "success":
err = body.get("error", {})
raise RuntimeError(f"api error: {err.get('code')}: {err.get('message')}")
data = body.get("data", {})
# vin is always null for RDW; do not depend on it
return {
"plate": data.get("plate"),
"apk_expires": data.get("apk_expires"), # e.g. "2027-01-04"
"first_registration": data.get("first_registration"),
"open_recall": data.get("open_recall"),
}

def compute_reminder_days(apk_expires: str, days_before: int = 30):
# Basic YYYY-MM-DD parsing without external libs
y, m, d = map(int, apk_expires.split("-"))
expiry = date(y, m, d)
reminder = expiry - timedelta(days=days_before)
return {
"expiry": expiry.isoformat(),
"reminder_on": reminder.isoformat(),
"overdue": date.today() > expiry,
}

if __name__ == "__main__":
result = lookup_apk_expiry("K875HJ")
apk = result.get("apk_expires")
if not apk:
print("APK expiry is unavailable for this plate (check RDW data).")
else:
info = compute_reminder_days(apk, days_before=30)
print({
"plate": result.get("plate"),
"apk_expires": info["expiry"],
"reminder_on": info["reminder_on"],
"overdue": info["overdue"],
})

Request and response details you’ll care about

Request body

  • plate: String. Dashes optional (K875HJ or K-875-HJ). Case-insensitive input; Vehicle API returns a normalized plate.

Response envelope

  • status: "success" or "error". Always check this first.
  • source: "plate_nl" so you can route by source if you also use VIN decode or other endpoints.
  • data: Present only on success. Contains RDW-derived attributes including apk_expires.
  • error: Present only on error. Includes code and message.

Nulls and absence

  • vin: Always null for RDW plates. RDW does not publish it. If you need build-level specs, you can attempt a separate VIN decode only when you have a VIN from your own systems.
  • apk_expires: Usually present; if missing in RDW source for rare cases, treat as unknown and fall back to manual verification.
  • open_recall: Boolean. If US data doesn’t map to the make-model-year, expect false or absence depending on availability; do not assume Dutch-market recall coverage.

Error handling

  • 404 not_found: Unknown plate. Present as HTTP 404 with status: "error" and error.code: "not_found".
  • Other errors: You may see validation or server errors under the error envelope. Don’t parse fields when status is error.
  • Retries: Only retry idempotent failures. Avoid retrying 4xx; review input normalization.

Caching and normalization for production

APK expiry doesn’t change frequently, but fleets still need up-to-date dates after inspections. Use a caching policy that balances freshness and cost.

  • Normalization: Normalize incoming plates by stripping dashes and uppercasing before caching keys. Store the API’s canonical data.plate too.
  • Revalidation: For vehicles nearing expiry (e.g., within 60 days), refresh more often (e.g., daily). For vehicles with far-future expiry dates, refresh weekly or monthly.
  • Cache key: nl:{normalized_plate}. Cache the entire data object plus a fetched_at timestamp for audit trails.
  • Null safety: Cache nulls (e.g., vin: null) to avoid repeated lookups expecting a VIN that RDW won’t supply.

Using the data in dealer, marketplace, fleet, and insurance workflows

  • Dealer DMS/CRM: Display apk_expires and auto-create a service task 30 days before expiry. Block appointment dates after expiry unless inspection is scheduled.
  • Marketplaces: Flag listings where apk_expires is within X days. Educate sellers on renewing APK to improve conversion.
  • Fleet platforms: Enforce policy—disable dispatch when today > apk_expires. Feed to compliance reports and export weekly snapshots.
  • Insurance: Bind or renew policies only if apk_expires is current; set automated notices to policyholders before the cut-off.

Because RDW doesn’t expose VINs, use plate-based identity in your Dutch flows. If your system stores VINs from other sources, treat VIN and RDW plate records as separate identifiers linked internally.

MCP server for AI agents

If you’re building an agent that needs APK expiry dates conversationally or via tools, Vehicle API also runs as an MCP server: MCP. The agent can call the same plate lookup capability and extract apk_expires to plan reminders or validate compliance inside a broader workflow.

Quotas, rate limits, and operations

  • Plans and trial: Starter is $19/month and every plan includes a 7‑day free trial. Use the trial to validate your caching strategy and integration assumptions.
  • Quotas and rate limits: Limits apply per plan. If you expect spikes (e.g., nightly compliance checks), batch and space requests. Review the Documentation for the latest limits and recommended backoff behavior.
  • Monitoring: Log status, source, HTTP status codes, and latency. Alert on rising 4xx/5xx rates and on stale cache ratios for near-expiry vehicles.
  • Idempotency: Plate lookups are read-only. If you implement retries, prefer safe retries for transient network/server issues.

Quality notes and coverage boundaries

  • RDW plates never include VINs via this API. Avoid UX that promises a VIN from a Dutch plate.
  • VIN decoding coverage is worldwide but most complete for US-market vehicles (via NHTSA vPIC). That’s separate from this plate endpoint.
  • Recalls, owner complaints, and NCAP crash ratings are US-market only and matched by make, model, year. They are not Dutch recall data.
  • This is not a vehicle history report. You will not receive title, accident, or ownership history.

Testing checklist

  • Happy path: Verify apk_expires parses as a date and drives reminder logic.
  • Unknown plate: Simulate a 404 to confirm you don’t create empty vehicles in your DB.
  • Null VIN: Confirm downstream code does not assume VIN exists when integrating across systems.
  • Cache refresh: Validate that near-expiry vehicles refresh more frequently than far-future ones.
  • Alerting: Add alerts for overdue vehicles and for API error spikes.

Security and compliance

  • Store API keys securely and rotate per environment. Both X-API-Key and Authorization: Bearer headers are supported.
  • Log only non-sensitive fields. Avoid storing raw HTTP error bodies in customer-facing logs.
  • Respect local compliance: APK is a regulatory requirement—ensure your reminders and blocks align with operational policy.

Common integration pitfalls

  • Assuming a VIN exists for Dutch plates: It will always be null from RDW data.
  • Timezone confusion: Treat apk_expires as a date without a time component. Evaluate against local date.
  • Plate formatting: Users often enter dashes and mixed case. Normalize before caching and searching.
  • Over-retrying 404s: If a plate is not found, don’t retry in a loop. Surface a clear validation error to users.

FAQ

Does the RDW plate lookup return a VIN?
No. RDW does not publish VINs via this dataset, so vin is always null.

What format is apk_expires in?
A date string in YYYY-MM-DD. Treat it as a calendar date without time or timezone.

Are recalls specific to the Netherlands?
No. Recall coverage is US-market only, matched by make + model + year. Dutch-market recall data is not included.

What happens if the plate is unknown?
You will receive HTTP 404 with status: "error" and error.code: "not_found". Do not retry; prompt the user to verify the plate.

Is this a vehicle history report?
No. There is no title, accident, or ownership history in this API.

Start integrating the APK expiry field today. Every plan has a 7‑day free trial—create your key and ship your first reminder job now: Register. For more details about endpoints and envelopes, see the Documentation and explore the MCP server for agent integrations at MCP.

Keep reading