# DVSA MOT History API reference

> 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…

Source: https://osinttools.io/apis/dvsa-mot-history/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/dvsa-mot-history/

- Base URL: https://history.mot.api.gov.uk
- Authentication: OAuth access token, sent as a bearer token. Get a key: https://documentation.history.mot.api.gov.uk/mot-history-api/register Also send the issued API key in the X-API-Key header; the token URL and client credentials are emailed after registration.
- Rate limits: 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.
- Vendor docs: https://documentation.history.mot.api.gov.uk/
- OpenAPI spec: https://documentation.history.mot.api.gov.uk/mot-history-api/api-specification/mot_history_open_api_specification.yml

## Overview

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.

## Errors

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

## Vehicle MOT history

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

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

- Footprint: 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).

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `registration` | path | string | yes | Registration number of the vehicle Example: AA51AAA |

Response fields:

- `registration` (string): Registration number of the vehicle
- `make` (string): Vehicle manufacturer
- `model` (string): Vehicle model
- `firstUsedDate` (string): Date first used (YYYY-MM-DD)
- `fuelType` (string): Type of fuel
- `primaryColour` (string): Primary colour
- `registrationDate` (string): Date first registered (YYYY-MM-DD)
- `manufactureDate` (string): Date manufactured (YYYY-MM-DD)
- `engineSize` (string): Engine capacity in cc
- `hasOutstandingRecall` (string): Yes, No, Unknown or Unavailable
- `motTests[].completedDate` (string): Date-time the test was completed
- `motTests[].testResult` (string): PASSED or FAILED
- `motTests[].expiryDate` (string): Date the MOT expires (YYYY-MM-DD)
- `motTests[].odometerValue` (string): Odometer reading, if read
- `motTests[].odometerUnit` (string): MI or KM
- `motTests[].odometerResultType` (string): READ, UNREADABLE or NO_ODOMETER
- `motTests[].motTestNumber` (string): MOT test number
- `motTests[].dataSource` (string): DVSA, DVA NI or CVS
- `motTests[].defects[].text` (string): Description of the defect
- `motTests[].defects[].type` (string): ADVISORY, DANGEROUS, FAIL, MAJOR, MINOR and other types
- `motTests[].defects[].dangerous` (boolean): Whether the defect is dangerous

```bash
curl 'https://history.mot.api.gov.uk/v1/trade/vehicles/registration/AA51AAA' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "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
        }
      ]
    }
  ]
}
```

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

`GET /v1/trade/vehicles/vin/{vin}`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `vin` | path | string | yes | Vehicle identification number Example: 1N4G7TCF1A9895216 |

Response fields:

- `registration` (string): Registration number of the vehicle
- `make` (string): Vehicle manufacturer
- `model` (string): Vehicle model
- `hasOutstandingRecall` (string): Yes, No, Unknown or Unavailable
- `motTests[].completedDate` (string): Date-time the test was completed
- `motTests[].testResult` (string): PASSED or FAILED
- `motTests[].odometerValue` (string): Odometer reading, if read
- `motTests[].odometerUnit` (string): MI or KM

```bash
curl 'https://history.mot.api.gov.uk/v1/trade/vehicles/vin/1N4G7TCF1A9895216' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "registration": "AA51AAA",
  "make": "Ford",
  "model": "Focus",
  "hasOutstandingRecall": "No",
  "motTests": [
    {
      "completedDate": "2023-02-17T09:17:46.000Z",
      "testResult": "PASSED",
      "odometerValue": "50000",
      "odometerUnit": "MI"
    }
  ]
}
```

## Bulk data

### Get file details and presigned URLs to download MOT history data in bulk.

`GET /v1/trade/vehicles/bulk-download`

- Footprint: 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:

- `bulk[].filename` (string): Name of the file
- `bulk[].downloadUrl` (string): Presigned URL, valid for 5 minutes
- `bulk[].fileSize` (number): File size in bytes
- `bulk[].fileCreatedOn` (string): Date the file was created (YYYY-MM-DD)
- `delta[].filename` (string): Name of a delta file
- `delta[].downloadUrl` (string): Presigned URL for the delta file
- `delta[].fileSize` (number): File size in bytes
- `delta[].fileCreatedOn` (string): Date the file was created

```bash
curl 'https://history.mot.api.gov.uk/v1/trade/vehicles/bulk-download' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "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"
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
