Search Kroger products
Automatically search Kroger products on kroger.com. Search Kroger.com by free-text query, one page at a time (24 results a page, plus sponsored ones, marked). Returns the total count, the store whose prices are shown, and for each product its UPC, link, name, brand, size, price in US dollars, regular price when on sale, unit price text, rating, review count and image. A query with no match, or a page past the last, returns an empty list. Pass a UPC to Get Kroger product.
Inputs
query requiredFree-text search, e.g. "milk".
page optionalOutput
page requireditems requiredquery requiredtotal_results requiredlocation_id optionalFAQ
Remove from Kroger cart
Remove a product's whole line from the signed-in Kroger.com cart, by UPC, after checking the line is still the one reviewed: pass the review_hash that List Kroger cart items gave for it. If the line changed (quantity or price), nothing is removed and the error gives the line as it is now and its new hash. Returns the cart after the removal.
List Kroger cart items
Read the signed-in Kroger.com cart: item count, total of the prices Kroger shows at the store the cart uses, and each line with its line id, UPC, name, seller, quantity, unit price and line price in US dollars, plus a review_hash per line to pass to Remove from Kroger cart. An empty cart returns no lines.
Add to Kroger cart
Add a Kroger.com product to the signed-in cart for pickup, by UPC, in the given quantity (added to any already in the cart). Returns the cart as it is after the add, with a review_hash per line. Refuses a product the store cannot sell for pickup, or a product Kroger does not have.
