Connect Wix to DVLA Vehicle Enquiry API

Hi, I’m really really stuck and have no idea what to do as I cannot find anything which helps online

I’ve got the DVLA API & key (and put the key into the ‘secret manager’ part of wix) and i’ve created a form in which a user puts their personal info in and then puts their reg number in and then when they click submit I would like it to fetch the vehicle info from the DVLA API & confirm their vehicle to them saying for example: “is this your vehicle?” and return their car colour, model, make, year etc.

The problem is i’ve searched all of google and youtube to the point its almost like its not possible to do as I first can’t figure out how to link the API to wix or second how to link when the user clicks the submit button to giving the API specifically only the info from the vehicle reg number text box to then fetch & return the vehicle data.

Below is the API documentation but I can’t figure out how I can actually use it as all of these examples are not based off user input from a form

I would really really appreciate any help

Thank you

This could be your solution…

  1. Install AXIOS-NPM on your Wix-Site.

  2. Follow the following example…

This way you can get the fetched data from DVLA and do what ever you want with it on your own site.

If you still shouldn’t be able to manage this API-Integration successfully, let me know…

velo-ninja@outlook.com

Hey there,

The examples provided here are generic and not specific to Wix. If you want to integrate this to your Wix website, you will have to do so using Wix’s own JS based dev platform called Velo.

If you’ve got experience with code, then you can follow the Velo Docs and integrate this into your Wix website. If you do not have experience with developing custom code solutions, you might want to hire a developer for this job.

If you wish to do so, feel free to get in touch with us here and we’ll get back to you soon:

Hello there, did you manage to add the code from DVLA? Does it work? Could I please have the web address?