docs
  1. Onboarding-guide
  2. Onboarding: Frontend
  3. Products Query

Products Query

Query products from the database

What is this endpoint for?

This endpoint is your go-to when you need to run queries on the Storefront API database using a set of specific criteria. You'll find yourself using this mostly on the /search page.

The endpoint allows for the following configurable criteria:

Dev-to-Dev Hint

Get the best out of this endpoint with the useFacet composable from SFC. Here's a quick example of how it's done:

Example

Here’s an example of using the search term Maske on the search page, with date_newest as the sort criteria:

Next Steps

Search in SCAYLE Panel.