Skip to content
OSINTtools.io

DVSA MOT History API

UK government service that shows the MOT test history of a vehicle by registration: results, mileage, failures and advisories.

Base URL
https://history.mot.api.gov.uk
Sign-in
OAuth
Format
REST, Bulk files
Endpoints
3

Compiled by OSINTtools.io editors from documentation.history.mot.api.gov.uk · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The DVSA MOT history API returns the MOT test history and basic vehicle details (make, model, fuel type, colour, dates, outstanding recall status) for a vehicle looked up by registration number or vehicle identification number. It covers cars, motorcycles and vans in Great Britain since 2005 and Northern Ireland since 2017, and HGVs, trailers, buses and coaches in Great Britain since 2018 and Northern Ireland since 2017. Test results include odometer readings and defects. An investigator can use it to check a vehicle's history and mileage trail.

The API is REST and returns JSON. Registration is required through the DVSA. Every request needs two things: an OAuth 2.0 client-credentials access token from Microsoft Entra ID (sent as Authorization: Bearer ..., valid 60 minutes) and the issued API key in an X-API-Key header. A key not used for 90 days is revoked. Client secrets expire every 2 years.

The docs state a quota of 500,000 requests a day, a burst of 10 requests per second and an average of 15 requests per second. Exceeding the daily quota restricts the key for 24 hours. A bulk download endpoint gives presigned file URLs; the credentials renewal endpoint (PUT /v1/trade/credentials) is left out here.

Quick start

  1. Get a key

    Create an account with DVSA MOT History and copy your oauth. Where to get it

  2. Make your first request

    Get a vehicle's details and MOT tests by registration number.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://history.mot.api.gov.uk/v1/trade/vehicles/registration/AA51AAA' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this, shortened.

    {
      "registration": "AA51AAA",
      "make": "Ford",
      "model": "Focus",
      "firstUsedDate": "2015-03-01",
      "fuelType": "Petrol",
      "primaryColour": "Silver",
      "registrationDate": "2015-03-01",
      "manufactureDate": "2015-02-01",
      "engineSize": "1598",
      "hasOutstandingRecall": "No",
      "motTests": [
        {
          "completedDate": "2023-02-17T09:17:46.000Z",
          "testResult": "PASSED",
          "expiryDate": "2024-02-16",
          "odometerValue": "50000",
          "odometerUnit": "MI",
          "odometerResultType": "READ",
          "motTestNumber": "123456789012",
          "dataSource": "DVSA",
          "defects": [
            {
              "text": "Example advisory text",
    …

Authentication

OAuth: your app gets an access token from DVSA MOT History and sends it as a bearer token. See the vendor's docs for the flow.

Also send the issued API key in the X-API-Key header; the token URL and client credentials are emailed after registration.

Get a key from DVSA MOT History

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Quota 500000 requests a day; burst 10 requests per second; average 15 requests per second. Exceeding gives 429 and a 24 hour restriction for the daily quota.

Errors

StatusMeaning
400The format of the request is incorrect (for example MOTH-BR-01, MOTH-IV-03 invalid registration)
401Authorisation failed (MOTH-UA-01)
403No permission, expired access token, unrecognised API key or missing token (MOTH-FB-01 to MOTH-FB-04)
404Vehicle or URL not found (MOTH-NF-01, MOTH-NF-02)
429Daily allowance exceeded (MOTH-RL-01) or too many requests in a short time (MOTH-RL-02)
500Unexpected error (MOTH-UN-01)

Vehicle MOT history

Get a vehicle's details and MOT tests by registration number.

GET/v1/trade/vehicles/registration/{registration}

  • Passive: the target is not contacted

Returns either a vehicle with MOT tests or, for a newly registered vehicle, the vehicle with the date its first MOT is due. Test records differ slightly by source (DVSA, DVA NI, CVS).

Path parameters

registrationstringrequired

Registration number of the vehicle

Example: AA51AAA
Response fields · 21Show

registrationstring

Registration number of the vehicle

makestring

Vehicle manufacturer

modelstring

Vehicle model

firstUsedDatestring

Date first used (YYYY-MM-DD)

fuelTypestring

Type of fuel

primaryColourstring

Primary colour

registrationDatestring

Date first registered (YYYY-MM-DD)

manufactureDatestring

Date manufactured (YYYY-MM-DD)

engineSizestring

Engine capacity in cc

hasOutstandingRecallstring

Yes, No, Unknown or Unavailable

completedDatestring

Date-time the test was completed

testResultstring

PASSED or FAILED

expiryDatestring

Date the MOT expires (YYYY-MM-DD)

odometerValuestring

Odometer reading, if read

odometerUnitstring

MI or KM

odometerResultTypestring

READ, UNREADABLE or NO_ODOMETER

motTestNumberstring

MOT test number

dataSourcestring

DVSA, DVA NI or CVS

textstring

Description of the defect

typestring

ADVISORY, DANGEROUS, FAIL, MAJOR, MINOR and other types

dangerousboolean

Whether the defect is dangerous

curl 'https://history.mot.api.gov.uk/v1/trade/vehicles/registration/AA51AAA' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "registration": "AA51AAA",
  "make": "Ford",
  "model": "Focus",
  "firstUsedDate": "2015-03-01",
  "fuelType": "Petrol",
  "primaryColour": "Silver",
  "registrationDate": "2015-03-01",
  "manufactureDate": "2015-02-01",
  "engineSize": "1598",
  "hasOutstandingRecall": "No",
  "motTests": [
    {
      "completedDate": "2023-02-17T09:17:46.000Z",
      "testResult": "PASSED",
      "expiryDate": "2024-02-16",
      "odometerValue": "50000",
      "odometerUnit": "MI",
      "odometerResultType": "READ",
      "motTestNumber": "123456789012",
      "dataSource": "DVSA",
      "defects": [
        {
          "text": "Example advisory text",
          "type": "ADVISORY",
          "dangerous": false
        }
      ]
    }
  ]
}
  • Passive: the target is not contacted

Same response as the registration lookup. A VIN is usually 17 alphanumeric characters.

Path parameters

vinstringrequired

Vehicle identification number

Example: 1N4G7TCF1A9895216
Response fields · 8Show

registrationstring

Registration number of the vehicle

makestring

Vehicle manufacturer

modelstring

Vehicle model

hasOutstandingRecallstring

Yes, No, Unknown or Unavailable

completedDatestring

Date-time the test was completed

testResultstring

PASSED or FAILED

odometerValuestring

Odometer reading, if read

odometerUnitstring

MI or KM

curl 'https://history.mot.api.gov.uk/v1/trade/vehicles/vin/1N4G7TCF1A9895216' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "registration": "AA51AAA",
  "make": "Ford",
  "model": "Focus",
  "hasOutstandingRecall": "No",
  "motTests": [
    {
      "completedDate": "2023-02-17T09:17:46.000Z",
      "testResult": "PASSED",
      "odometerValue": "50000",
      "odometerUnit": "MI"
    }
  ]
}

Bulk data

  • Passive: the target is not contacted

Download URLs are valid for 5 minutes and point to .gz files that contain at least one other .gz file. The endpoint does not yet hold full details for heavy vehicles.

Response fields · 8Show

filenamestring

Name of the file

downloadUrlstring

Presigned URL, valid for 5 minutes

fileSizenumber

File size in bytes

fileCreatedOnstring

Date the file was created (YYYY-MM-DD)

filenamestring

Name of a delta file

downloadUrlstring

Presigned URL for the delta file

fileSizenumber

File size in bytes

fileCreatedOnstring

Date the file was created

curl 'https://history.mot.api.gov.uk/v1/trade/vehicles/bulk-download' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "bulk": [
    {
      "filename": "bulk-example.gz",
      "downloadUrl": "https://example.com/bulk-example.gz",
      "fileSize": 1000000,
      "fileCreatedOn": "2024-01-01"
    }
  ],
  "delta": [
    {
      "filename": "delta-example.gz",
      "downloadUrl": "https://example.com/delta-example.gz",
      "fileSize": 50000,
      "fileCreatedOn": "2024-01-02"
    }
  ]
}