TipsTrade.UkVehicleData 8.0.1

dotnet add package TipsTrade.UkVehicleData --version 8.0.1
                    
NuGet\Install-Package TipsTrade.UkVehicleData -Version 8.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TipsTrade.UkVehicleData" Version="8.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TipsTrade.UkVehicleData" Version="8.0.1" />
                    
Directory.Packages.props
<PackageReference Include="TipsTrade.UkVehicleData" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TipsTrade.UkVehicleData --version 8.0.1
                    
#r "nuget: TipsTrade.UkVehicleData, 8.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TipsTrade.UkVehicleData@8.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TipsTrade.UkVehicleData&version=8.0.1
                    
Install as a Cake Addin
#tool nuget:?package=TipsTrade.UkVehicleData&version=8.0.1
                    
Install as a Cake Tool

TipsTrade.UkVehicleData

NuGet License: MIT

HTTP client and dependency-injection extensions for the UK Vehicle Data REST API.

Targets .NET Framework 4.8.1 and .NET 8.

The package major version follows the .NET target version (e.g. 8.x.x targets net8.0).


Installation

dotnet add package TipsTrade.UkVehicleData

Configuration

Implement ICredentialProvider

The client requires an API key that you obtain from the UK Vehicle Data panel.

using TipsTrade.UkVehicleData;
using TipsTrade.ApiClient.Core.Credential;

public class MyCredentialProvider : ICredentialProvider {
	public Task<ApiKeyCredential> GetCredentialAsync(string key, CancellationToken ct = default)
		=> Task.FromResult(new ApiKeyCredential("YOUR_API_KEY"));
}

Register with dependency injection

// Minimal registration
services.AddUkVehicleCheckClient<MyCredentialProvider>();

// With custom options (e.g. timeout)
services.AddUkVehicleCheckClient<MyCredentialProvider>(options => {
	options.Timeout = TimeSpan.FromSeconds(30);
});

// Optional: add response caching
services.AddUkVehicleCheckClientCache<MyCacheProvider>();

// Optional: add multi-tenant support
services.AddUkVehicleCheckClientTenants<MyTenantProvider>();

Available API Methods

All methods are async and accept an optional CancellationToken.

Method Lookup Description
GetBatteryDataByVinAsync VIN EV/hybrid battery compatibility data
GetBatteryDataByVrmAsync VRM EV/hybrid battery compatibility data
GetVehicleDataByVinAsync VIN Full DVLA/SMMT vehicle registration data
GetVehicleDataByVrmAsync VRM Full DVLA/SMMT vehicle registration data
GetVehicleDataIrlByVinAsync VIN Irish (ROI) vehicle registration data
GetVehicleDataIrlByVrmAsync VRM Irish (ROI) vehicle registration data
GetVehicleImageDataByVinAsync VIN Vehicle image URLs
GetVehicleImageDataByVrmAsync VRM Vehicle image URLs

VRM = Vehicle Registration Mark (number plate). Spaces are stripped and the value is upper-cased automatically.
VIN = Vehicle Identification Number.


Usage Examples

Vehicle data by VRM

var response = await client.GetVehicleDataByVrmAsync("AB12CDE");

if (response.IsSuccess) {
	var reg = response.Response?.DataItems?.VehicleRegistration;
	Console.WriteLine($"{reg?.Make} {reg?.Model} ({reg?.YearOfManufacture})");

	// Helper extension methods
	string make  = response.Response!.DataItems!.GetCombinedMake();
	string model = response.Response!.DataItems!.GetCombinedModel();
}

Battery data by VIN

var response = await client.GetBatteryDataByVinAsync("WVWZZZAUZMW000001");

if (response.IsSuccess) {
	var batteries = response.Response?.DataItems?.BatteryDetails?.BatteryList;
	foreach (var battery in batteries ?? []) {
		Console.WriteLine(battery.PartNumber);
	}
}

Extensibility

ICacheProvider

Implement ICacheProvider to cache API responses and reduce repeated lookups for the same VRM/VIN.

public class MyCacheProvider : ICacheProvider {
	// IReadWriteCache<(string TenantId, string Key), T> implementation
}

Register with:

services.AddUkVehicleCheckClientCache<MyCacheProvider>();

ITenantProvider

Implement ITenantProvider to support multi-tenant scenarios.

public class MyTenantProvider : ITenantProvider {
	// IGetTenant implementation
}

Register with:

services.AddUkVehicleCheckClientTenants<MyTenantProvider>();

License

MIT — see LICENSE for details.

Source: https://github.com/tipstrade/TipsTrade.UkVehicleData

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.1 102 5/28/2026
8.0.0 118 5/28/2026
2.0.0.2 107 5/27/2026
2.0.0 212 7/31/2025
1.1.0.5 469 1/10/2023
1.0.0.5 598 2/19/2021
1.0.0.4 521 2/18/2021
1.0.0.3 552 2/18/2021
1.0.0.2 533 2/18/2021
1.0.0.1 569 2/17/2021