Grocery & delivery
Instacart Scraper
instacart.com
Experiencing issues This scraper is not working reliably right now and our team is investigating. Requests may fail until the fix is live; the measured success rate is withheld until then.
Instacart lists the catalogues of hundreds of US retailers, each priced at the store that delivers to the shopper's ZIP code, and builds its pages in the browser from its own GraphQL API behind AWS WAF. Two dedicated plugin endpoints read that API directly and return products already parsed. The retailer parameter takes the retailer's Instacart slug, the part after /store/ in an Instacart link, so one endpoint covers Costco, ALDI, Publix, Kroger, CVS, Sprouts, Wegmans and Sam's Club as well as Safeway and the other Albertsons banners (albertsons, vons, jewel-osco, acme-markets, randalls, tom-thumb, pavilions, haggen). zip picks the delivery area, and every answer names the store that priced it. instacart-search returns up to 300 products for a query in Instacart's order, each with its item and product id, name, brand, size and pack size, the USD price and the was-price when it is on sale, the unit price per oz, lb or count, whether it is sold by weight with the estimated package weight, deals such as Buy 1, get 1 free, stock level, rating and review count, category, store-brand flag, dietary tags, image and link. instacart-product takes a product id, an item id or a product link and adds the description, ingredients, directions, warnings and image gallery. Prices are the ones Instacart shows for that store, which can be higher than the retailer's shelf prices. No Instacart account, login or API key is involved.
What you can extract
- Item id, product id, name, brand, size and pack size, image and product link
- Price, was-price and on-sale flag, and the unit price (for example $0.22 per oz)
- Sold by weight or each, with the estimated package weight and price for goods sold by weight
- Deals and promotions, such as Buy 1, get 1 free or Spend $30, save $6
- Stock level, rating and review count, category, store-brand flag and dietary tags
- The store that priced the answer: shop id, retailer location id, service type and ZIP code
- Any Instacart retailer by its slug, including Safeway, Albertsons, Vons, Jewel-Osco and ACME; up to 300 products per search
- Product detail: description, ingredients, directions, warnings and image gallery
Dedicated endpoints
/groceries/instacart-search Experiencing issues Instacart search for one retailer
retailer (an Instacart slug such as costco, safeway, vons or jewel-osco, or a store link) and query return products in Instacart order with id, productId, name, brand, brandId, size, packageSize, price, priceText, wasPrice, onSale, unitPrice (price, per, text), soldBy, estimatedWeight, promotions (text, type), available, stockLevel, stockText, rating, reviewCount, category, storeBrand, dietary, aisle, image, sponsored, url and retailer, plus store (shopId, retailerLocationId, retailerName, serviceType, postalCode) and totalResults. zip is a 5-digit US ZIP code (default 94105), max_results 1-300, billed one request per 30 products.
/groceries/instacart-product Experiencing issues Instacart product
product (a product id, an item id from a search or an instacart.com/products/ link) with retailer and zip returns product with the search fields plus description, ingredients, directions, warnings, sections and images, and store. A link carrying retailerSlug needs no retailer. One request per call.
How to scrape it
curl -X POST \
-H "X-ScrapeUnblocker-Key: $SU_API_KEY" \
"https://api.scrapeunblocker.com/groceries/instacart-search?retailer=safeway&query=greek%20yogurt&zip=94110"import requests
resp = requests.post(
"https://api.scrapeunblocker.com/groceries/instacart-search",
headers={"X-ScrapeUnblocker-Key": SU_API_KEY},
params={"retailer": "safeway", "query": "greek yogurt", "zip": "94110"},
)
print(resp.text)import { ScrapeUnblockerClient } from 'scrapeunblocker';
const su = new ScrapeUnblockerClient({ apiKey: process.env.SU_API_KEY });
const results = await su.instacartSearch('greek yogurt', {
retailer: 'safeway',
zip: '94110',
maxResults: 60,
});
const product = await su.instacartProduct('16902650', {
retailer: 'costco',
zip: '94110',
});
console.log(results);
console.log(product); Requests are POST and take their parameters in the query string. Browser rendering always happens - there is no flag to enable.
Example response
{
"retailer": "safeway",
"query": "greek yogurt",
"zip": "94110",
"store": {
"shopId": "5468",
"retailerId": "1",
"retailerLocationId": "75",
"retailerName": "Safeway",
"serviceType": "delivery",
"postalCode": "94110",
"zoneId": "1"
},
"totalResults": 300,
"resultsCollected": 2,
"products": [
{
"id": "items_75-35877468",
"productId": "35877468",
"name": "Lucerne Strained Greek Nonfat Plain Yogurt",
"brand": "Lucerne",
"brandId": "48795",
"size": "32 oz",
"packageSize": "32 oz",
"price": 6.99,
"priceText": "$6.99",
"wasPrice": null,
"onSale": false,
"unitPrice": { "price": 0.22, "per": "oz", "text": "$0.22/oz" },
"soldBy": "each",
"estimatedWeight": null,
"promotions": [],
"available": true,
"stockLevel": "in_stock",
"stockText": null,
"rating": null,
"reviewCount": null,
"category": "Greek & Icelandic Yogurt",
"storeBrand": true,
"dietary": [ "Fat-free" ],
"aisle": null,
"image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_afba90e7-97e3-4fc2-816f-94593ebb5f27.png",
"sponsored": false,
"url": "https://www.instacart.com/products/35877468-lucerne-nonfat-plain-strained-greek-yogurt-32-oz?retailerSlug=safeway",
"retailer": "safeway"
},
{
"id": "items_75-227483",
"productId": "227483",
"name": "Greek Gods Yogurt, Greek Style, Plain Traditional",
"brand": "Greek Gods",
"brandId": "17042",
"size": "32 oz",
"packageSize": "32 oz",
"price": 7.99,
"priceText": "$7.99",
"wasPrice": 8.99,
"onSale": true,
"unitPrice": { "price": 0.25, "per": "oz", "text": "$0.25/oz" },
"soldBy": "each",
"estimatedWeight": null,
"promotions": [ {"text": "11% off", "type": "sale", "details": null} ],
"available": true,
"stockLevel": "high",
"stockText": "Many in stock",
"rating": null,
"reviewCount": null,
"category": "Greek & Icelandic Yogurt",
"storeBrand": false,
"dietary": [],
"aisle": null,
"image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_70c7d9a6-2e3e-47a3-851b-31d98a7b36f5.png",
"sponsored": false,
"url": "https://www.instacart.com/products/227483-greek-gods-plain-traditional-greek-style-yogurt-32-0-oz?retailerSlug=safeway",
"retailer": "safeway"
}
],
"pagesFetched": 1,
"url": "https://www.instacart.com/store/safeway/s?k=greek%20yogurt"
} Frequently asked questions
Is it legal to scrape Instacart?
Collecting publicly available Instacart data such as product names, prices, unit prices and deals is lawful in many jurisdictions, but the rules depend on your country, the data you collect and how you use it. ScrapeUnblocker returns the public product data a signed-out shopper sees; what you collect and how you use it is your responsibility.
How do I scrape Instacart without getting blocked?
Instacart pages are empty shells that load their products from Instacart's GraphQL API, and its AWS WAF refuses the search request of a client that has not been through Instacart's pages first. The instacart-search and instacart-product plugins open a guest shopper session on an ISP exit, set the delivery ZIP code, find the retailer's store and read the same GraphQL answers the website reads, with no browser; an exit Instacart refuses is rested and the call moves to a fresh one. In ScrapeUnblocker's benchmark it returned data on 99.9% of 1,074 calls (644 searches and 430 products over 70 retailers and 85 ZIP codes), about 4.5s per call.
Can I scrape Safeway, Albertsons, Vons or Costco through Instacart?
Yes. Pass the retailer's Instacart slug as retailer: safeway, albertsons, vons, jewel-osco, acme-markets, randalls, tom-thumb, pavilions, haggen and kings-food-markets for the Albertsons family, and costco, aldi, publix, kroger, sprouts, wegmans, sams-club, cvs, walgreens or petco for the others. Any retailer on Instacart works; its slug is the part after /store/ in an Instacart link. The prices are Instacart's for that retailer's store, which can be higher than the retailer's own shelf or website prices.
How do ZIP codes and stores work?
Instacart prices and stock belong to one store of a retailer, the one that serves the shopper's delivery area. Pass zip as a 5-digit US ZIP code and the plugin sets that location before searching; every answer carries store with the shop id, retailer location id, service type and the ZIP code used, so you know exactly which store priced it. Without zip it uses 94105 (San Francisco). A retailer with no store for that ZIP code answers 404, which is not billed.
What Instacart data can I get?
For each product in a search: the item and product id, name, brand, size and pack size, the USD price as a number and as Instacart shows it, the was-price and on-sale flag, the unit price, whether it is sold by weight with the estimated package weight, the deals, stock level, rating and review count, category, store-brand flag, dietary tags, image and link, plus the store and Instacart's total result count. instacart-product adds the description, ingredients, directions, warnings, every text section of the product page and the image gallery.
How much does it cost to scrape Instacart?
A search is billed one request per 30 products returned, so the default 30 is 1 request and max_results=300 is 10, and pagesFetched shows the exact number. A product is one request. 1 request = 1 credit, EUR 1.00 per 1,000 on pay as you go, down to about EUR 0.55 per 1,000 on the Ultimate plan. Blocks, timeouts and 404s are not billed, and the free trial includes 500 requests with no card.
Related scrapers
Instacart and other names and marks of instacart.com belong to their owner and are used here only to identify the website this API works with. ScrapeUnblocker is an independent service, not affiliated with, endorsed by or sponsored by the owner of instacart.com.
Start scraping this site today
Free tier included. No credit card required to test it.