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
<PackageReference Include="TipsTrade.UkVehicleData.Model" Version="8.0.1" />
<PackageVersion Include="TipsTrade.UkVehicleData.Model" Version="8.0.1" />
<PackageReference Include="TipsTrade.UkVehicleData.Model" />
paket add TipsTrade.UkVehicleData.Model --version 8.0.1
#r "nuget: TipsTrade.UkVehicleData.Model, 8.0.1"
#:package TipsTrade.UkVehicleData.Model@8.0.1
#addin nuget:?package=TipsTrade.UkVehicleData.Model&version=8.0.1
#tool nuget:?package=TipsTrade.UkVehicleData.Model&version=8.0.1
TipsTrade.UkVehicleData.Model
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 | Versions 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. |
-
.NETFramework 4.8.1
- Newtonsoft.Json (>= 13.0.4)
- System.Text.Json (>= 8.0.6)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
- System.Text.Json (>= 8.0.6)
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.