Vehicle Enquiry API
api · Data
Interface specification for the DVLA Vehicle Enquiry API
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
POST
Get vehicle details by registration number
Returns vehicle details based on registration number
https://api.apis.guru/v2/specs/api.gov.uk/vehicle-enquiry/1.1.0/v1/vehicles
Hover any highlighted part to learn what it does
Headers — extra info sent with the request
| x-api-key | example |
curl -X POST "https://api.apis.guru/v2/specs/api.gov.uk/vehicle-enquiry/1.1.0/v1/vehicles" \ -H "x-api-key: example"
import requests
headers = {
"x-api-key": "example"
}
response = requests.post(
"https://api.apis.guru/v2/specs/api.gov.uk/vehicle-enquiry/1.1.0/v1/vehicles",
headers=headers,
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/api.gov.uk/vehicle-enquiry/1.1.0/v1/vehicles';
const response = await fetch(url, {
method: 'POST',
headers: {
'x-api-key': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/api.gov.uk/vehicle-enquiry/1.1.0/v1/vehicles"
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("x-api-key", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/api.gov.uk/vehicle-enquiry/1.1.0/v1/vehicles")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["x-api-key"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/api.gov.uk/vehicle-enquiry/1.1.0/v1/vehicles";
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"x-api-key: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Vehicle Enquiry API?
Vehicle Enquiry API is a Data API. Developers commonly use data APIs for:
- enriching your app with third-party datasets
- building data pipelines and ETL workflows
- querying and searching large datasets
- powering research, analysis, and reporting tools
- syncing reference data into your own systems
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Vehicle Enquiry API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide