Doku

Suchparameter — GET /cars

Beliebig kombinierbar in einem Aufruf. Die Antwort enthält total, page, count und results[], Sie können also ohne zweite Anfrage über total paginieren.

parameterwhat it does
manufacturerBrand, as Encar writes it: BMW, Hyundai, Kia, Genesis, Mercedes-Benz, Audi.
modelModel name, e.g. X5 (G05). Partial names match, and a generation name narrows further: model=The New Carnival returns that generation alone, not the whole nameplate.
qFree-text search across brand, model and badge. Aliases: keyword, search.
fueldiesel · gasoline · hybrid · electric · lpg.
transmissionautomatic · manual.
colorExterior colour.
seatsSeat count: 5, 7, 9. Several at once as seats=7,9. The two ends are ranges, not counts — 2 means two seats or fewer and 10 means ten or more, which is how the source files them. A car's own figure comes back as details.seats from /car.
yearFrom / yearToModel year bounds, as plain years: 2018, 2024.
mileageFrom / mileageToOdometer bounds in kilometres.
priceFrom / priceToPrice bounds in EUR — converted for you, not won.
sortpriceAsc or priceDesc. Left out, results come back newest first.
pagePage index, zero-based. Default 0.
countListings per page. Default 24, maximum 500.

Unbekannte Parameter werden ignoriert statt abgelehnt. Ein Filter, den Ihr Tarif nicht unterstützt, zerstört also keine bestehende Integration — er schränkt das Ergebnis schlicht nicht ein.

Ein durchgerechnetes Beispiel

BMW X5 Diesel unter 40.000 €, günstigste zuerst, 24 pro Seite. Die gesamte Abfrage ist die URL.

curl -H "x-api-key: avg_free_..." \
  "https://api.encar-api.com/api/cars?manufacturer=BMW&model=X5\
&fuel=diesel&priceTo=40000&sort=priceAsc&count=24"
← Gesamte Dokumentation

Ihren API-Key holen

Kostenlos · 100 Anfragen pro Tag

Zugang holen →