Expertrec’s ecommerce search results page api is of the following format-
https://searchv7.expertrec.com/v6/search/api_key/?q={search_query}&size={number_of_search_results}&page={pagination}&fq={facet_query}&nf={numeric_search_filters}&sort={sort_search_results}
Here is a sample api call-
https://searchv7.expertrec.com/v6/search/454545fa17b5405687d9113b9c95aef4/?q=apple&size=15&page=0&fq=category:"Apple"&nf=price:400-1000&sort=score:desc
ecommerce search Api components-
- api_key– Can be obtained from your control panel (uniquely identifies your website).
- q-search query (example- apple)
- size– number of search results (example -15)
- page – pagination (example -0, 1, 2…10)
- fq– facet query (example- fq=category:”Apple”) the facet of filter the user clicks on.
- nf- numeric filter query( for price range filters. example- price:400-1000)
- sort-sort search results (example: score:desc (for descending (high to low) and score:asc (for ascending(high to low))
Have a look at https://www.expertrec.com/api/#api-Search-search for more details.