# Whole Foods Market Scraper: Prices, Sales & Prime Deals (`moggedhq/whole-foods-scraper`) Actor

Get Whole Foods Market products at your chosen store: regular and sale prices, Prime member deals, sale dates, unit prices, size, brand, diet labels and catalog availability. Search, categories or product links by ZIP. About $0.004 per product. No login.

- **URL**: https://apify.com/moggedhq/whole-foods-scraper.md
- **Developed by:** [mogged](https://apify.com/moggedhq) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.20 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Whole Foods Market Scraper: Prices, Sales & Prime Deals

For retail price analysts, brands and comparison services watching the prices advertised by individual Whole Foods Market stores. Collect regular prices, sale prices, Prime member deals, promotion dates, package sizes and product identifiers in the same retail schema used by the other US grocery Actors.

About **$0.004 per delivered product at one store**: 20 products cost about **$0.08**, and 1,000 cost about **$4**, plus the minimum **$0.00005 Actor start charge**. No retailer account or login is required. Failed requests, duplicates, free notes and run summaries have no product fee.

Choose ZIPs or store IDs, then search a basket, collect a department or monitor known products. Every row identifies its store and price-source request.

### What you get

The current price is the public **selected-store catalog price**, recorded in priceScope. Keep this scope in downstream comparisons.

The ordinary shopper's price goes in price: the active sale price, otherwise regularPrice. Prime prices stay separate in memberPrice and primePrice. Expired, future or malformed promotion dates suppress the promotion from current-price fields.

| Common field | Meaning |
| --- | --- |
| `verdict` | Readable product, ordinary price, Prime price when supplied and store summary. |
| `retailer`, `country`, `currency` | Whole Foods Market, US and USD. |
| `storeId`, `storeName`, `location` | Verified store and requested ZIP; location is null for an exact or default store. |
| `productId`, `sku`, `gtin` | Source product ID, original supplier identifier group and an explicit valid barcode when supplied. |
| `title`, `brand`, `size` | Product name, brand and the package-size text in the source title. |
| `price`, `regularPrice`, `onSale` | Ordinary current catalog price, source base price and active sale flag. |
| `promoText`, `promoType` | Readable sale or Prime deal and its classification. |
| `promoStart`, `promoEnd` | Published promotion dates, retained without changing their source meaning. |
| `memberPrice`, `memberProgram` | Separate member price and Amazon Prime label. |
| `unitPrice`, `unitOfMeasure` | Price divided by an unambiguous package size, with a computed-value flag. |
| `inStock`, `stockLevel` | Explicit catalog availability when details supply it; shelf quantities remain null. |
| `rating`, `reviewCount` | Null where the public catalog does not supply these fields. |
| `category`, `url`, `imageUrl` | Source category, store-parameter product link and product image. |
| `scrapedAt` | UTC observation timestamp. |

Whole Foods fields follow the shared fields:

| Extra field | Meaning |
| --- | --- |
| `asin` | Amazon-format product identifier when the source supplies one or the slug identifies it. |
| `salePrice`, `primePrice`, `isDeal` | Active sale price, separate Prime price and combined deal flag. |
| `upc` | Explicit source UPC with a valid check digit, preserving leading zeros. |
| `dietLabels` | Published labels such as Organic, supplied by the product detail route. |
| `sourceIdentifierGroups` | Original source identifier grouping, kept separately from UPC or GTIN. |
| `unitPriceComputed`, `sizeQuantity`, `sizeUnit` | Whether the unit price was calculated and the quantity used. |
| `categoryPath` | Available category hierarchy from details. |
| `priceScope`, `availabilityScope` | What the price and availability observation represent. |
| `promotionDateStatus` | Whether source promotion dates were used or suppressed as expired or future. |
| `storeAddress`, `storeTimezone` | Public store metadata returned by the retailer. |
| `details` | Optional ingredients, allergens, certifications, nutrition and serving information. |
| `requestedLocations`, `sourceUrl` | ZIPs resolving to this store and the price-source request. |
| `recordType` | PRODUCT for a delivered product, NOTE for a free explanation. |

Dataset views show overview, deals and full data. Filter deals with isDeal. The free DEALS index links to deal-only JSON parts, with at most 500 products each.

### Start in three steps

1. Enter a search such as milk or coffee, or paste category and product links.
2. Choose ZIP codes or stable store IDs, then set the global product cap.
3. Run and inspect SUMMARY before exporting the product rows to CSV, JSON, Excel or your database.

Prefill searches milk near ZIP 78704: 20 products cost about $0.08 plus start. The 11 November 2026 prefill delivered 20 products in 9.702 seconds. Thirty varied inputs and two 1,100-product runs passed, including a real reboot. Fourteen live pages across five stores matched prices and promotion fields.

### Inputs

| Input | Example and behavior |
| --- | --- |
| `searchTerms` | `["milk", "coffee"]`, searched separately at every selected store. |
| `startUrls` | Category, product, search or sales-flyer links on wholefoodsmarket.com. |
| `productIds` | `["B09FBL77P3"]`, source ASINs or complete product slugs. |
| `locations` | `["78704", "10001"]`, ZIPs resolved through the retailer's public store selector. |
| `postalCodes` | Alias for locations; used when locations is absent or empty. |
| `storeIds` | `["10145", "10713"]`, exact verified five-digit store numbers. |
| `maxItemsPerSearch` | New products per source at each store; default 20, maximum 1,000. |
| `maxItems` | Global product/store cap; default 20, maximum 10,000. |
| `dealsOnly` | Keep products with a current sale or Prime member price. |
| `includeDetails` | Add product detail metadata and explicit catalog availability. Default false, no extra product fee. |
| `proxyConfiguration` | Automatic datacenter first, US residential only on retries; explicit buyer settings are retained. |

Exact storeIds override ZIPs. Nonempty locations overrides postalCodes; prefill ZIPs do not override API aliases. Run selections override URL store parameters. Empty selections use the catalog's live default store.

ZIPs resolve through the site's selected pickup store, then fetch its catalog prices. Use SUMMARY's store IDs for repeatable monitoring.

#### Compare a basket across two stores

```json
{
  "searchTerms": ["milk", "coffee"],
  "locations": ["78704", "10001"],
  "maxItemsPerSearch": 20,
  "maxItems": 80
}
```

This can deliver 80 observations, about $0.32 plus start. Overlapping products are deduplicated.

#### Read a department

```json
{
  "startUrls": ["https://www.wholefoodsmarket.com/products/dairy-eggs"],
  "storeIds": ["10145"],
  "maxItemsPerSearch": 100,
  "maxItems": 100
}
```

Pagination continues to the source end or your limits. A cap controls maximum delivery, not the number of available matches.

#### Monitor exact products with details

```json
{
  "productIds": ["B09FBL77P3", "B09FBLV8QY"],
  "storeIds": ["10145", "10713"],
  "includeDetails": true,
  "maxItems": 4
}
```

Exact-product requests include details. Search/category includeDetails adds a store-specific request; an unavailable detail retains the catalog price with a free note. Products without usable prices are free.

#### Collect sales and Prime deals

```json
{
  "startUrls": ["https://www.wholefoodsmarket.com/sales-flyer"],
  "locations": ["10001"],
  "dealsOnly": true,
  "maxItemsPerSearch": 100,
  "maxItems": 100
}
```

Sales-flyer inputs select the catalog's deals filter and verify each product's active sale or member price. Grouped panels and percentage headlines are separate from numeric prices.

### Example observation

Selected fields from the public store-specific product response checked on 11 November 2026:

```json
{
  "retailer": "Whole Foods Market",
  "storeId": "10145",
  "storeName": "Lamar",
  "productId": "B09FBL77P3",
  "title": "Organic Whole Milk, 64 FZ",
  "brand": "365 by Whole Foods Market",
  "price": 4.49,
  "regularPrice": 4.49,
  "memberPrice": null,
  "gtin": null,
  "sourceIdentifierGroups": "[9948251667]",
  "priceScope": "store-catalog"
}
```

Supplier identifier groups do not establish UPCs. Preserve them as text. Native product IDs preserve case.

### Pricing and spending limits

One product means one distinct product at one store. Overlapping inputs are deduplicated. Details have no additional event charge.

| Delivered products | Base | Bronze | Silver | Gold |
| --- | --- | --- | --- | --- |
| 20 | $0.08 | $0.076 | $0.072 | $0.064 |
| 100 | $0.40 | $0.38 | $0.36 | $0.32 |
| 1,000 | $4.00 | $3.80 | $3.60 | $3.20 |

Add the minimum $0.00005 start charge. Base product price is $0.004; Bronze is $0.0038, Silver $0.0036 and Gold $0.0032. Higher discount tiers use the Gold product rate. Platform usage is included in the Actor price.

The Actor checks Apify's maximum total charge before delivery, stops cleanly at the limit and records this in SUMMARY. Notes and summaries have no product fee or default dataset-row fee.

### Monitor prices every day

Save a task with stable store IDs and products, departments or searches. Create a schedule in Apify Console, choose its timezone and connect the completed-run webhook to your workflow.

Join snapshots on retailer + storeId + productId, with scrapedAt as observation time. Preserve ordinary, regular and Prime prices separately. Inspect SUMMARY before interpreting missing products as assortment changes. Each scheduled run collects a fresh observation and incurs its normal product charge; overlapping inputs within one run remain deduplicated.

### API and integrations

Use your Apify token, then read the completed dataset and SUMMARY:

```bash
curl -X POST \
  'https://api.apify.com/v2/acts/moggedhq~whole-foods-scraper/runs' \
  -H 'Authorization: Bearer YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"searchTerms":["milk"],"storeIds":["10145"],"maxItems":20}'
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("moggedhq/whole-foods-scraper").call(
    run_input={"searchTerms": ["milk"], "storeIds": ["10145"], "maxItems": 20}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row.get("recordType") == "PRODUCT":
        print(row["storeId"], row["title"], row["price"], row["memberPrice"])
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('moggedhq/whole-foods-scraper').call({
  searchTerms: ['milk'], storeIds: ['10145'], maxItems: 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const products = items.filter(row => row.recordType === 'PRODUCT');
```

Make, Zapier, n8n and Google Sheets integrations can export the same dataset. Treat NOTE rows separately. SUMMARY contains product and deal totals, resolved stores, source outcomes, free failures, duplicate exclusions and spending-limit status. A legitimate empty search is reported as `no-matches` rather than a source failure.

### Use with AI agents (MCP)

Connect to `https://mcp.apify.com` and select this Actor. Supply stores or ZIPs, searches or product links and a product cap. Ask the agent to preserve nulls, separate Prime prices and inspect SUMMARY. The common retail fields support grocery-family comparisons. Join retailer-specific IDs within their retailer; use only explicitly sourced barcodes for barcode joins across retailers.

### Reliability

Source requests are sequential and paced. Automatic routing starts with the account's default datacenter selection and retries through US residential only when needed. Explicit buyer proxy choices remain explicit, including a disabled proxy. No account cookies are used.

Dataset rows, source snapshots and progress survive reboots. Serial delivery reconciles saved rows against authoritative charge counts and receipts before continuing. Replayed inputs stay deduplicated; ambiguous billing evidence stops further charging.

### Limits

- This collects the public selected-store catalog, not an audited shelf ticket or a checkout total. Delivery and pickup totals, taxes, personalized offers, clipped coupons and account eligibility are outside coverage.
- Store catalog availability appears only where the detail route supplies it. It does not establish the quantity physically on a shelf. Search-only observations can have null availability.
- Some products lack a stated size, diet label, barcode, promotion date or category. Missing values remain null. Supplier ID groups are not converted into barcodes, and no check digits are added to them.
- Unit prices are computed only from an unambiguous title size and are marked as computed. Multipacks with ambiguous total size retain null unit prices.
- Dates preserve the source timestamps. The catalog and flyer can update at different times. Percentage-off panels, grouped offers and image-only promotions are not converted into invented numeric product prices.
- US stores only. A ZIP can resolve to one selected store. Use exact store IDs to compare several nearby stores. Source outages, refusals and assortment changes can reduce output; SUMMARY reports those gaps.
- No retailer login, account cookies or CAPTCHA solving. No historical backfill is supplied.

### FAQ

**Can I choose an exact store?** Yes. Use storeIds or take the resolved IDs from a ZIP run's SUMMARY.

**Does price require Prime?** Prime pricing stays in memberPrice and primePrice. The ordinary price remains separate.

**Why is gtin null beside a numeric sku?** Supplier identifier groups do not establish complete barcodes.

**Do details cost extra?** No additional product fee. They add source requests for ingredients, diets and availability.

**Can I monitor product links?** Yes, through startUrls or productIds. Run store selections control prices.

**What happens with bad input?** Parseable invalid input produces free notes and SUMMARY. Apify may reject schema-invalid input before starting.

**How do I collect deals?** Enable dealsOnly or supply a sales-flyer URL; filter isDeal.

# Actor input Schema

## `searchTerms` (type: `array`):

Find products such as milk, chicken or coffee. Each term is searched at every selected store. Leave empty when using only URLs or product IDs.

## `startUrls` (type: `array`):

Whole Foods category, product, search or sales-flyer URLs. Run store selections override URL store parameters.

## `productIds` (type: `array`):

Whole Foods ASINs or product slugs, such as B09FBL77P3. These are product identifiers, not UPCs.

## `locations` (type: `array`):

US ZIP codes. Selects the site's pickup store and then reads that store's in-store catalog prices. storeIds take precedence. Empty means the site default.

## `storeIds` (type: `array`):

Exact five-digit Whole Foods store numbers, such as 10145 (Lamar). Take precedence over ZIPs.

## `maxItemsPerSearch` (type: `integer`):

Maximum new product rows from each term, category or deals source at one store. Duplicates are free.

## `maxItems` (type: `integer`):

Global limit across all products and stores. About $0.004 per product: 20 products cost about $0.08 plus the small start charge.

## `dealsOnly` (type: `boolean`):

Keep current sales and Prime member deals. Public source dates are retained; expired or future promotions are suppressed.

## `includeDetails` (type: `boolean`):

Adds ingredients, allergens, diet labels, nutrition, supplier identifier groups and catalog availability through each product's store-specific detail route. No extra product fee.

## `proxyConfiguration` (type: `object`):

Automatic default datacenter first, then US residential retries. An explicit disable, country, group or custom proxy is preserved.

## `postalCodes` (type: `array`):

Alias for locations. Used only when locations is absent or empty; explicit storeIds override both.

## Actor input object example

```json
{
  "searchTerms": [
    "milk"
  ],
  "locations": [
    "78704"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20,
  "dealsOnly": false,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `products` (type: `string`):

No description

## `dealsView` (type: `string`):

No description

## `dealsOnly` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [
        "milk"
    ],
    "locations": [
        "78704"
    ],
    "maxItemsPerSearch": 20,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/whole-foods-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchTerms": ["milk"],
    "locations": ["78704"],
    "maxItemsPerSearch": 20,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/whole-foods-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "milk"
  ],
  "locations": [
    "78704"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20
}' |
apify call moggedhq/whole-foods-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/whole-foods-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/euO25quBNVgxTNOpX/builds/RCEp5afJnOX0QucKe/openapi.json
