Authorization
X-Storefront-Access-Token
Token-based authentication header in the form of <YOUR_LAYERS_TOKEN>
.
Content-Type
string
default:"application/json"
required
Accept
string
default:"application/json"
required
Query Parameters
The query you want to retrieve suggestions for.
Response
The text of the matched query.
The number of searches for the matched query.
The normalized version of the original query text.
{
"matchedQueries": [
{
"query_text": "sup",
"num_searches": 1
},
{
"query_text": "supreme",
"num_searches": 11
}
],
"originalQuery": "sup",
"normalizedQuery": "sup"
}