Search Instacart store products
Automatically search Instacart store products on instacart.com. 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.
Inputs
query requiredstore requiredThe store's Instacart slug, as in instacart.com/store/<slug> (e.g. "wegmans").
page optionalOutput
page requireditems requiredquery requiredstore requiredtotal_results requiredshop_id optionalpostal_code optionalhas_next_page optionalFAQ
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.
List Instacart cart items
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.
