App Logo
jdsports.co.uk

Add a product to the JD Sports cart

Automatically add a product to the JD Sports cart on jdsports.co.uk. Add one size of a product of JD Sports UK (jdsports.co.uk, the United Kingdom store) to the shopping bag of this browser, from its JD Sports product id or product page link and its size (or the size sku from Get JD Sports product), with a quantity, as the product page's size and add to bag buttons do. A product with one size needs no size. Returns the product id, the size sku (offerId), name and size added, the units added, and the bag after the add: each line with its line id, product id, size sku, name, size, quantity, unit price and line price in pounds (GBP), the item count, the total with promotions applied, the subtotal and the currency. Works as a guest, with no account: lines already in the bag stay. Nothing is ordered or paid. An unknown product, a size the product does not have, a size out of stock, or an add the site refuses fails with an error that says so.

Inputs

product required

A JD Sports product id as Search JD Sports products returns it, for example 19760893, or a jdsports.co.uk product page link.

size optional

The size as the product page writes it, for example M or 9. Leave it out for a product with one size, or pass offerId instead.

offerId optional

The sku of the size, from the variants of Get JD Sports product.

quantity optional

How many units to add.

Default: 1

Output

name required
size required
added required

Units this run added.

count required

Units in the bag after the add.

lines required
total required

Total of the bag with promotions applied, delivery not chosen.

offerId required

The sku of the size added.

currency required
subtotal required
productId required

FAQ

Add one size of a product of JD Sports UK (jdsports.co.uk, the United Kingdom store) to the shopping bag of this browser, from its JD Sports product id or product page link and its size (or the size sku from Get JD Sports product), with a quantity, as the product page's size and add to bag buttons do. A product with one size needs no size. Returns the product id, the size sku (offerId), name and size added, the units added, and the bag after the add: each line with its line id, product id, size sku, name, size, quantity, unit price and line price in pounds (GBP), the item count, the total with promotions applied, the subtotal and the currency. Works as a guest, with no account: lines already in the bag stay. Nothing is ordered or paid. An unknown product, a size the product does not have, a size out of stock, or an add the site refuses fails with an error that says so.
Ask an AI agent connected to Reduck to run reduck/jdsports.co.uk/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/jdsports.co.uk/add_to_cart
You do not need one. "Add a product to the JD Sports cart" drives the real jdsports.co.uk pages in a browser, so it works whether or not jdsports.co.uk offers an API for this.
Required: product. Optional: size, offerId, quantity.
It returns name, size, added, count, lines, total, offerId, currency, subtotal, productId.
No. It only uses pages of jdsports.co.uk that are reachable without signing in.
It makes changes on jdsports.co.uk, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/jdsports.co.uk/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/jdsports.co.uk/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking