A helper library for https://api.vehicle-search.co.uk/
Please note; I am not associated with or maintain the api this helper uses.
var apiKey = "example123";
var helper = new DvlaSearchHelper(apiKey);
var licenceNumber = "...";
var niNumber = "...";
var postCode = "...";
var licenceResult = helper.GetDriverLicence(licenceNumber, niNumber, postCode);
switch (licenceResult) {
case Error error:
Console.WriteLine(error.ErrorMessage);
break;
case NotFound:
Console.WriteLine("Licence was not found");
break;
case Success<DriverLicenceResult> success:
var licence = success.Content;
Console.WriteLine($"{licence.Name} has {licence.PenaltyPoints} point(s)");
break;
}
// or using pattern matching
var licence = (licenceResult) switch {
Success<DriverLicenceResult> success => success.Content,
Error error => throw new Exception(error.ErrorMessage),
_ => null,
};
Current list of endpoints and their respective support status
Account endpoints
- ❌
Account Info
Account Lookup
Tools relating to drivers
- ✅
Driver Licence Info
Information for given licence number
Search endpoints (will expend credits)
- ❌
Battery
Contains the configuration details of each battery - ❌
Car Spec
Search DVLA from Licence plate for specifications of the vehicle. - ❌
Dvla
Search Search DVLA from Licence plate - ❌
Insurance
Returns information relevant for insurance - ❌
Mot History
MOT History from licence plate - ❌
Tyre Search
Tyre recommendations based on licence plate - ❌
V5C Validate
Validation takes a vehicle registration and V5C number - ❌
Valuation
Based on a number of factors, such as the MOT history (for mileage and condition), the previous number of owners and calculations from our partnership with insurance companies. - ❌
Vehicle Image
Returns a representative image of the vehicle - ❌
VIN Search
Search DVLA from VIN
Account statistic endpoints
- ❌
Search Count
Search Count - ❌
Search History
Search Count
These endpoints require an additional purchase to be accessible
- ❌
Postcode To Address
Returns address at given postcode