Most used car dealer websites either don’t show MOT history at all, or show a static screenshot taken at the time of listing that goes out of date the moment an MOT test happens. Neither builds the buyer confidence that a transparent, live MOT history display does. The DVSA MOT History API makes it possible to show the complete official MOT record on every vehicle listing — automatically, live from the DVSA database, without anyone manually checking or updating anything.
What the buyer sees
On a vehicle listing page, the MOT history section shows the vehicle’s current MOT expiry date — clearly flagged as valid, expiring soon or expired. Below that, each MOT test appears as a card: pass or fail badge, test date, mileage recorded at test. Expanding any test shows the full detail — failure reasons, advisory notices, test station. A buyer looking at a 2019 Ford Focus can see at a glance: the car has passed every test, the last test had two advisories, mileage has been consistent, and the MOT expires in eight months. That’s the kind of transparency that builds trust and removes the most common buyer anxieties before they even ask.
How the integration works
When a visitor loads a vehicle listing page, a request goes to a server-side proxy on your website. The proxy authenticates with the DVSA API using OAuth 2.0 credentials, passes the vehicle’s registration number, and receives the full MOT history in response. The proxy handles authentication transparently — acquiring a Bearer token from Azure, caching it for 60 minutes, refreshing when it expires. The DVSA API key and OAuth credentials never appear in your site’s client-side code. Caching the DVSA response for 24 hours avoids API calls on every page view for popular listings.
What happens at listing creation
Two patterns are common. On-demand: the MOT lookup runs when a visitor views the listing. Pre-fetch: the inventory system triggers a DVSA lookup when a vehicle is added and stores the result. Pre-fetch is more resilient but requires database storage. On-demand is simpler and keeps data current. The right choice depends on your architecture and traffic volume.
Handling edge cases
No MOT history — new vehicles, exempt vehicles. Display should indicate clearly that no history is available. Expired MOT — should display the expiry date clearly, not hide it. Buyers notice if it’s missing. Imported vehicles — the integration returns whatever DVSA has on record.
What it doesn’t replace
DVSA MOT history covers MOT tests, advisories and mileage records. It doesn’t cover outstanding finance, written-off history, keeper changes or accident history. Most reputable dealers run a full vehicle history check alongside — see DVSA MOT API vs HPI check for the full comparison.
The integration is the Standard Lookup tier of the DVSA MOT API integration service — £895, built in 3–4 days. See exactly what it returns in the live MOT History demo. For the cost breakdown, see the integration cost post.
Related posts
Need a custom integration built?
I build custom API integrations — Stripe, Companies House and bespoke data pipelines. Reliable, well-documented, no agency overhead.
Discuss your project →
