CarStat.dev
Connect key
Guide

Search filter syntax

Filters are query parameters in the PHP bracket format. The same filters work on /search and /search/count; /cars accepts domains[] and is_leasing.

KindSyntax
List of IDsfuels[]=2&fuels[]=3 — repeat the key; commas aren't split
Brand + modelsbrands[0][id]=88&brands[0][models][]=573
Several brandsbrands[0][id]=88&brands[1][id]=13
Rangeyear_from=2018&year_to=2022 — both ends inclusive
Flaghas_inspections=1 — send 1 or 0; true returns 422
Leasingis_leasing=0 — also matches listings with no flag
Priceprice_from=10000&currency=eur — filters in that currency
Locationcountries[0][id]=208&countries[0][regions][]=1841610
  • Categorical filters take numeric IDs. See Enum values for every ID.
  • currency only affects price filtering and sorting. Listing prices are always returned in their original currency.
  • For an exact VIN use /cars/vin/{vin}. The vin filter on /search is a partial match.
  • Omit filters you don't use. Empty values are validated and can return 422.
Filtered search
curl -g "https://api.lotarius.com/search?brands[0][id]=88&brands[0][models][]=573&year_from=2018&fuels[]=1&fuels[]=3&price_to=30000&currency=eur&has_inspections=1&sort=newest&perPage=20&api_key=$CARS_API_KEY" \
  -H "Accept: application/json"