The DVLA Vehicle Enquiry API is a RESTful service that provides vehicle details of a specified vehicle. It uses the vehicle registration number as input to search and provide details of the vehicle.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The UK gov Vehicle Enquiry API provides a range of data relating to vehicles
registered in the UK such as MOT, tax and driver & vehicle licence information.
With this API, developers can create tools and applications that allow the user
to search, store and retrieve vehicle-related data.
Using this comprehensive API, developers can build all sorts of powerful
applications and services which can be used to simplify the process of
determining the ownership of a vehicle, identify vehicle tax and MOT history,
check vehicle compatibility for renting or leasing, and validate customer
payment details, to name a few.
Here are some of the many things developers can build with the UK gov Vehicle
Enquiry API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
uk_gov_vehecle_enquiry_api: {
type: "app",
app: "uk_gov_vehecle_enquiry_api",
}
},
async run({steps, $}) {
const data = {
"registrationNumber": `{enter_registration_number_here}`,
}
return await axios($, {
method: "post",
url: `https://driver-vehicle-licensing.api.gov.uk/vehicle-enquiry/v1/vehicles`,
headers: {
"x-api-key": `${this.uk_gov_vehecle_enquiry_api.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})