1,977 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
Get Instacart product offers
List the stores that sell one Instacart.com product in the delivery area Instacart has for this browser, with each store's price in US dollars, its regular price when discounted and the discount text. Returns the postal code used. Pass a store's slug to Search Instacart store products or Add to Instacart cart.
Get Instacart product
Read one Instacart.com product by product id or product link, across stores: name, brand, size, category, description and detail sections, the lowest price Instacart states for it, rating out of 5, rating count and images. For each store's price, use Get Instacart product offers.
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.
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.
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.
