App Logo
decathlon.fr

Add Decathlon product to cart

Automatically add Decathlon product to cart on decathlon.fr. Add a Decathlon.fr product to the shopping cart from its product page link, with an optional quantity, and return the cart as the site holds it afterwards: each line with its product id (the sku id of the exact size), offer id, name, seller, quantity, unit price and line price in euros, plus the item count and the total. Products come in colors and sizes: the link picks the color, and the sku_id picks the size. When the color has several sizes and no sku_id is given, it fails and lists the sizes with their sku_id (Get Decathlon product lists them too). Works as a guest, with no account: the cart lives in the browser, so lines already in it stay and are listed too. Nothing is paid or ordered. A product that cannot be bought (unavailable size, out of stock) fails with an error; a link that is not a Decathlon product page fails with an error.

Inputs

url required

Link of the product page (https://www.decathlon.fr/p/...), as returned by Search Decathlon products.

sku_id optional

Id of the exact size to add, from the variants of Get Decathlon product. Needed when the color has several sizes; leave out when it has one.

quantity optional

Number of units to add, 1 to 10.

Default: 1

Output

name required
added required
count required
lines required
total required
offerId required
productId required

FAQ

Add a Decathlon.fr product to the shopping cart from its product page link, with an optional quantity, and return the cart as the site holds it afterwards: each line with its product id (the sku id of the exact size), offer id, name, seller, quantity, unit price and line price in euros, plus the item count and the total. Products come in colors and sizes: the link picks the color, and the sku_id picks the size. When the color has several sizes and no sku_id is given, it fails and lists the sizes with their sku_id (Get Decathlon product lists them too). Works as a guest, with no account: the cart lives in the browser, so lines already in it stay and are listed too. Nothing is paid or ordered. A product that cannot be bought (unavailable size, out of stock) fails with an error; a link that is not a Decathlon product page fails with an error.
Ask an AI agent connected to Reduck to run reduck/decathlon.fr/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/decathlon.fr/add_to_cart
You do not need one. "Add Decathlon product to cart" drives the real decathlon.fr pages in a browser, so it works whether or not decathlon.fr offers an API for this.
Required: url. Optional: sku_id, quantity.
It returns name, added, count, lines, total, offerId, productId.
No. It only uses pages of decathlon.fr that are reachable without signing in.
It makes changes on decathlon.fr, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/decathlon.fr/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/decathlon.fr/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking