Search Holland & Barrett products
Automatically search Holland & Barrett products on hollandandbarrett.com. Search products on Holland & Barrett UK (hollandandbarrett.com, the United Kingdom store) by keywords, and get one page of results in the order the site gives for relevance: each product with its Holland & Barrett product id and sku, name, brand, link, image, price and earlier price in pounds (GBP), discount percent, promotion, price per unit, rating and review count, availability, whether a marketplace seller sells it and whether it is a sponsored listing. A page has up to 40 results: pass page for the next ones, and use pageCount to know how many there are. A search with no match, or a page after the last one, gives found false and an empty list.
Inputs
query requiredSearch words, as typed in the Holland & Barrett search box.
page optionalThe result page, from 1. Holland & Barrett shows up to 40 results on a page.
Default: 1Output
page requiredfound requiredFalse when the site answered with its no result page.
query requiredtotal requiredThe number of products the site gives for the search.
pageSize requiredproducts requiredpageCount requiredsearchedQuery requiredThe words the site searched, after its spelling check.
FAQ
Remove a product from the Holland & Barrett cart
Remove a product from the basket of this browser on Holland & Barrett UK (hollandandbarrett.com, the United Kingdom store), from its Holland & Barrett product id or product page link, whatever its quantity, with the basket page's own quantity button. Returns removed and the basket after it: 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. A product that is not in the basket gives removed false and the basket unchanged, not an error. Works as a guest, with no account.
Add a product to the Holland & Barrett cart
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.
List Holland & Barrett cart items
List the basket of this browser on Holland & Barrett UK (hollandandbarrett.com, the United Kingdom store): each line with its product id, sku (as line id and offer id), name, seller (Holland & Barrett or a marketplace seller), quantity, unit price and line price in pounds (GBP), plus the item count, the basket total with promotions applied (delivery not included) and the currency. Works as a guest, with no account. A browser that never had a basket gives an empty one.
