dokumentacja

Parametry wyszukiwania — GET /cars

Dowolnie je łącz w jednym wywołaniu. Odpowiedź niesie total, page, count i results[], więc możesz stronicować po total bez drugiego zapytania.

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.

Nieznane parametry są ignorowane, a nie odrzucane, więc dodanie filtra, którego twój plan nie obsługuje, nie zepsuje istniejącej integracji — po prostu nie zawęzi wyniku.

Rozpisany przykład

BMW X5 diesel poniżej 40 000 €, najtańsze najpierw, 24 na stronę. Całe zapytanie to adres 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"
← Cała dokumentacja

Odbierz swój klucz API

Za darmo · 100 zapytań dziennie

Uzyskaj dostęp →