How to Get Free DVLA VES & DVSA MOT History API Keys for WordPress
Did you know UK garages, mechanics, and web agencies don't need to pay 10p per vehicle lookup to third-party data resellers? Both the DVLA and DVSA provide free official UK Government APIs under the Open Government Licence v3.0.
Here is the exact difference between the two APIs and how to apply for both in under 5 minutes.
Why You Want Both APIs Together
- DVLA Vehicle Enquiry Service (VES) API: Returns Make, Year of Manufacture, Fuel Type, Engine Size (cc), Colour, Tax Status, Tax Due Date, and MOT Status. Note: DVLA VES does not return the Model name (e.g. it returns
FORD, notFORD TRANSIT CUSTOM). - DVSA MOT History API: Returns Exact Model Name, MOT Expiry Date, Odometer / Mileage History, Past Fails, and Latest MOT Advisories.
RegPilot automatically merges both responses into one clean vehicle card and caches each plate in WordPress transients for 24 hours so repeat lookups are instant.
Part 1: Apply for Your Free DVLA VES API Key
- Visit the official DVLA API Developer Portal and submit an access request.
- Describe your legitimate business use clearly (e.g., "Online MOT and vehicle servicing enquiry form for our independent UK garage website; transactional customer lookups only, no bulk harvesting").
- Approval usually arrives by email within a few working days with your
x-api-key. - Paste it into Settings → RegPilot → DVLA API Key.
Part 2: Apply for Your Free DVSA MOT History API (OAuth 2.0 / Entra ID)
- Complete the official DVSA MOT Trade API Registration Form.
- Once approved, DVSA emails you 4 credentials: Client ID, Client Secret, Tenant ID, and API Key (X-API-Key) (plus Scope URL
https://tapi.dvsa.gov.uk/.default). - Normally, developers have to build a custom Microsoft Entra ID OAuth 2.0 token fetcher and refresh the 60-minute Bearer token every hour. RegPilot handles all Entra ID OAuth 2.0 token requests and 55-minute caching automatically—just paste the 4 fields under Settings → RegPilot and click Run Test.
Important GOV.UK Rules to Remember
- Each business/garage should apply for its own free DVLA/DVSA credentials (one DVLA key per company).
- Never use official GOV.UK APIs to bulk-scrape or resell raw vehicle databases.
- DVSA revokes API keys that go unused for 90 consecutive days—active garage websites keep the key alive naturally.