{
  "data": {
    "id": "PAkt2NHLxYZPkoCRa",
    "actId": "vXLIc64dhz3MO6Z2l",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-11-21T09:42:16.947Z",
    "finishedAt": "2026-11-21T09:42:20.710Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "inputSchema": "{\n  \"title\": \"Instacart Storefront Price Scraper Input\",\n  \"description\": \"Search a retailer's Instacart storefront for priced products, browse a department/aisle, look up specific items by ID, or pull a retailer's store overview.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to fetch.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"search\",\n        \"browseAisle\",\n        \"listAisles\",\n        \"productDetail\",\n        \"storeOverview\"\n      ],\n      \"enumTitles\": [\n        \"Search products by keyword\",\n        \"Browse a department/aisle (category)\",\n        \"List a retailer's departments/aisles\",\n        \"Lookup items by ID\",\n        \"Store overview (retailer info + trending items)\"\n      ],\n      \"default\": \"search\",\n      \"prefill\": \"search\"\n    },\n    \"retailerSlug\": {\n      \"title\": \"Retailer\",\n      \"type\": \"string\",\n      \"description\": \"Which Instacart-partnered retailer's storefront to scrape. Pick from the list, or use \\\"Custom retailer slug\\\" below to supply any Instacart retailer slug not in this list.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"costco\",\n        \"safeway\",\n        \"publix\",\n        \"cvs\",\n        \"walgreens\",\n        \"aldi\",\n        \"wegmans\",\n        \"kroger\",\n        \"meijer\",\n        \"food-lion\",\n        \"giant-eagle\",\n        \"vons\",\n        \"randalls\",\n        \"king-soopers\",\n        \"fred-meyer\",\n        \"ralphs\",\n        \"hy-vee\",\n        \"shoprite\",\n        \"winn-dixie\",\n        \"sams-club\",\n        \"gristedes\",\n        \"jewel-osco\",\n        \"acme-markets\",\n        \"pavilions\",\n        \"tom-thumb\",\n        \"smart-final\",\n        \"bevmo\",\n        \"cub\",\n        \"petco\",\n        \"staples\"\n      ],\n      \"enumTitles\": [\n        \"Costco\",\n        \"Safeway\",\n        \"Publix\",\n        \"CVS\",\n        \"Walgreens\",\n        \"ALDI\",\n        \"Wegmans\",\n        \"Kroger\",\n        \"Meijer\",\n        \"Food Lion\",\n        \"Giant Eagle\",\n        \"Vons\",\n        \"Randalls\",\n        \"King Soopers\",\n        \"Fred Meyer\",\n        \"Ralphs\",\n        \"Hy-Vee\",\n        \"ShopRite\",\n        \"Winn-Dixie\",\n        \"Sam's Club\",\n        \"Gristedes\",\n        \"Jewel-Osco\",\n        \"Acme Markets\",\n        \"Pavilions\",\n        \"Tom Thumb\",\n        \"Smart & Final\",\n        \"BevMo!\",\n        \"Cub\",\n        \"Petco\",\n        \"Staples\"\n      ],\n      \"default\": \"costco\",\n      \"prefill\": \"costco\"\n    },\n    \"customRetailerSlug\": {\n      \"title\": \"Custom retailer slug (overrides Retailer above)\",\n      \"type\": \"string\",\n      \"description\": \"Any Instacart retailer slug, e.g. `whole-foods-market` or `sprouts-farmers-market`. Find a retailer's slug in its Instacart storefront URL: instacart.com/store/<slug>/storefront. Leave empty to use the Retailer dropdown instead.\",\n      \"editor\": \"textfield\"\n    },\n    \"postalCode\": {\n      \"title\": \"Delivery ZIP code (optional)\",\n      \"type\": \"string\",\n      \"description\": \"Five-digit US ZIP code to price this retailer's storefront at, e.g. `10001`. Leave empty to use Instacart's default location for the session. The actor resolves the matching shop and zone before scraping; a ZIP this retailer does not serve fails the run instead of silently returning another market's prices.\",\n      \"editor\": \"textfield\",\n      \"pattern\": \"^[0-9]{5}$\"\n    },\n    \"searchQuery\": {\n      \"title\": \"Search query (mode=search)\",\n      \"type\": \"string\",\n      \"description\": \"Keyword to search for within the selected retailer's storefront, e.g. `milk`, `organic eggs`, `paper towels`. Results are filtered so every returned item's name/brand/category contains each significant word of your query (generic words like \\\"organic\\\" are ignored for this check). Note: this is a substring check, not full product understanding, so on rare occasions an item that happens to contain all your query words in an unrelated context (e.g. a \\\"milk chocolate\\\"-flavored candy matching a search for \\\"almond milk\\\") can still slip through.\",\n      \"editor\": \"textfield\",\n      \"default\": \"milk\",\n      \"prefill\": \"milk\"\n    },\n    \"orderBy\": {\n      \"title\": \"Sort order (mode=search, browseAisle)\",\n      \"type\": \"string\",\n      \"description\": \"How to order results.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"bestMatch\",\n        \"priceAsc\",\n        \"priceDesc\"\n      ],\n      \"enumTitles\": [\n        \"Best match (default)\",\n        \"Price: low to high\",\n        \"Price: high to low\"\n      ],\n      \"default\": \"bestMatch\",\n      \"prefill\": \"bestMatch\"\n    },\n    \"aisleSlug\": {\n      \"title\": \"Aisle / department slug (mode=browseAisle)\",\n      \"type\": \"string\",\n      \"description\": \"Which department/aisle (a.k.a. \\\"collection\\\") to browse within the selected retailer, e.g. `9797-crackers`, `produce`, or `dynamic_collection-sales` (retailer-wide deals). Run `mode=listAisles` first to get the exact slugs available for your chosen Retailer, or copy one from an Instacart collection URL: instacart.com/store/<retailer>/collections/<slug>.\",\n      \"editor\": \"textfield\",\n      \"prefill\": \"9797-crackers\"\n    },\n    \"itemIds\": {\n      \"title\": \"Item IDs (mode=productDetail)\",\n      \"type\": \"array\",\n      \"description\": \"Full Instacart item IDs to look up, e.g. `items_74-17444603` (copy from a `search`, `browseAisle`, or `storeOverview` result's `itemId` field). Must all belong to the same Retailer selected above.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": [\n        \"items_74-17444603\"\n      ]\n    },\n    \"minPrice\": {\n      \"title\": \"Min price (USD)\",\n      \"type\": \"integer\",\n      \"description\": \"Drop items priced below this amount (whole dollars).\",\n      \"minimum\": 0,\n      \"maximum\": 10000\n    },\n    \"maxPrice\": {\n      \"title\": \"Max price (USD)\",\n      \"type\": \"integer\",\n      \"description\": \"Drop items priced above this amount (whole dollars).\",\n      \"minimum\": 0,\n      \"maximum\": 10000\n    },\n    \"brandContains\": {\n      \"title\": \"Brand name contains\",\n      \"type\": \"string\",\n      \"description\": \"Keep only items whose brand name contains this text (case-insensitive).\",\n      \"editor\": \"textfield\"\n    },\n    \"inStockOnly\": {\n      \"title\": \"In-stock only\",\n      \"type\": \"boolean\",\n      \"description\": \"Drop items that are marked out of stock.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"onSaleOnly\": {\n      \"title\": \"On sale only\",\n      \"type\": \"boolean\",\n      \"description\": \"Keep only items currently discounted from their regular price (has a `regularPrice` higher than `price`).\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"minRating\": {\n      \"title\": \"Min rating (0-5)\",\n      \"type\": \"number\",\n      \"description\": \"Drop items with an average customer rating below this (out of 5). Items without a public rating are kept (unknown, not zero).\",\n      \"minimum\": 0,\n      \"maximum\": 5\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on emitted records.\",\n      \"minimum\": 1,\n      \"maximum\": 1000,\n      \"default\": 20,\n      \"prefill\": 20\n    },\n    \"proxyConfiguration\": {\n      \"title\": \"Proxy configuration\",\n      \"type\": \"object\",\n      \"description\": \"Optional. Leave empty to let the actor choose a working connection automatically (a proxy is never required). Set this only if you want to use your own proxy configuration.\",\n      \"editor\": \"proxy\"\n    }\n  },\n  \"required\": [\n    \"mode\",\n    \"retailerSlug\"\n  ]\n}",
    "readme": "# Instacart Storefront Price Scraper\n\nScrape **real-time grocery prices from Instacart storefronts** — Costco, Safeway, Publix, Kroger, Walgreens, ALDI, Wegmans, and 20+ other Instacart-partnered retailers. Search any storefront by keyword, browse a department/aisle, look up specific products by item ID, or pull a retailer's store overview with trending items. No login, no API key, no cookies required.\n\n## What this actor does\n\n- **Five modes:** `search` (keyword → priced results), `browseAisle` (department/category browse), `listAisles` (discover a retailer's department/aisle taxonomy), `productDetail` (lookup by item ID), `storeOverview` (retailer info + trending items)\n- **30 retailers** available via dropdown, plus a free-text override for any other Instacart-partnered retailer\n- **Real prices** — current price, price-per-unit, pack/unit size, regular (pre-discount) price, discount %, and sort by price (low-to-high / high-to-low)\n- **Deals & ratings** — surfaces sale badges/promo labels and public star ratings/review counts wherever Instacart shows them\n- **Filters:** min/max price, brand name, in-stock only, on-sale only, min rating\n- **Empty fields are omitted** from every record\n\n## Output per product\n\n- `itemId` — full Instacart item ID (e.g. `items_74-17444603`), reusable in `productDetail` mode\n- `productId`, `legacyId` — Instacart's internal product identifiers\n- `name`, `brandName`, `size`, `category`\n- `priceString` (e.g. `$17.40`), `price` (numeric, e.g. `17.4`)\n- `pricePerUnitString` (e.g. `$0.09/oz`), `pricingUnitString` (e.g. `3 x 64 oz`)\n- `regularPriceString` / `regularPrice` — pre-discount price when the item is on sale (e.g. `$19.67`)\n- `discountPercentString` (e.g. `30%`), `promoLabel` (e.g. `$6 off; limit 5`), `onSale` (boolean)\n- `rating` (0–5) and `reviewCount` — when Instacart publicly shows a star rating for the item\n- `imageUrl` — product photo\n- `available`, `stockLevel`\n- `dietaryAttributes[]` — e.g. `organic`, `lactose_free`, `gluten_free`\n- `tags[]` — e.g. `storeBrand`\n- `aisleSlug` — the aisle/collection slug the item was found in (mode=browseAisle only)\n- `retailerSlug`, `retailerName`\n- `productUrl` / `sourceUrl`\n- `recordType: \"product\"`, `scrapedAt`\n\n## Output per retailer (mode = `storeOverview`)\n\n- `retailerId`, `retailerSlug`, `retailerName`, `retailerType`\n- `categories[]` — e.g. `grocery`, `club`, `wholesale`\n- `sourceUrl`\n- `recordType: \"retailer\"`, `scrapedAt`\n\n## Output per aisle/department (mode = `listAisles`)\n\n- `aisleId`, `aisleName`, `aisleSlug` — pass `aisleSlug` into `mode=browseAisle` to fetch its products\n- `collectionType` — e.g. `department`, `retailer_collection_v2`, `dynamic`\n- `parentAisleId` / `parentAisleName` — present for sub-aisles nested under a department\n- `childAisleCount` — number of sub-aisles under a top-level department\n- `retailerSlug`, `retailerName`\n- `sourceUrl`\n- `recordType: \"aisle\"`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `search` | `search` / `browseAisle` / `listAisles` / `productDetail` / `storeOverview` |\n| `retailerSlug` | string | `costco` | Retailer to scrape (dropdown of 30 popular retailers) |\n| `customRetailerSlug` | string | – | Any Instacart retailer slug not in the dropdown; overrides `retailerSlug` |\n| `postalCode` | string | – | Optional 5-digit US ZIP code. Prices the storefront at that ZIP's shop/zone; empty uses Instacart's default location. |\n| `searchQuery` | string | `milk` | Keyword to search (mode=search) |\n| `orderBy` | string | `bestMatch` | `bestMatch` / `priceAsc` / `priceDesc` (mode=search, browseAisle) |\n| `aisleSlug` | string | – | Department/aisle (collection) slug to browse (mode=browseAisle); discover slugs via `mode=listAisles` |\n| `itemIds` | array | – | Full item IDs to look up (mode=productDetail) |\n| `minPrice` | int | – | Drop items priced below this (USD) |\n| `maxPrice` | int | – | Drop items priced above this (USD) |\n| `brandContains` | string | – | Keep only items whose brand contains this text |\n| `inStockOnly` | boolean | `false` | Drop out-of-stock items |\n| `onSaleOnly` | boolean | `false` | Keep only items currently discounted from their regular price |\n| `minRating` | number | – | Drop items with an average rating below this (0–5); items without a public rating are kept |\n| `maxItems` | int | `20` | Hard cap on emitted records (1–1000) |\n| `proxyConfiguration` | object | auto | Optional. Leave empty and the actor chooses a working connection automatically; a proxy is never required. |\n\n### Compatibility with saved tasks\n\nOlder saved tasks that still send the pre-rename keys keep working: `query`/`searchQueries` map to `searchQuery`, `retailer` to `retailerSlug`, `category`/`collection` to `aisleSlug`, `ids`/`productIds` to `itemIds`, `sort`/`sortBy` to `orderBy`, `maxResults`/`limit` to `maxItems`, `zip`/`zipCode`/`postal` to `postalCode`, and `inStock`/`onSale`/`brand` to the matching filters. Legacy keys are accepted silently and never override a value supplied under the current field name.\n\n### Example: search a retailer by keyword\n\n```json\n{\n  \"mode\": \"search\",\n  \"retailerSlug\": \"costco\",\n  \"searchQuery\": \"organic eggs\",\n  \"orderBy\": \"priceAsc\",\n  \"maxItems\": 30\n}\n```\n\n### Example: filter by price and brand\n\n```json\n{\n  \"mode\": \"search\",\n  \"retailerSlug\": \"safeway\",\n  \"searchQuery\": \"paper towels\",\n  \"minPrice\": 5,\n  \"maxPrice\": 25,\n  \"brandContains\": \"bounty\",\n  \"inStockOnly\": true\n}\n```\n\n### Example: look up specific products by ID\n\n```json\n{\n  \"mode\": \"productDetail\",\n  \"retailerSlug\": \"costco\",\n  \"itemIds\": [\"items_74-17444603\", \"items_74-19871524\"]\n}\n```\n\n### Example: store overview for a retailer not in the dropdown\n\n```json\n{\n  \"mode\": \"storeOverview\",\n  \"retailerSlug\": \"costco\",\n  \"customRetailerSlug\": \"sprouts-farmers-market\"\n}\n```\n\n### Example: discover a retailer's departments/aisles\n\n```json\n{\n  \"mode\": \"listAisles\",\n  \"retailerSlug\": \"costco\",\n  \"maxItems\": 200\n}\n```\n\n### Example: browse a department/aisle for on-sale items\n\n```json\n{\n  \"mode\": \"browseAisle\",\n  \"retailerSlug\": \"costco\",\n  \"aisleSlug\": \"dynamic_collection-sales\",\n  \"onSaleOnly\": true,\n  \"orderBy\": \"priceAsc\",\n  \"maxItems\": 50\n}\n```\n\n### Example: highly-rated products in a specific aisle\n\n```json\n{\n  \"mode\": \"browseAisle\",\n  \"retailerSlug\": \"safeway\",\n  \"aisleSlug\": \"produce\",\n  \"minRating\": 4.5,\n  \"maxItems\": 30\n}\n```\n\n## Use cases\n\n- **Price monitoring** — track grocery price changes across retailers over time\n- **Market research** — compare pricing and product assortment between chains\n- **Deal-hunting tools** — feed a price-comparison app or browser extension with `onSaleOnly` results\n- **Retail analytics** — monitor stock availability and pricing trends by department/aisle\n- **Coupon / cashback apps** — identify current prices and discount % to calculate savings\n- **Category audits** — use `listAisles` + `browseAisle` to pull a full department's catalog\n\n## FAQ\n\n**Is this affiliated with Instacart?**\nNo — this is an independent, third-party actor that reads Instacart's public storefront pages. It is not affiliated with, endorsed by, or supported by Instacart.\n\n**Do I need an Instacart account or login?**\nNo. All data comes from Instacart's public, unauthenticated storefront pages, the same pages any visitor sees when browsing without signing in.\n\n**Do I need to configure a proxy?**\nNo. Leave `proxyConfiguration` empty and the actor picks a working connection automatically. Instacart rejects requests from many datacenter addresses, so the actor falls back to its own working route when the direct connection is blocked. You never have to supply proxy credentials.\n\n**Why do prices show a specific location's pricing?**\nInstacart prices are location-based. Set `postalCode` to price a specific US ZIP; leave it empty and Instacart resolves the guest session to its default location (usually ZIP 94105, San Francisco). The actor resolves that ZIP's shop and zone before scraping, so every mode uses the selected market.\n\n**Can I choose a ZIP code or country?**\nYes for US ZIPs: set `postalCode` to a five-digit ZIP such as `10001`. A ZIP the selected retailer does not serve fails the run with a status message rather than returning another market's prices. Non-US postal codes and Canadian storefronts on `instacart.ca` are out of scope.\n\n**Why doesn't a retailer I searched for show up in results?**\nOnly retailers that partner with Instacart are available. Use `customRetailerSlug` with the retailer's exact Instacart storefront slug (found in the URL `instacart.com/store/<slug>/storefront`) if it's not in the dropdown.\n\n**How many results does `search` mode return?**\nInstacart's search response contains the full best-match set for the query (including carousels that are only hydrated lazily on the live site). The actor resolves those stubs, so a common query returns dozens to several hundred matches; `maxItems` caps the final output.\n\n**How deep can `browseAisle` go?**\nInstacart returns a department/aisle's full item set to a storefront session in one placements response (the actor follows cursors when the API paginates). Large sale collections can contain several hundred products; `maxItems` accepts up to 1000 so you can pull the whole set.\n\n**How fresh is the pricing data?**\nPrices are fetched live at run time directly from Instacart's storefront.\n\n**What does `productId` vs `legacyId` mean?**\nBoth are Instacart's own internal identifiers for the same product; some downstream Instacart surfaces reference one or the other, so both are included for convenience.\n\n**Why do some `productDetail` lookups return an item without price fields?**\nInstacart resolves each guest session to a default region/store. If an `itemId` was originally captured from a `search`/`storeOverview` run in a different region than the current run resolves to, Instacart may return the item's catalog details without live pricing for that ID. For guaranteed pricing, use `itemIds` captured from a `search` or `storeOverview` result in the same run, or re-run `search`/`storeOverview` first to get current-session item IDs.\n\n**Why does `productUrl` return a 403 with a bare `curl` (no headers)?**\nInstacart blocks requests with no User-Agent header at all. Any normal HTTP client (browsers, `requests`, `curl -A \"Mozilla/5.0 ...\"`) works fine — this is standard bot-mitigation, not a broken link.\n\n**How do I find a valid `aisleSlug` for `browseAisle`?**\nRun `mode=listAisles` first for your chosen retailer — it returns every department and sub-aisle slug Instacart exposes for that storefront (they differ per retailer). You can also copy a slug directly from a collection page URL: `instacart.com/store/<retailer>/collections/<slug>`.\n\n**Do `rating` and `reviewCount` appear on every product?**\nNo — Instacart only shows a public star rating for products that have received enough reviews. When it's not shown on the storefront, the actor omits the field rather than guessing a value.\n\n**What counts as \"on sale\" (`onSale` / `onSaleOnly`)?**\nAn item is marked `onSale: true` when Instacart's storefront shows a crossed-out regular price (`regularPriceString`) alongside the current price. Retailer-wide deals can be browsed directly via `mode=browseAisle` with `aisleSlug: \"dynamic_collection-sales\"`.\n\n**Are there aisles/collections this actor can't browse?**\n`browseAisle` covers every department and sub-aisle slug returned by `mode=listAisles` for a given retailer. Deeper, personalized, or login-gated collections (e.g. order history-based recommendations) aren't included since they require an authenticated account.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "instacart-storefront-price-scraper",
      "title": "Instacart Storefront Price Scraper",
      "description": "Scrape real-time grocery prices from Instacart storefronts. Search products by keyword, look up items by ID, or pull a retailer's store overview — no login, no API key.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# Instacart Storefront Price Scraper\n\nScrape **real-time grocery prices from Instacart storefronts** — Costco, Safeway, Publix, Kroger, Walgreens, ALDI, Wegmans, and 20+ other Instacart-partnered retailers. Search any storefront by keyword, browse a department/aisle, look up specific products by item ID, or pull a retailer's store overview with trending items. No login, no API key, no cookies required.\n\n## What this actor does\n\n- **Five modes:** `search` (keyword → priced results), `browseAisle` (department/category browse), `listAisles` (discover a retailer's department/aisle taxonomy), `productDetail` (lookup by item ID), `storeOverview` (retailer info + trending items)\n- **30 retailers** available via dropdown, plus a free-text override for any other Instacart-partnered retailer\n- **Real prices** — current price, price-per-unit, pack/unit size, regular (pre-discount) price, discount %, and sort by price (low-to-high / high-to-low)\n- **Deals & ratings** — surfaces sale badges/promo labels and public star ratings/review counts wherever Instacart shows them\n- **Filters:** min/max price, brand name, in-stock only, on-sale only, min rating\n- **Empty fields are omitted** from every record\n\n## Output per product\n\n- `itemId` — full Instacart item ID (e.g. `items_74-17444603`), reusable in `productDetail` mode\n- `productId`, `legacyId` — Instacart's internal product identifiers\n- `name`, `brandName`, `size`, `category`\n- `priceString` (e.g. `$17.40`), `price` (numeric, e.g. `17.4`)\n- `pricePerUnitString` (e.g. `$0.09/oz`), `pricingUnitString` (e.g. `3 x 64 oz`)\n- `regularPriceString` / `regularPrice` — pre-discount price when the item is on sale (e.g. `$19.67`)\n- `discountPercentString` (e.g. `30%`), `promoLabel` (e.g. `$6 off; limit 5`), `onSale` (boolean)\n- `rating` (0–5) and `reviewCount` — when Instacart publicly shows a star rating for the item\n- `imageUrl` — product photo\n- `available`, `stockLevel`\n- `dietaryAttributes[]` — e.g. `organic`, `lactose_free`, `gluten_free`\n- `tags[]` — e.g. `storeBrand`\n- `aisleSlug` — the aisle/collection slug the item was found in (mode=browseAisle only)\n- `retailerSlug`, `retailerName`\n- `productUrl` / `sourceUrl`\n- `recordType: \"product\"`, `scrapedAt`\n\n## Output per retailer (mode = `storeOverview`)\n\n- `retailerId`, `retailerSlug`, `retailerName`, `retailerType`\n- `categories[]` — e.g. `grocery`, `club`, `wholesale`\n- `sourceUrl`\n- `recordType: \"retailer\"`, `scrapedAt`\n\n## Output per aisle/department (mode = `listAisles`)\n\n- `aisleId`, `aisleName`, `aisleSlug` — pass `aisleSlug` into `mode=browseAisle` to fetch its products\n- `collectionType` — e.g. `department`, `retailer_collection_v2`, `dynamic`\n- `parentAisleId` / `parentAisleName` — present for sub-aisles nested under a department\n- `childAisleCount` — number of sub-aisles under a top-level department\n- `retailerSlug`, `retailerName`\n- `sourceUrl`\n- `recordType: \"aisle\"`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `search` | `search` / `browseAisle` / `listAisles` / `productDetail` / `storeOverview` |\n| `retailerSlug` | string | `costco` | Retailer to scrape (dropdown of 30 popular retailers) |\n| `customRetailerSlug` | string | – | Any Instacart retailer slug not in the dropdown; overrides `retailerSlug` |\n| `postalCode` | string | – | Optional 5-digit US ZIP code. Prices the storefront at that ZIP's shop/zone; empty uses Instacart's default location. |\n| `searchQuery` | string | `milk` | Keyword to search (mode=search) |\n| `orderBy` | string | `bestMatch` | `bestMatch` / `priceAsc` / `priceDesc` (mode=search, browseAisle) |\n| `aisleSlug` | string | – | Department/aisle (collection) slug to browse (mode=browseAisle); discover slugs via `mode=listAisles` |\n| `itemIds` | array | – | Full item IDs to look up (mode=productDetail) |\n| `minPrice` | int | – | Drop items priced below this (USD) |\n| `maxPrice` | int | – | Drop items priced above this (USD) |\n| `brandContains` | string | – | Keep only items whose brand contains this text |\n| `inStockOnly` | boolean | `false` | Drop out-of-stock items |\n| `onSaleOnly` | boolean | `false` | Keep only items currently discounted from their regular price |\n| `minRating` | number | – | Drop items with an average rating below this (0–5); items without a public rating are kept |\n| `maxItems` | int | `20` | Hard cap on emitted records (1–1000) |\n| `proxyConfiguration` | object | auto | Optional. Leave empty and the actor chooses a working connection automatically; a proxy is never required. |\n\n### Compatibility with saved tasks\n\nOlder saved tasks that still send the pre-rename keys keep working: `query`/`searchQueries` map to `searchQuery`, `retailer` to `retailerSlug`, `category`/`collection` to `aisleSlug`, `ids`/`productIds` to `itemIds`, `sort`/`sortBy` to `orderBy`, `maxResults`/`limit` to `maxItems`, `zip`/`zipCode`/`postal` to `postalCode`, and `inStock`/`onSale`/`brand` to the matching filters. Legacy keys are accepted silently and never override a value supplied under the current field name.\n\n### Example: search a retailer by keyword\n\n```json\n{\n  \"mode\": \"search\",\n  \"retailerSlug\": \"costco\",\n  \"searchQuery\": \"organic eggs\",\n  \"orderBy\": \"priceAsc\",\n  \"maxItems\": 30\n}\n```\n\n### Example: filter by price and brand\n\n```json\n{\n  \"mode\": \"search\",\n  \"retailerSlug\": \"safeway\",\n  \"searchQuery\": \"paper towels\",\n  \"minPrice\": 5,\n  \"maxPrice\": 25,\n  \"brandContains\": \"bounty\",\n  \"inStockOnly\": true\n}\n```\n\n### Example: look up specific products by ID\n\n```json\n{\n  \"mode\": \"productDetail\",\n  \"retailerSlug\": \"costco\",\n  \"itemIds\": [\"items_74-17444603\", \"items_74-19871524\"]\n}\n```\n\n### Example: store overview for a retailer not in the dropdown\n\n```json\n{\n  \"mode\": \"storeOverview\",\n  \"retailerSlug\": \"costco\",\n  \"customRetailerSlug\": \"sprouts-farmers-market\"\n}\n```\n\n### Example: discover a retailer's departments/aisles\n\n```json\n{\n  \"mode\": \"listAisles\",\n  \"retailerSlug\": \"costco\",\n  \"maxItems\": 200\n}\n```\n\n### Example: browse a department/aisle for on-sale items\n\n```json\n{\n  \"mode\": \"browseAisle\",\n  \"retailerSlug\": \"costco\",\n  \"aisleSlug\": \"dynamic_collection-sales\",\n  \"onSaleOnly\": true,\n  \"orderBy\": \"priceAsc\",\n  \"maxItems\": 50\n}\n```\n\n### Example: highly-rated products in a specific aisle\n\n```json\n{\n  \"mode\": \"browseAisle\",\n  \"retailerSlug\": \"safeway\",\n  \"aisleSlug\": \"produce\",\n  \"minRating\": 4.5,\n  \"maxItems\": 30\n}\n```\n\n## Use cases\n\n- **Price monitoring** — track grocery price changes across retailers over time\n- **Market research** — compare pricing and product assortment between chains\n- **Deal-hunting tools** — feed a price-comparison app or browser extension with `onSaleOnly` results\n- **Retail analytics** — monitor stock availability and pricing trends by department/aisle\n- **Coupon / cashback apps** — identify current prices and discount % to calculate savings\n- **Category audits** — use `listAisles` + `browseAisle` to pull a full department's catalog\n\n## FAQ\n\n**Is this affiliated with Instacart?**\nNo — this is an independent, third-party actor that reads Instacart's public storefront pages. It is not affiliated with, endorsed by, or supported by Instacart.\n\n**Do I need an Instacart account or login?**\nNo. All data comes from Instacart's public, unauthenticated storefront pages, the same pages any visitor sees when browsing without signing in.\n\n**Do I need to configure a proxy?**\nNo. Leave `proxyConfiguration` empty and the actor picks a working connection automatically. Instacart rejects requests from many datacenter addresses, so the actor falls back to its own working route when the direct connection is blocked. You never have to supply proxy credentials.\n\n**Why do prices show a specific location's pricing?**\nInstacart prices are location-based. Set `postalCode` to price a specific US ZIP; leave it empty and Instacart resolves the guest session to its default location (usually ZIP 94105, San Francisco). The actor resolves that ZIP's shop and zone before scraping, so every mode uses the selected market.\n\n**Can I choose a ZIP code or country?**\nYes for US ZIPs: set `postalCode` to a five-digit ZIP such as `10001`. A ZIP the selected retailer does not serve fails the run with a status message rather than returning another market's prices. Non-US postal codes and Canadian storefronts on `instacart.ca` are out of scope.\n\n**Why doesn't a retailer I searched for show up in results?**\nOnly retailers that partner with Instacart are available. Use `customRetailerSlug` with the retailer's exact Instacart storefront slug (found in the URL `instacart.com/store/<slug>/storefront`) if it's not in the dropdown.\n\n**How many results does `search` mode return?**\nInstacart's search response contains the full best-match set for the query (including carousels that are only hydrated lazily on the live site). The actor resolves those stubs, so a common query returns dozens to several hundred matches; `maxItems` caps the final output.\n\n**How deep can `browseAisle` go?**\nInstacart returns a department/aisle's full item set to a storefront session in one placements response (the actor follows cursors when the API paginates). Large sale collections can contain several hundred products; `maxItems` accepts up to 1000 so you can pull the whole set.\n\n**How fresh is the pricing data?**\nPrices are fetched live at run time directly from Instacart's storefront.\n\n**What does `productId` vs `legacyId` mean?**\nBoth are Instacart's own internal identifiers for the same product; some downstream Instacart surfaces reference one or the other, so both are included for convenience.\n\n**Why do some `productDetail` lookups return an item without price fields?**\nInstacart resolves each guest session to a default region/store. If an `itemId` was originally captured from a `search`/`storeOverview` run in a different region than the current run resolves to, Instacart may return the item's catalog details without live pricing for that ID. For guaranteed pricing, use `itemIds` captured from a `search` or `storeOverview` result in the same run, or re-run `search`/`storeOverview` first to get current-session item IDs.\n\n**Why does `productUrl` return a 403 with a bare `curl` (no headers)?**\nInstacart blocks requests with no User-Agent header at all. Any normal HTTP client (browsers, `requests`, `curl -A \"Mozilla/5.0 ...\"`) works fine — this is standard bot-mitigation, not a broken link.\n\n**How do I find a valid `aisleSlug` for `browseAisle`?**\nRun `mode=listAisles` first for your chosen retailer — it returns every department and sub-aisle slug Instacart exposes for that storefront (they differ per retailer). You can also copy a slug directly from a collection page URL: `instacart.com/store/<retailer>/collections/<slug>`.\n\n**Do `rating` and `reviewCount` appear on every product?**\nNo — Instacart only shows a public star rating for products that have received enough reviews. When it's not shown on the storefront, the actor omits the field rather than guessing a value.\n\n**What counts as \"on sale\" (`onSale` / `onSaleOnly`)?**\nAn item is marked `onSale: true` when Instacart's storefront shows a crossed-out regular price (`regularPriceString`) alongside the current price. Retailer-wide deals can be browsed directly via `mode=browseAisle` with `aisleSlug: \"dynamic_collection-sales\"`.\n\n**Are there aisles/collections this actor can't browse?**\n`browseAisle` covers every department and sub-aisle slug returned by `mode=listAisles` for a given retailer. Deeper, personalized, or login-gated collections (e.g. order history-based recommendations) aren't included since they require an authenticated account.\n",
      "input": {
        "title": "Instacart Storefront Price Scraper Input",
        "description": "Search a retailer's Instacart storefront for priced products, browse a department/aisle, look up specific items by ID, or pull a retailer's store overview.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to fetch.",
            "editor": "select",
            "enum": [
              "search",
              "browseAisle",
              "listAisles",
              "productDetail",
              "storeOverview"
            ],
            "enumTitles": [
              "Search products by keyword",
              "Browse a department/aisle (category)",
              "List a retailer's departments/aisles",
              "Lookup items by ID",
              "Store overview (retailer info + trending items)"
            ],
            "default": "search",
            "prefill": "search"
          },
          "retailerSlug": {
            "title": "Retailer",
            "type": "string",
            "description": "Which Instacart-partnered retailer's storefront to scrape. Pick from the list, or use \"Custom retailer slug\" below to supply any Instacart retailer slug not in this list.",
            "editor": "select",
            "enum": [
              "costco",
              "safeway",
              "publix",
              "cvs",
              "walgreens",
              "aldi",
              "wegmans",
              "kroger",
              "meijer",
              "food-lion",
              "giant-eagle",
              "vons",
              "randalls",
              "king-soopers",
              "fred-meyer",
              "ralphs",
              "hy-vee",
              "shoprite",
              "winn-dixie",
              "sams-club",
              "gristedes",
              "jewel-osco",
              "acme-markets",
              "pavilions",
              "tom-thumb",
              "smart-final",
              "bevmo",
              "cub",
              "petco",
              "staples"
            ],
            "enumTitles": [
              "Costco",
              "Safeway",
              "Publix",
              "CVS",
              "Walgreens",
              "ALDI",
              "Wegmans",
              "Kroger",
              "Meijer",
              "Food Lion",
              "Giant Eagle",
              "Vons",
              "Randalls",
              "King Soopers",
              "Fred Meyer",
              "Ralphs",
              "Hy-Vee",
              "ShopRite",
              "Winn-Dixie",
              "Sam's Club",
              "Gristedes",
              "Jewel-Osco",
              "Acme Markets",
              "Pavilions",
              "Tom Thumb",
              "Smart & Final",
              "BevMo!",
              "Cub",
              "Petco",
              "Staples"
            ],
            "default": "costco",
            "prefill": "costco"
          },
          "customRetailerSlug": {
            "title": "Custom retailer slug (overrides Retailer above)",
            "type": "string",
            "description": "Any Instacart retailer slug, e.g. `whole-foods-market` or `sprouts-farmers-market`. Find a retailer's slug in its Instacart storefront URL: instacart.com/store/<slug>/storefront. Leave empty to use the Retailer dropdown instead.",
            "editor": "textfield"
          },
          "postalCode": {
            "title": "Delivery ZIP code (optional)",
            "type": "string",
            "description": "Five-digit US ZIP code to price this retailer's storefront at, e.g. `10001`. Leave empty to use Instacart's default location for the session. The actor resolves the matching shop and zone before scraping; a ZIP this retailer does not serve fails the run instead of silently returning another market's prices.",
            "editor": "textfield",
            "pattern": "^[0-9]{5}$"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Keyword to search for within the selected retailer's storefront, e.g. `milk`, `organic eggs`, `paper towels`. Results are filtered so every returned item's name/brand/category contains each significant word of your query (generic words like \"organic\" are ignored for this check). Note: this is a substring check, not full product understanding, so on rare occasions an item that happens to contain all your query words in an unrelated context (e.g. a \"milk chocolate\"-flavored candy matching a search for \"almond milk\") can still slip through.",
            "editor": "textfield",
            "default": "milk",
            "prefill": "milk"
          },
          "orderBy": {
            "title": "Sort order (mode=search, browseAisle)",
            "type": "string",
            "description": "How to order results.",
            "editor": "select",
            "enum": [
              "bestMatch",
              "priceAsc",
              "priceDesc"
            ],
            "enumTitles": [
              "Best match (default)",
              "Price: low to high",
              "Price: high to low"
            ],
            "default": "bestMatch",
            "prefill": "bestMatch"
          },
          "aisleSlug": {
            "title": "Aisle / department slug (mode=browseAisle)",
            "type": "string",
            "description": "Which department/aisle (a.k.a. \"collection\") to browse within the selected retailer, e.g. `9797-crackers`, `produce`, or `dynamic_collection-sales` (retailer-wide deals). Run `mode=listAisles` first to get the exact slugs available for your chosen Retailer, or copy one from an Instacart collection URL: instacart.com/store/<retailer>/collections/<slug>.",
            "editor": "textfield",
            "prefill": "9797-crackers"
          },
          "itemIds": {
            "title": "Item IDs (mode=productDetail)",
            "type": "array",
            "description": "Full Instacart item IDs to look up, e.g. `items_74-17444603` (copy from a `search`, `browseAisle`, or `storeOverview` result's `itemId` field). Must all belong to the same Retailer selected above.",
            "editor": "stringList",
            "default": [],
            "prefill": [
              "items_74-17444603"
            ]
          },
          "minPrice": {
            "title": "Min price (USD)",
            "type": "integer",
            "description": "Drop items priced below this amount (whole dollars).",
            "minimum": 0,
            "maximum": 10000
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "type": "integer",
            "description": "Drop items priced above this amount (whole dollars).",
            "minimum": 0,
            "maximum": 10000
          },
          "brandContains": {
            "title": "Brand name contains",
            "type": "string",
            "description": "Keep only items whose brand name contains this text (case-insensitive).",
            "editor": "textfield"
          },
          "inStockOnly": {
            "title": "In-stock only",
            "type": "boolean",
            "description": "Drop items that are marked out of stock.",
            "default": false,
            "prefill": false
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Keep only items currently discounted from their regular price (has a `regularPrice` higher than `price`).",
            "default": false,
            "prefill": false
          },
          "minRating": {
            "title": "Min rating (0-5)",
            "type": "number",
            "description": "Drop items with an average customer rating below this (out of 5). Items without a public rating are kept (unknown, not zero).",
            "minimum": 0,
            "maximum": 5
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "minimum": 1,
            "maximum": 1000,
            "default": 20,
            "prefill": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Leave empty to let the actor choose a working connection automatically (a proxy is never required). Set this only if you want to use your own proxy configuration.",
            "editor": "proxy"
          }
        },
        "required": [
          "mode",
          "retailerSlug"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Instacart Storefront Price Scraper Output",
        "description": "Priced grocery products scraped from Instacart storefronts — name, brand, price, unit price, size, availability, sale/discount info, ratings, images, department/aisle taxonomy, and store metadata.",
        "properties": {
          "products": {
            "type": "string",
            "title": "Instacart products",
            "description": "Dataset containing all scraped Instacart products / store records.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Products",
              "transformation": {
                "fields": [
                  "name",
                  "brandName",
                  "priceString",
                  "pricePerUnitString",
                  "size",
                  "retailerName",
                  "available",
                  "productUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    }
  }
}