Search listings
Changed onVehicles for sale, filtered by refs (IDs such as make:toyota) and by spec values. An unknown ref is a 400 that names it; we never swap in a fuzzy match.
Sort with sort and order. Without sort, the best-scored listings come first, then the newest. Costs 1 credit.
Request
- Base URLhttps://api.cardog.app
- Auth
- API key in header x-api-key
- or HTTP bearer
Query parameters
Make ref, e.g. "make:mini". Repeat to match any of several.
Model ref, e.g. "model:mini/hardtop". Repeatable.
Build code ref, e.g. "nano:5TDGSKFCRS". Repeatable.
Body style ref, e.g. "body-style:sedan-saloon". Repeatable.
Fuel type ref, e.g. "fuel-type:electric". Repeatable.
Drive type ref, e.g. "drive-type:awd-all-wheel-drive". Repeatable.
Transmission ref, e.g. "transmission:automatic". Repeatable.
Electrification level ref, e.g. "electrification-level:bev-battery-electric-vehicle". Repeatable.
Vehicle type ref, e.g. "vehicle-type:passenger-car". Repeatable.
Trim as the seller wrote it (free text, not a ref). Repeatable.
Seller ID. Repeatable.
Exterior color. Repeatable.
Interior color. Repeatable.
Earliest model year
Latest model year
Lowest asking price
Highest asking price
Lowest odometer reading
Highest odometer reading
Latitude of the search center. Send with lng and radius.
Longitude of the search center. Send with lat and radius.
Search radius in km. Send with lat and lng.
Only verified listings. Defaults to true.
Only listings created after this time
Only listings updated after this time
Filter on a spec attribute. Numeric attributes take spec.{id}.min and spec.{id}.max, e.g. spec.fuelEconomyCombined.min=35. Equipment attributes take a value and can repeat, e.g. spec.heatedSeatsFront=standard. Attribute IDs come from GET /v2/specs/catalog; an unknown ID is a 400 that names it.
Page number
Results per page, 1 to 250. A larger value is a 400.
Sort by price, year, odometer, createdAt, score or random. Any other value uses the default order.
asc or desc (the default)
Response
Listings, paging, and the filters applied
The page of matching listings
Which page this is
The sort applied
The filters applied, as the API read them
Changes
- breaking
for the
queryrequest parameterlimit, default value25was added - warning
for the
queryrequest parameterlimit, the max was set to250.00 - info
added the optional property
requestIdto the response with the status
4 more changes in this revision
- breaking