1,920 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
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.
Get Carrefour product
Read one Carrefour.fr product from its barcode number (as Search Carrefour products returns it) or its product link: title, brand, link, price in euros and unit price of the offer shown, seller, availability, purchase limit, category path, images, description, rating, and how many other offers it has with the best one. An unknown barcode number fails with an error that says so.
Search Carrefour products
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.
List Carrefour product offers
List every offer Carrefour.fr shows for one product, from its barcode number or product link: Carrefour's own offers and each marketplace seller's, with offer id, seller name and id, price in euros, shipping price and days, availability, purchase limit and the seller's rating. Pass an offer id to Add Carrefour product to cart to buy from that seller. An unknown barcode number fails with an error that says so.
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.
