List Instacart cart items
Automatically list Instacart cart items on instacart.com. Read one store's cart on Instacart.com (each store has its own cart), by store slug: the cart id, item count, total of the item prices Instacart shows, and each line with its line id, product id, item id (offerId), name, store, quantity, unit price and line price in US dollars, plus a review_hash per line to pass to Remove from Instacart cart. An empty cart returns no lines.
Inputs
store requiredThe store's Instacart slug, as in instacart.com/store/<slug> (e.g. "wegmans").
Output
count requiredlines requiredstore requiredtotal requiredcartId requiredFAQ
Remove from Instacart cart
Remove a product's whole line from one store's Instacart.com cart, by store slug and product id, after checking the line is still the one reviewed: pass the review_hash that List Instacart 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 that store's cart after the removal.
Add to Instacart cart
Add an Instacart.com product to one store's cart, by store slug and product id, in the given quantity (added to any already in that cart). Returns that store's cart after the add, with a review_hash per line. Refuses a product the store does not sell, a store Instacart has not in this delivery area, or a total above the most Instacart allows per order. On a browser that does not keep Instacart's cookies between runs, the cart does not persist.
Search Instacart store products
Search one store on Instacart.com (by its store slug, such as "wegmans" or "costco") for a free-text query, 40 results a page, at the delivery area Instacart has for this browser. Returns the total result count, the store's shop id and the postal code used, and for each product its item id, product id, link, name, brand, size, price in US dollars, regular price when on sale, unit price text, stock level and image. A query with no match, or a page past the last, returns an empty list.
