Tyche Labs data APIs

MOT history API: tests, advisories and mileage

Every MOT test in Great Britain since 2005 is available through the DVSA MOT History API. Here is what it returns, how to access it, and how to read mileage from it.

Part of our Vehicle APIs.

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.tychelabs.net/v1/vehicles/AB12CDE \
  -H "x-api-key: $TYCHE_API_KEY"

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.

MOT history without the OAuth set-up

One key, one call, MOT tests plus DVLA data and mileage checks. 100 free lookups a month.