Get Cdiscount product offers
Automatically get Cdiscount product offers on cdiscount.com. List every seller's offer for one Cdiscount.com product by its sku, cheapest first, one page at a time: offer id (pass it to Add to Cdiscount cart), seller with id, rating, sales count and ships-from country, price and struck-through list price in euros, condition and minimum quantity. Read further pages while has_next_page is true. An unknown sku fails with an error that says so.
Inputs
sku requiredCdiscount product id, as Search Cdiscount products returns it, for example aaaqy27804.
page optionalPage of the offer list, cheapest first. Read further while has_next_page is true.
Default: 1Output
sku requiredpage requiredcount requiredOffers on this page.
title requiredoffers requiredhas_next_page requiredFAQ
Remove from Cdiscount cart
Remove a Cdiscount.com product from the cart, whatever its quantity (every line of that sku, or only the line of one offer_id), and return the cart after. A product not in the cart returns removed false and changes nothing. Works as a guest: the cart lives with the browser.
Add to Cdiscount cart
Add 1 to 10 units of a Cdiscount.com product to the cart, from its sku, from the offer the product page shows or from a given seller's offer (offer_id from Get Cdiscount product offers), and return the cart after the add. Works as a guest: the cart lives with the browser. Nothing is paid or ordered. An unknown sku or an offer_id the product does not have is refused with a clear message.
Search Cdiscount products
Search Cdiscount.com by free-text query, with Cdiscount's own sort order and filters (category, brand, price band, seller, delivery, customer rating, condition and the product's attributes). Returns one page of results: the total result and page counts, has_next_page, the filters that apply, the items (sku, offer_id, title, url, price, list_price, rating, review_count, image_url, sponsored, seller, condition, free_shipping and deals such as Black Friday operations with their end time), and the filters the page offers for this search, each value with the id to pass back in filters and its result count. Prices are in euros. A page has about 45 to 65 items, sponsored ones included. Stop paging when has_next_page is false: Cdiscount refuses a page far past the last one, and the run then fails. When few products match, Cdiscount shows loosely related products; a filter id that matches nothing gives an empty items list with total_results 0. Pass a sku to Get Cdiscount product or Get Cdiscount product reviews.
