
NHTSA unofficial .NET Client SDK
.NET SDK providing easy access to the NHTSA’s APIs (Vehicle, Recalls, etc.). This NuGet package enables developers to retrieve vehicle safety information, recalls, complaints data, etc.
The package can be obtained from NuGet.
Package Manager (PM):
> Install-Package Nhtsa.SDK
CMD:
> dotnet add package Nhtsa.SDK
Bash:
$ dotnet add package Nhtsa.SDK
We can interact with NHTSA APIs as follows:
using OneOf;
using Nhtsa.SDK.Errors;
using Nhtsa.SDK.Clients.Vehicles;
using Nhtsa.SDK.Models.Vehicles;
// get all Makes from the Vehicles API
VehiclesClient vc = new VehiclesClient();
OneOf<GetAllMakesResponse, ApiError> result = await vc.GetAllMakesAsync();