Documentation
Feedback
Guides
API Reference

Guides
Getting Started

Integration Guides




Payments

Orders

Fulfillment

VTEX inStore

UI Customization

Message Center

Pricing

Promotions

Infrastructure

Conversational Commerce

Search

VTEX Session

Search
Get a list of the possible facets for a specific search

Facets represent the combination of filters that are selected in a search. To retrieve a list of possible facets for a specific search, use the Get list of the possible facets for a given query endpoint. You can filter the endpoint response by defining the search's facets and the term's locale and query.

A facet value is only returned in the response if at least one of the products returned in the query has this value.

All information is synced with the Catalog. Therefore, if a specification is configured non-filterable, it will not be returned by the Search API.

Response body example:

{ "facets": [ { "type": "TEXT", "name": "string", "hidden": false, "quantity": 0, "values": [ { "id": "string", "quantity": 0, "name": "string", "key": "string", "value": "string", "selected": false } ] } ], "sampling": false, "breadcrumb": [ { "name": "string", "href": "string" } ], "queryArgs": { "query": "string", "selectedFacets": [ { "key": "string", "value": "string" } ] } }
Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Get banner list for a specific search
Sessions System Overview
Contributors
1
Photo of the contributor
+ 1 contributors
On this page