GET
/
searches
curl --request GET \
  --url https://commerce.driv.ly/api/searches
{
  "data": [
    {
      "id": "src_5j3ks8d2hj3s",
      "lead": "Lead ID",
      "makes": [
        "Toyota",
        "Honda"
      ],
      "trims": [
        "SE",
        "EX"
      ],
      "models": [
        "Camry",
        "Civic"
      ],
      "vehicles": [
        "Vehicle ID"
      ],
      "bodyStyles": [
        "Sedan",
        "SUV"
      ],
      "minimumYear": 2015,
      "maximumYear": 2021,
      "drivetrains": [
        "FWD",
        "AWD"
      ],
      "maximumPrice": 30000,
      "vehicleSpecs": [
        "Vehicle Spec ID"
      ],
      "minimumRating": 4,
      "transmissions": [
        "Automatic",
        "Manual"
      ],
      "maximumOdometer": 50000
    }
  ],
  "success": true,
  "page": 2,
  "nextPage": 3,
  "prevPage": 1,
  "totalPages": 3,
  "totalCount": 25,
  "limit": 10,
  "pagingCounter": 11,
  "hasPrevPage": true,
  "hasNextPage": true
}

Query Parameters

depth
integer

The number of levels of related objects to include in the response

sort
string

Pass the name of a top-level field to sort by that field in ascending order. Prefix the name of the field with a minus symbol ("-") to sort in descending order.

limit
number

Limit number of results, default 10

where
object

Search for results fitting criteria, uses qs library for query string parsing

Response

200
application/json

Searches Found

The response is of type object.