Search Cdiscount products
Inputs
query requiredFree-text search query.
page optionalResult page. has_next_page and total_pages say when to stop.
Default: 1sort optionalSort order: relevance (the default), best_sellers, price_asc (lowest price first), price_desc (highest price first), rating (customer reviews).
Default: "relevance"filters optionalFilter ids from the filters of an earlier result for the same query, for example Marque/"jbl" (a brand), Prix/"20 à 50€" (a price band) or Vendeur/[*;0] (sold by Cdiscount). Values of one filter are alternatives; different filters all apply.
Output
url requiredpage requireditems requiredThe results in page order, sponsored ones included.
query requiredfilters requiredFilters the page offers for this search, in page order.
total_pages requiredhas_next_page requiredTrue when Cdiscount has a page after this one.
total_results requiredNumber of products that match, as Cdiscount states it.
applied_filters requiredFilter ids that apply to this page. Cdiscount can add a category on its own.
sort optionalSort that Cdiscount applied, as field and direction, for example "price asc".
