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-

  1. api_key– Can be obtained from your control panel (uniquely identifies your website).
  2. q-search query (example- apple)
  3. size– number of search results (example -15)
  4. page – pagination (example -0, 1, 2…10)
  5. fq– facet query (example- fq=category:”Apple”) the facet of filter the user clicks on.
  6. nf- numeric filter query( for price range filters. example- price:400-1000)
  7. 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.

muthali ganesh

Muthali loves writing about emerging technologies and easy solutions for complex tech issues. You can reach out to him through chat or by raising a support ticket on the left hand side of the page.

You may also like