What the DVSA MOT History API returns
For a registration, the API returns make, model, fuel type, colour, registration and manufacture dates, engine size, an outstanding-recall indicator and a list of MOT tests. Each test has a completed date, result, expiry date, odometer value, unit and read status, test number and a list of defects typed as advisory, minor, major, dangerous, fail or user entered. Vehicles too new for an MOT return a first due date instead.
Access
You register through a GOV.UK form and DVSA reviews applications within about five working days. The current API uses OAuth 2.0 client credentials (a token from Microsoft Entra ID) plus an API key on every request. Default limits are 15 requests a second and 500,000 a day. If you used the older MOT history API you need to register again.
GET https://history.mot.api.gov.uk/v1/trade/vehicles/registration/AB12CDE
Authorization: Bearer <token>
X-API-Key: <your DVSA key>
Reading mileage from MOT history
Odometer readings are strings, in miles or kilometres, and some tests record "unreadable" or "no odometer". To build a mileage history, keep only readings marked as read, convert kilometres, and keep one reading per day (retests on the same day repeat it). A reading that falls below an earlier one can indicate clocking, a replaced instrument cluster or a typing error at the test.
MOT history with mileage checks, in one call
Our vehicle API does this for you: tests newest first, defects typed consistently, mileage converted to miles with anomaly flags, plus the DVLA record and an estimated ULEZ status.
curl https://api.vardic.dev/v1/vehicles/AB12CDE \
-H "x-api-key: $VARDIC_API_KEY"const res = await fetch("https://api.vardic.dev/v1/vehicles/AB12CDE", {
headers: { "x-api-key": process.env.VARDIC_API_KEY },
});
const { data, meta } = await res.json();
console.log(data.make, data.model); // FORD FIESTA
console.log(data.mot.expiryDate); // 2026-12-10
console.log(data.cleanAirZone.result); // likely_compliant (an estimate)
console.log(data.mileage.anomalyFound); // falseimport os, requests
r = requests.get(
"https://api.vardic.dev/v1/vehicles/AB12CDE",
headers={"x-api-key": os.environ["VARDIC_API_KEY"]},
timeout=10,
)
r.raise_for_status()
v = r.json()["data"]
print(v["make"], v["model"]) # FORD FIESTA
print(v["tax"]["status"], v["tax"]["dueDate"])
print(v["mileage"]["anomalyFound"]) # FalseDefect types
| Type | What it means |
|---|---|
| Dangerous | An immediate risk to road safety or the environment. The vehicle fails and should not be driven. |
| Major | Could affect safety or the environment. The vehicle fails. |
| Minor | No significant effect on safety. The vehicle passes, and the defect is recorded. |
| Advisory | Something to monitor or repair. The vehicle passes. |
| PRS | Pass after rectification: a defect fixed at the test centre within an hour of the test. |
Our vehicle lookup returns each defect with a consistent type, the DVSA text, and a count per type for every test, newest test first.
Mileage checks from MOT history
Each test carries an odometer reading. We keep readings that were read, convert kilometres to miles, keep one reading per day, and flag when a reading falls below an earlier one, with the size of the drop and both dates. The average miles a year comes from the first and latest readings.
"mileage": {
"latest": { "date": "2026-01-15", "miles": 118400 },
"averageMilesPerYear": 7036,
"anomalyFound": true,
"anomalies": [{ "type": "reading_went_down", "differenceMiles": 8150,
"from": { "date": "2024-01-12", "miles": 104250 }, "to": { "date": "2025-01-10", "miles": 96100 } }]
}
Each lookup includes the DVLA record and the full MOT history: 2.95p a lookup on Starter (£59 a month), down to 1.8p a lookup on Scale (£899 a month). Per-call APIs often price the DVLA record, the MOT history and the mileage as separate calls, from about 2p each; here they are one lookup.
Try it with the sandbox key
Send a real request from this page with the public sandbox key.
// The response appears here.Common questions
Is the MOT history API free?
DVSA does not charge for the MOT History API, but access requires an approved registration.
Does MOT history include Northern Ireland?
The DVSA API includes tests where DVSA holds the record; the dataSource field shows where a test came from.
How far back does MOT history go?
Computerised MOT records start in 2005.
Next: Vehicle lookup on the vehicle page, with prices and the full response.
Sources
- DVSA MOT History API: authentication
- DVSA MOT History API: rate limits
- GOV.UK: MOT inspection manual defect categories
Checked 25 November 2026.