About Services Tools Blog Contact us

Vehicle Test History and Garage

Looks up a registration and shows the vehicle's identity and past test results. A signed-in garage remembers each vehicle and its expiry.

  • Web Tools
  • Automotive services
  • Website
  • Product
  • Cloud
  • 2026

The problem

Mileage and vehicle details are hard to check without the official test history. And a household with more than one vehicle loses track of which test expires when.

What it does

You enter a registration, which is checked and sent to the government's MOT history service (DVSA). It returns make, model, colour and each test as pass or fail with the mileage, newest first. A signed-in driver can save that registration to a garage. Adding a plate rejects duplicates and fills make, colour and expiry from the stored history.

Outcomes

  • Vehicle details and past tests appear from one registration.
  • An unknown plate returns a plain "not found" message and not an empty table.
  • A driver can keep several vehicles and see which expiry is next.

Simplified mockup

Interactive preview with sample data. Nothing is sent to a server.

Test history lookup

Registration
GB
Try a plate
Last hour: KN67 PLM from the token cache, ZX99 ZZZ missed.
Feed request
Ready for a plate

Pembroke garage

2 vehicles
Signed in as Ruth Pembroke. Rows belong to this driver. Removing one leaves every other garage untouched.
Saved vehicles
PlateVehicleExpiry
GB KN67 PLM Plover Estate Deep green 4 Nov 2026 25 days
GB YK21 RDT Marrow Panel White 19 Jan 2027

History feed

Lookups today
0
From token cache
0
Misses
0
Lookups this week
Recent calls Token cached
TimePlateResult
08:14AB12 CDE200 · identity and 3 tests
07:41KN67 PLM200 · served from the token cache
07:12ZX99 ZZZ404 miss
06:55YK21 RDT200 · identity and 2 tests

How it works

  1. Collect a registration and a Google reCAPTCHA check.
  2. Request the vehicle from the DVSA MOT history service and keep its login pass for reuse.
  3. List the vehicle details and each test with its result and mileage.
  4. Show a clear message when the service does not know the plate.
  5. Save the plate against the signed-in user in their garage.
  6. Delete only that user's entry when a vehicle is removed.

Pipeline

flowchart LR
  A[Registration] --> B[DVSA]
  B --> C{Known?}
  C -->|Yes| D[Identity and tests]
  C -->|No| E[Not found]
  D --> F[Save to garage]
  F --> G[Expiry list]