Documentation
Feedback
Guides
API Reference

Guides
Search
Consult store search terms information

To present an efficient search result to your customer, it is essential to understand how they search for products in your store. You can use the Intelligent Search API, as detailed in the following sections, to gather the most popular search terms and autocomplete suggestions.

Get the most searched terms

To get your customers' most searched terms, you must use the Get list of the 10 most searched terms endpoint. You can filter the endpoint response by defining the term's locale on the query.

{"base64":"  ","img":{"width":1342,"height":640,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":188854,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/consult-store-search-terms-information-0.png"}}

The response will return the most searched terms by popularity order and the number of searches for each term.

Response body example


_44
{
_44
"searches": [
_44
{
_44
"term": "home",
_44
"count": 14
_44
},
_44
{
_44
"term": "shirt",
_44
"count": 10
_44
},
_44
{
_44
"term": "top",
_44
"count": 9
_44
},
_44
{
_44
"term": "tops",
_44
"count": 6
_44
},
_44
{
_44
"term": "camera",
_44
"count": 5
_44
},
_44
{
_44
"term": "kit",
_44
"count": 5
_44
},
_44
{
_44
"term": "work shirt",
_44
"count": 2
_44
},
_44
{
_44
"term": "shirts",
_44
"count": 2
_44
},
_44
{
_44
"term": "clothing",
_44
"count": 2
_44
},
_44
{
_44
"term": "classic shoes",
_44
"count": 1
_44
}
_44
]
_44
}

Get autocomplete suggested terms and similar attributes

To get information about the autocomplete suggested terms and similar attributes presented to your customers, use the Get list of suggested terms and attributes similar to the search term endpoint. You can filter the endpoint response by defining the term's locale and query.

{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAIAAADwyuo0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIklEQVR4nGNQ0pKxcjTv6+srKSthYOBnsHI2+/L5y9r1awFjjQnJVOe7eAAAAABJRU5ErkJggg==","img":{"src":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/consult-store-search-terms-information-1.png","width":1358,"height":692,"type":"png"}}

The response will return the searched terms by popularity order and the corresponding autocomplete suggestions for each term.

Response body example


_40
{
_40
"searches": [
_40
{
_40
"term": "tv",
_40
"count": 28861,
_40
"attributes": [
_40
{
_40
"key": "departamento",
_40
"value": "tvs-e-video",
_40
"labelKey": "Departamento",
_40
"labelValue": "TVs e Vídeo"
_40
},
_40
{
_40
"key": "categoria",
_40
"value": "tvs",
_40
"labelKey": "Categoria",
_40
"labelValue": "TVs"
_40
},
_40
{
_40
"key": "subcategoria",
_40
"value": "receptor-de-controle-de-acesso",
_40
"labelKey": "Subcategoria",
_40
"labelValue": "Receptor de Controle de Acesso"
_40
}
_40
]
_40
},
_40
{
_40
"term": "smarth tv",
_40
"count": 2308
_40
},
_40
{
_40
"term": "painel para tv",
_40
"count": 975
_40
},
_40
{
_40
"term": "rack tv",
_40
"count": 589
_40
}
_40
]
_40
}

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page