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"
}
}
]
}
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.
Array of search results.
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
The object of the search result.
The year of the vehicle. e.g. 2018
The make of the vehicle. e.g. “Audi”
The model of the vehicle. e.g. “Q5”
{
"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"
}
}
]
}