Skip to content

IPMGroupLtd/DvlaSearch-CSharp

 
 

Repository files navigation

DvlaSearch-CSharp

A helper library for https://api.vehicle-search.co.uk/

Please note; I am not associated with or maintain the api this helper uses.

Driver Licence Check

Usage

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,
};

API Coverage

Current list of endpoints and their respective support status

Account Tools

Account endpoints

  • Account Info Account Lookup

Driver Tools

Tools relating to drivers

  • Driver Licence Info Information for given licence number

Search Tools

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 Records

Account statistic endpoints

  • Search Count Search Count
  • Search History Search Count

Additional Services

These endpoints require an additional purchase to be accessible

  • Postcode To Address Returns address at given postcode

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%