# Add Decathlon Switzerland product to cart

Automatically add Decathlon Switzerland product to cart on decathlon.ch. Add a Decathlon Switzerland product to the cart in the size and quantity you choose, and get the cart back.

- Site: decathlon.ch
- Address: `reduck/decathlon.ch/add_to_cart`
- Updated: 2026-12-01 (v1)
- Author: Reduck AI (reduck)

## About

Give it a decathlon.ch product link, a quantity from 1 to 10 and, if the color has several sizes, the size. It adds the product as the add to cart button does and returns each cart line with its price in Swiss francs, plus the total. A product only for store pickup, or a size that cannot be bought, fails with an error. Nothing is paid or ordered. No account is needed, and it works in your own browser through the Reduck extension.

## Run it

Ask an AI agent connected to Reduck over MCP (`https://mcp.reduck.ai/mcp`) to run `reduck/decathlon.ch/add_to_cart`, or run it from a terminal:

```bash
npx @reduck-ai/cli@latest run --script reduck/decathlon.ch/add_to_cart
```

## Input

- `url` (string, required): Link of the product page (https://www.decathlon.ch/fr/p/...), as returned by Search Decathlon Switzerland products.
- `sku_id` (string, optional): Id of the exact size to add, from the variants of Get Decathlon Switzerland product. Needed when the color has several sizes; leave out when it has one.
- `quantity` (integer, optional): Number of units to add, 1 to 10.

## Output

- `name` (string | null, required)
- `added` (integer, required)
- `count` (integer, required)
- `lines` (array, required)
- `total` (number | null, required)
- `offerId` (string | null, required)
- `productId` (string, required)
- `currency` (string, optional)
- `reviewHash` (string, optional)

## FAQ

### What does "Add Decathlon Switzerland product to cart" do?

Add a Decathlon Switzerland (decathlon.ch) product to the cart of this browser from its product page link, with a quantity from 1 to 10, as the page's own add to cart button does, and return the cart 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 Swiss francs, the count and the total, plus the reviewHash of the line added. The link picks the color and sku_id picks the size; a color with several sizes and no sku_id fails and lists the sizes. Works as a guest, with no account: lines already in the cart stay. Nothing is paid or ordered. A size that cannot be bought, a product offered only for store pickup and a link that is not a decathlon.ch product page fail with an error. Works in your own browser (the extension), not in a cloud browser.

### How do I automatically add Decathlon Switzerland product to cart on decathlon.ch?

Ask an AI agent connected to Reduck to run reduck/decathlon.ch/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/decathlon.ch/add_to_cart

### Is there a decathlon.ch API to add Decathlon Switzerland product to cart?

You do not need one. "Add Decathlon Switzerland product to cart" drives the real decathlon.ch pages in a browser, so it works whether or not decathlon.ch offers an API for this.

### What information do I need to provide?

Required: url. Optional: sku_id, quantity.

### What does it return?

It returns name, added, count, lines, total, offerId, currency, productId, reviewHash.

### Do I need to be logged in to decathlon.ch?

No. It only uses pages of decathlon.ch that are reachable without signing in.

### Does it change anything on decathlon.ch, or only read data?

It makes changes on decathlon.ch, like sending, posting, booking or buying something.

### How do I run it?

Ask an AI agent connected to Reduck to run reduck/decathlon.ch/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/decathlon.ch/add_to_cart

### Who maintains it?

It is one of Reduck's official scripts.

Source: https://reduck.ai/explore/scripts/reduck/decathlon.ch/add_to_cart
