App Logo
hollandandbarrett.com

Add a product to the Holland & Barrett cart

Automatically add a product to the Holland & Barrett cart on hollandandbarrett.com. Add a product of Holland & Barrett UK (hollandandbarrett.com, the United Kingdom store) to the basket of this browser, from its Holland & Barrett product id or product page link, with a quantity, as the product page's add to basket button does. Each size of a product has its own product id (see sizes in Get Holland & Barrett product). Returns the product id, its sku (offerId) and name, the units added, and the basket after the add: each line with its product id, sku, name, seller, quantity, unit price and line price in pounds (GBP), the item count, the total and the currency. Works as a guest, with no account: lines already in the basket stay. Nothing is ordered or paid. An unknown product, a product page with no add button, or an add the site refuses fails with an error that says so.

Inputs

product required

A Holland & Barrett product id as Search Holland & Barrett products returns it, for example 6100005252, or a hollandandbarrett.com product page link.

quantity optional

How many units to add.

Default: 1

Output

name required
added required

Units this run added.

count required

Units in the basket after the add.

lines required
total required

Total of the basket with promotions applied, delivery not included.

offerId required

The sku of the product added.

currency required
productId required

FAQ

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

Start building not clicking