GET
/
search
Autocomplete Search
curl --request GET \
  --url https://listings.vin/search
{
  "data": [
    {
      "text": "<b>Audi</b> <b>Q5</b> Prestige",
      "filter": {
        "year": 2018,
        "make": "Audi",
        "model": "Q5"
      }
    },
    {
      "text": "<b>Audi</b> <b>Q5</b> Premium",
      "filter": {
        "year": 2018,
        "make": "Audi",
        "model": "Q5"
      }
    },
    {
      "text": "<b>Audi</b> <b>Q5</b> Premium Plus",
      "filter": {
        "year": 2018,
        "make": "Audi",
        "model": "Q5"
      }
    }
  ]
}
q
string
The string that you wish to autocomplete for. This can be a partial or full string. e.g. “audi”, “for”, “bmw 3”

Response

The response will be an array of search results. Each result will contain the text of the search result and the filter object of the search result.
data
array
required
Array of search results.
text
string
The text of the search result. Uses <b></b> to highlight the matching part of the string. e.g. <b>Audi</b> <b>Q5</b> Prestige
filter
object
The object of the search result.
{
  "data": [
    {
      "text": "<b>Audi</b> <b>Q5</b> Prestige",
      "filter": {
        "year": 2018,
        "make": "Audi",
        "model": "Q5"
      }
    },
    {
      "text": "<b>Audi</b> <b>Q5</b> Premium",
      "filter": {
        "year": 2018,
        "make": "Audi",
        "model": "Q5"
      }
    },
    {
      "text": "<b>Audi</b> <b>Q5</b> Premium Plus",
      "filter": {
        "year": 2018,
        "make": "Audi",
        "model": "Q5"
      }
    }
  ]
}