Search JD Sports products
Automatically search JD Sports products on jdsports.co.uk. Search products on JD Sports UK (jdsports.co.uk, the United Kingdom store) by keywords, and get one page of results in the order the site recommends: each product with its JD Sports product id, name, brand, colour, link, image, price and currency (pounds, GBP), whether it is on sale and its discount percent, whether it is in stock, its sizes and its badge. A page has up to 72 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 an empty list. When the site opens a brand or category page for the words, redirectUrl gives that page.
Inputs
query requiredSearch words, as typed in the JD Sports search box.
page optionalThe result page, from 1. JD Sports shows up to 72 results on a page.
Default: 1Output
page requiredquery requiredtotal requiredThe number of results the site gives for the search.
pageSize requiredproducts requiredpageCount requiredredirectUrl requiredThe page the site opened instead of a search, when it sent the words to a brand or category page.
FAQ
Remove a product from the JD Sports cart
Remove a product from the shopping bag of this browser on JD Sports UK (jdsports.co.uk, the United Kingdom store), from its JD Sports product id or product page link, whatever its quantity, as the bag page's delete button does: every line of the product, or only the lines of one size when you pass its sku (offerId). Returns removed and the bag after it: 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, the subtotal and the currency. A product that is not in the bag gives removed false and the bag unchanged, not an error. Works as a guest, with no account.
Add a product to the JD Sports cart
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.
List JD Sports cart items
List the shopping bag of this browser on JD Sports UK (jdsports.co.uk, the United Kingdom store): each line with its line id, product id, size sku (offerId), name, size, quantity, unit price and line price in pounds (GBP), plus the item count, the total with promotions applied, the subtotal before them, and the currency. The site can put units of one product on several lines of one unit when a promotion prices them differently. Works as a guest, with no account. A browser that never had a bag gives an empty one.
