Search HP products
Automatically search HP products on hp.com. Search the HP US store (hp.com/us-en/shop) by free-text query and return one page of results (24 per page): query, page, sort, total_count, page_count, has_next_page and items (product_id, which is the HP part number, name, url, price after instant savings, list_price, currency, image_url, rating, review_count, stock_status, product_class, category). Sort by relevance, price_low, price_high, newest or top_rated. A query with no match returns an empty list. A page past page_count returns an empty list. Prices are in US dollars, as HP shows them to a guest.
Inputs
query requiredFree-text search, for example "laptop" or "OmniBook 5".
page optionalResults page, 24 items per page. Stop when has_next_page is false.
Default: 1sort optionalSort order. Omit for HP's default order (relevance).
Output
page requireditems requiredquery requiredhas_next_page requiredurl optionalThe HP search page of the query.
sort optionalpage_count optionaltotal_count optionalNumber of products HP finds for the query.
FAQ
Remove a product from the HP cart
Remove a line from the HP US store (hp.com/us-en/shop) cart of this browser, by its line id or by the product's HP part number (from List the items in the HP cart), and return the whole cart afterwards with removed true. A product that is not in the cart is not an error: nothing changes and removed is false. Works as a guest, with no account. Nothing is paid or ordered.
Add a product to the HP cart
Add a fixed HP model (product class STO) of the HP US store (hp.com/us-en/shop) to the cart of this browser, by its link or HP part number, with a quantity from 1 to 10, and return the whole cart afterwards: each line with its line id, product id (the HP part number), offer id (always null), name, seller (always HP), quantity, unit price and line price in US dollars, plus the item count and the products total before tax and shipping. Works as a guest, with no account: lines already in the cart stay and are listed too. Nothing is paid or ordered. A customizable model (CTO), an out of stock product, an unknown part number and a link that is not an HP product page fail with an error that says so.
List the items in the HP cart
List the items in the HP US store (hp.com/us-en/shop) cart of this browser, as the site holds it: for each line its line id, product id (the HP part number), offer id (always null), name, seller (always HP), quantity, unit price and line price in US dollars, plus the number of items and the products total, before tax and shipping. The cart is the guest cart of the browser, so no sign-in is needed. An empty cart returns an empty list and a zero count.
