AutoApi.Client 1.0.5

dotnet add package AutoApi.Client --version 1.0.5
                    
NuGet\Install-Package AutoApi.Client -Version 1.0.5
                    
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="AutoApi.Client" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AutoApi.Client" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="AutoApi.Client" />
                    
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 AutoApi.Client --version 1.0.5
                    
#r "nuget: AutoApi.Client, 1.0.5"
                    
#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 AutoApi.Client@1.0.5
                    
#: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=AutoApi.Client&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=AutoApi.Client&version=1.0.5
                    
Install as a Cake Tool

auto-api-client-dotnet

NuGet .NET License

.NET client for the auto-api.com car listings API — search offers, track changes and pull listing data from 8 automotive marketplaces worldwide.

Sources: encar (Korea), mobile.de, autoscout24 (Europe), che168, dongchedi, guazi (China), dubicars, dubizzle (UAE). Zero NuGet dependencies — built on HttpClient and System.Text.Json.

Installation

dotnet add package AutoApi.Client

Usage

using AutoApi;

using var client = new AutoApiClient("your-api-key", "https://api1.auto-api.com");

Get filters

var filters = await client.GetFiltersAsync("encar");

Search offers

var offers = await client.GetOffersAsync("mobilede", new OffersParams
{
    Page = 1,
    Brand = "BMW",
    YearFrom = 2020,
});

// Pagination
Console.WriteLine(offers.Meta.Page);
Console.WriteLine(offers.Meta.NextPage);

Get single offer

var offer = await client.GetOfferAsync("encar", "40427050");

Track changes

var changeId = await client.GetChangeIdAsync("encar", "2025-01-15");
var changes = await client.GetChangesAsync("encar", changeId);

// Next batch
var nextBatch = await client.GetChangesAsync("encar", changes.Meta.NextChangeId);

Get offer by URL

var info = await client.GetOfferByUrlAsync(
    "https://encar.com/dc/dc_cardetailview.do?carid=40427050");

Decode offer data

The Data property is a JsonElement because different sources return different fields. Deserialize to your own type:

foreach (var item in offers.Result)
{
    var data = item.Data.Deserialize<MyOfferData>();
    Console.WriteLine($"{data.Mark} {data.Model} {data.Year} — ${data.Price}");
}

Error handling

try
{
    var offers = await client.GetOffersAsync("encar", new OffersParams { Page = 1 });
}
catch (AuthException ex)
{
    // 401/403 — invalid API key
    Console.WriteLine($"{ex.StatusCode}: {ex.Message}");
}
catch (ApiException ex)
{
    // Any other API error
    Console.WriteLine($"{ex.StatusCode}: {ex.Message}");
    Console.WriteLine(ex.ResponseBody);
}

Supported sources

Source Platform Region
encar encar.com South Korea
mobilede mobile.de Germany
autoscout24 autoscout24.com Europe
che168 che168.com China
dongchedi dongchedi.com China
guazi guazi.com China
dubicars dubicars.com UAE
dubizzle dubizzle.com UAE

Other languages

Language Package
PHP autoapi/client
TypeScript @autoapicom/client
Python autoapicom-client
Go auto-api-go
Java auto-api-client
Ruby auto-api-client
Rust auto-api-client

Documentation

auto-api.com

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

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
1.0.5 126 2/16/2026
1.0.2 112 2/16/2026
1.0.1 123 2/11/2026
1.0.0 104 2/11/2026