listings

Vehicles 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.

get/v2/listings/search

Request

  • Base URL
    https://api.cardog.app
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Query parameters

make, string[]

Make ref, e.g. "make:mini". Repeat to match any of several.

model, string[]

Model ref, e.g. "model:mini/hardtop". Repeatable.

nano, string[]

Build code ref, e.g. "nano:5TDGSKFCRS". Repeatable.

bodyStyle, string[]

Body style ref, e.g. "body-style:sedan-saloon". Repeatable.

fuelType, string[]

Fuel type ref, e.g. "fuel-type:electric". Repeatable.

driveType, string[]

Drive type ref, e.g. "drive-type:awd-all-wheel-drive". Repeatable.

transmission, string[]

Transmission ref, e.g. "transmission:automatic". Repeatable.

electrification, string[]

Electrification level ref, e.g. "electrification-level:bev-battery-electric-vehicle". Repeatable.

vehicleType, string[]

Vehicle type ref, e.g. "vehicle-type:passenger-car". Repeatable.

trim, string[]

Trim as the seller wrote it (free text, not a ref). Repeatable.

seller, string[]

Seller ID. Repeatable.

exteriorColor, string[]

Exterior color. Repeatable.

interiorColor, string[]

Interior color. Repeatable.

year.min, integer

Earliest model year

year.max, integer

Latest model year

price.min, number

Lowest asking price

price.max, number

Highest asking price

odometer.min, number

Lowest odometer reading

odometer.max, number

Highest odometer reading

lat, number

Latitude of the search center. Send with lng and radius.

lng, number

Longitude of the search center. Send with lat and radius.

radius, number

Search radius in km. Send with lat and lng.

verified, boolean

Only verified listings. Defaults to true.

createdAfter, string date-time

Only listings created after this time

updatedAfter, string date-time

Only listings updated after this time

spec.{attributeId}, string

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, integer

Page number

limit, integer

Results per page, 1 to 250. A larger value is a 400.

sort, string

Sort by price, year, odometer, createdAt, score or random. Any other value uses the default order.

order, 'asc' | 'desc'

asc or desc (the default)

Response

Listings, paging, and the filters applied

ListingSearch required
listings, object[] required

The page of matching listings

pagination, object required

Which page this is

sort, object

The sort applied

filters, object required

The filters applied, as the API read them

Changes

    • breaking

      for the query request parameter limit, default value 25 was added

    • warning

      for the query request parameter limit, the max was set to 250.00

    • info

      added the optional property requestId to the response with the status

    4 more changes in this revision