TipsTrade.UkVehicleData.Model 8.0.1

dotnet add package TipsTrade.UkVehicleData.Model --version 8.0.1
                    
NuGet\Install-Package TipsTrade.UkVehicleData.Model -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.Model" 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.Model" Version="8.0.1" />
                    
Directory.Packages.props
<PackageReference Include="TipsTrade.UkVehicleData.Model" />
                    
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.Model --version 8.0.1
                    
#r "nuget: TipsTrade.UkVehicleData.Model, 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.Model@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.Model&version=8.0.1
                    
Install as a Cake Addin
#tool nuget:?package=TipsTrade.UkVehicleData.Model&version=8.0.1
                    
Install as a Cake Tool

TipsTrade.UkVehicleData.Model

NuGet License: MIT

Strongly-typed response models for the UK Vehicle Data REST API.

Supports both Newtonsoft.Json and System.Text.Json serialisation.
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).

This package contains only the model types. To make API calls, use TipsTrade.UkVehicleData.


Installation

dotnet add package TipsTrade.UkVehicleData.Model

Response envelope

Every API call returns an ApiResponse<T>:

public class ApiResponse<T> : IApiResponse where T : new() {
	public bool IsSuccess { get; }           // true when the call succeeded
	public BillingAccount? BillingAccount { get; set; }
	public TechnicalSupport? TechnicalSupport { get; set; }
	public Request? Request { get; set; }
	public Response<T>? Response { get; set; }
}

The data payload is accessed via response.Response?.DataItems.


Available data packages

Namespace Root type Description
Api.BatteryData BatteryData EV/hybrid battery compatibility
Api.FuelPriceData FuelPriceData Current fuel prices
Api.MotHistoryData MotHistoryData Full MOT test history
Api.MotHistoryAndTaxStatusData MotHistoryAndTaxStatusData Combined MOT history and tax status
Api.PostcodeLookup PostcodeLookup UK postcode geographic data
Api.SpecAndOptionsData SpecAndOptionsData Manufacturer specification and options
Api.TyreData TyreData OEM tyre specification
Api.ValuationCanPrice ValuationCanPrice Canadian market valuations
Api.ValuationData ValuationData UK vehicle valuations
Api.VdiCheckFull VdiCheckFull Full vehicle identity check
Api.VehicleAndMotHistory VehicleAndMotHistory Combined vehicle data and MOT history
Api.VehicleData VehicleData Full DVLA/SMMT registration data
Api.VehicleDataIRL VehicleDataIRL Irish (ROI) vehicle registration data
Api.VehicleImageData VehicleImageData Vehicle image URLs
Api.VehicleTaxData VehicleTaxData DVLA vehicle tax / SORN status

Key model types

VehicleData

The most commonly used data package, containing DVLA and SMMT information.

var data = response.Response?.DataItems; // VehicleData

var reg   = data?.VehicleRegistration;   // DVLA registration details
var smmt  = data?.SmmtDetails;           // SMMT manufacturer details

// Extension methods (TipsTrade.UkVehicleData.Model.Api.VehicleData)
string make  = data.GetCombinedMake();   // SMMT make with DVLA fallback
string model = data.GetCombinedModel();  // SMMT range/variant with DVLA fallback

VehicleTaxData

var tax = response.Response?.DataItems; // VehicleTaxData
Console.WriteLine(tax?.VehicleStatus);  // e.g. "Taxed", "SORN"

MotHistoryData

var mot = response.Response?.DataItems; // MotHistoryData
foreach (var test in mot?.MotTests ?? new List<MotTest>()) {
	Console.WriteLine($"{test.CompletedDate}: {test.TestResult}");
}

Serialisation

All model properties are decorated with both [JsonProperty] (Newtonsoft.Json) and [JsonPropertyName] (System.Text.Json), so the package works out of the box with either serialiser.


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 (1)

Showing the top 1 NuGet packages that depend on TipsTrade.UkVehicleData.Model:

Package Downloads
TipsTrade.UkVehicleData

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.1 112 5/28/2026
8.0.0 122 5/28/2026
2.0.0.2 122 5/27/2026
2.0.0.1 216 8/1/2025
2.0.0 235 7/31/2025
1.1.0.5 787 1/10/2023