Search Carrefour products
Automatically search Carrefour products on carrefour.fr. Search Carrefour.fr by free-text query, one page of 30 at a time: total results and pages, has_next_page, and for each product its barcode number, title, brand, link, price in euros and unit price, availability, category, image, whether Carrefour or a marketplace seller sells it, and how many other offers it has. A page past the last returns an empty list. Pass the barcode number to Get Carrefour product.
Inputs
query requiredFree-text search, e.g. "lait".
page optionalResults page, from 1.
Default: 1Output
page requireditems requiredquery requiredhas_next_page requiredtotal_results requiredtotal_pages optionalFAQ
Add Carrefour product to cart
Add a Carrefour.fr product to this browser's cart from its barcode number or product link, with an optional offer id (Carrefour's or a marketplace seller's, from List Carrefour product offers) and a quantity from 1 to 10, and return the cart afterwards. Without an offer id, the offer the product page shows first is added. Works as a guest. Nothing is paid or ordered. An unknown product, an unknown or unavailable offer, or a quantity above the offer's limit fails with an error.
Remove Carrefour product from cart
Remove a product's line from this browser's Carrefour.fr cart by barcode number, whatever its quantity, and return the cart left. Takes the line's review_hash from List Carrefour cart items: when it is missing or the line changed since, nothing is removed and the error gives the line as it is now and its hash. When the product is in the cart from several offers, pass the offer id. A product not in the cart returns removed false.
List Carrefour cart items
List the items in the Carrefour.fr cart of this browser (guest or signed in): grocery, home-delivered and marketplace lines, each with its line id, barcode number, offer id, name, seller, quantity, unit price and line price in euros and its review_hash (pass it to Remove Carrefour product from cart), plus the item count and total. An empty cart returns an empty list.
