API integration · Guide
How to Display MOT History on a Used Car Dealer Website
By Paul Walsh Updated 4 min read
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.
Making the most of it on a listing
Lead with the reassurance. Put "MOT valid until" and the number of passes near the top of the listing, next to the price. That's what buyers scan for. The full test-by-test history can sit lower down for the people who want it.
Show the mileage trend. Mileage is recorded at every test, so the listing can show a simple line of readings over the years. A steady climb is one of the most reassuring things a buyer can see, and it answers "has this been clocked?" before they ask.
Explain advisories honestly. Advisories aren't failures, but buyers don't always know that. A short line explaining what an advisory means, and whether it's been dealt with, turns a worry into a sign of transparency.
Add tax status from the DVLA. The DVSA record doesn't include road tax. Adding a call to the DVLA Vehicle Enquiry API shows current tax status alongside the MOT history from the same registration, so the listing is complete.
Keeping it fast
Vehicle listing pages need to load quickly, especially on phones. The MOT data is fetched on the server and cached, so a popular listing doesn't call the DVSA on every view, and a slow response from the DVSA never holds up the page. If the DVSA is briefly unavailable, the listing shows the last cached result rather than an error.
Does it help with Google?
Indirectly, yes. Detailed, unique listing pages give Google more to work with than a bare photo gallery and a price, and the time buyers spend reading the history is a good sign that the page is useful. The main benefit, though, is with buyers: a dealer who shows the official record without being asked looks like a dealer with nothing to hide.
Related posts
About Paul Walsh
Developer based in Blackburn with 25+ years in electronics and tech. I've run online businesses of my own, and now build and fix websites for small businesses across the UK.