# H-E-B Scraper: HEB Store Prices, Deals, Coupons & Stock (`moggedhq/heb-scraper`) Actor

Get H-E-B prices and stock by Texas store, e.g. milk, chicken or coffee. Compare in-store and curbside prices, sales, digital coupon terms and expiry dates, Combo Loco flags, unit price, size, aisle and UPC. About $0.004 per product: 1,000 cost $4. No login.

- **URL**: https://apify.com/moggedhq/heb-scraper.md
- **Developed by:** [mogged](https://apify.com/moggedhq) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 1 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

## H-E-B Scraper: HEB Store Prices, Deals, Coupons & Stock

For retail price analysts, brands and comparison services monitoring H-E-B prices at specific Texas stores. Collect product prices, promotions, digital coupon conditions, unit prices, UPCs, aisles and online stock signals in a common retail schema. **About $0.004 per delivered product: 20 products cost $0.08, and 1,000 cost $4**, plus the minimum **$0.00005 Actor start charge**. No H-E-B login or retailer API key is required.

### What you get

| Field | Meaning |
| --- | --- |
| `verdict` | Readable product, price, availability and store summary. |
| `retailer`, `country`, `currency` | H-E-B, US and USD. |
| `storeId`, `storeName`, `location` | Verified store number, store name and requested ZIP. Exact-store selections have a null location. |
| `productId`, `sku`, `gtin` | H-E-B product ID, source SKU and an explicitly supplied, checksum-valid UPC. Leading zeros are preserved. |
| `title`, `brand`, `size` | Source product title, brand and package-size label. |
| `price`, `regularPrice`, `onSale` | Current in-store price, source list price and sale flag. |
| `promoText`, `promoType` | Sale, price drop, weekly-ad or coupon information associated with this product. |
| `promoStart`, `promoEnd` | Dates for the main promotion when its source supplies them. |
| `memberPrice`, `memberProgram` | Null when the public source does not expose a separate membership price. |
| `unitPrice`, `unitOfMeasure` | H-E-B's supplied, rounded price per unit and its unit label. |
| `inStock`, `stockLevel` | Source availability and quantity. A missing quantity remains null. |
| `rating`, `reviewCount` | Null when the public response does not supply review information. |
| `category`, `url`, `imageUrl` | Product department, public product link and image. |
| `scrapedAt` | UTC timestamp for this observation. |

Retailer-specific fields add `upc`, `aisleLocation`, `aisle`, `saleStart`, `saleEnd`, `couponText`, `comboLocoOffer`, `isComboLoco`, `digitalCouponAvailable`, `coupons`, `offers`, `weeklyAd`, `priceDrop`, `curbsidePrice`, `regularCurbsidePrice`, `curbsideUnitPrice`, `contextPrices`, `inventoryState`, `productAvailability`, `soldByWeight`, `snapEligible`, `ownBrand`, `storeAddress` and `storeDistanceMiles`.

`offers` retains each coupon's ID, description, short description, redemption deadline, purchase conditions and source limits. `coupons` retains the source coupon fields returned by the request. A date-only redemption deadline stays a date, with the source's store-local meaning. The Actor does not invent a start date when only an expiry is supplied.

The overview dataset view puts title, current price, regular price, promotion, member price, unit price, stock and store together. The deals view emphasizes promotion fields. The separate `DEALS` JSON output contains only delivered products with a sale, price drop, weekly-ad flag, coupon or Combo Loco flag.

H-E-B Deals can include sales, price drops, multi-buy coupons and Combo Loco. Meal Deal wording is retained when the source includes it in a product's public coupon conditions.

### Understand the price scope

`price` uses H-E-B's `ONLINE` price context for the selected store in its in-store shopping mode, `EXPLORE_MY_STORE`. The website labels this mode “In-store at” the selected store. `curbsidePrice` retains the separate `CURBSIDE` context. The Actor does not replace one with the other when a channel is missing.

A signed-out source observation on 11 November 2026 returned H-E-B Reduced Fat 2% Milk, 1 gal, product 314125, at SoCo H-E-B, store 754, with an in-store price of **$3.89** and a curbside price of **$4.08**. Its source UPC was **041220069392**, and the store aisle was **In Dairy on the Back Wall, A25**. A prefill test delivered 20 unique products in 6.27 seconds.

Digital coupon savings remain separate from `price`. For example, an observed H-E-B soda offer said **3 for $11 when you buy 3**, with a redemption deadline of **2026-11-26**. That offer does not turn every individual can pack's product price into $11 divided by three. Keep the quantity condition and coupon terms when comparing baskets.

Weighted goods can use an estimated item price and a separate price per pound. Preserve `soldByWeight`, `priceUnit`, `unitPrice` and the full `contextPrices` together. Prices exclude checkout taxes, delivery fees, service fees and personalized eligibility decisions.

### Start in three steps

1. Enter Texas ZIP codes or exact H-E-B store numbers.
2. Supply search terms, category/product URLs or product IDs, and set the product limit.
3. Run the Actor, inspect `SUMMARY` for coverage, then export the dataset as JSON, CSV or Excel.

The form searches milk near ZIP 78704 with a 20-product limit. Use exact store IDs for stable monitoring.

### Inputs

| Input | Example and behavior |
| --- | --- |
| `searchTerms` | `["milk", "coffee"]`. Each term is searched at every selected store. |
| `startUrls` | Optional H-E-B category, product, search or savings links. Plain strings are accepted. |
| `productIds` | `["314125", "125577"]`. Retailer product IDs, not UPC barcodes. |
| `locations` | `["78704", "77002"]`. Selects the nearest supported H-E-B store within 50 miles. ZIP+4 is accepted. |
| `postalCodes` | Alternate name for locations. A nonempty locations array takes precedence. |
| `storeIds` | `["754", "744"]`. Exact store numbers take precedence over both ZIP fields. |
| `maxItemsPerSearch` | New products per term, category or deal source at one store. Default 20; maximum 1,000. |
| `maxItems` | Global product/store observation limit. Default 20; maximum 10,000. |
| `dealsOnly` | Keep products with source sale, price-drop, weekly-ad, coupon or Combo Loco information. |
| `includeDetails` | Add descriptions, ingredients, nutrition, preparation and safety text. No extra product fee. |
| `proxyConfiguration` | Automatic datacenter routing first, US residential after refusals. Explicit buyer routing settings are preserved. |

Overlapping ZIPs use each resolved store once; `requestedLocations` lists them. With no locations or storeIds, store 92 (Victoria H-E-B plus!) is used: the signed-out website default observed on 11 November 2026. Prices, stock and store metadata are fetched live.

The platform can insert its automatic proxy default, `{"useApifyProxy":true}` or the same object with an empty group list. Those defaults still allow datacenter-to-residential fallback. Explicitly disabled proxy use, a specified group, country or custom proxy stays under the buyer's control.

#### Search at two stores

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

#### Monitor a category

```json
{
  "startUrls": [
    "https://www.heb.com/category/shop/dairy-eggs/milk/490016/490053"
  ],
  "storeIds": ["754"],
  "maxItemsPerSearch": 150,
  "maxItems": 150
}
```

Category requests preserve the category ID from the URL. Product rows must carry the selected store ID before they can be delivered. Pagination follows the source cursor until it ends, the product cap is reached, or the safety limit of 100 pages per source is reached.

#### Monitor an exact basket

```json
{
  "productIds": ["314125", "125577"],
  "storeIds": ["754", "744"],
  "maxItems": 4,
  "includeDetails": true
}
```

### Prices and spending limits

One billable product is one distinct product at one store with a usable current in-store price. Failed requests, duplicates, notes, summaries and empty searches have no product charge. There is no additional default dataset-row fee and no separate fee for ingredients or coupons.

| 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 platform's minimum $0.00005 Actor start charge. Base pricing is $0.004 per product, Bronze $0.0038, Silver $0.0036 and Gold $0.0032. The start event is charged per GB of allocated memory with a minimum of one event.

The Actor checks the remaining spending allowance before more product work and before saving a product. If the next product would exceed the limit, it stops cleanly and records the reason in `SUMMARY`. Apify can reject a charge limit below the configured minimum before starting a run.

### Monitor prices every day

Save a task with stable store IDs, product IDs or categories. In Apify Console, create a schedule, select the task and choose its timezone. Connect the completed-run webhook to your database, spreadsheet or workflow.

Use `retailer + storeId + productId` as the observation key and `scrapedAt` as the snapshot timestamp. Store UPCs as text to retain leading zeros. Keep in-store prices, curbside prices and coupon conditions in separate columns. Each scheduled run collects a new observation; save those observations in your system to build price history.

Before accepting a daily snapshot, inspect `SUMMARY.status`, `freeFailures`, `resolvedStores` and `outcomes`. An empty search is reported as `no-matches`. A source refusal is reported separately and does not create a replacement price from an old snapshot.

Dataset and page checkpoints survive an Actor reboot. Saved product/store observations are checked before more delivery. Delivery and charging are serial, with saved rows, charge receipts and platform counts reconciled on recovery. Ambiguous billing evidence stops further charging.

### API and integrations

Start a run with your own Apify token, then read the completed dataset and summary:

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

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("moggedhq/heb-scraper").call(
    run_input={"searchTerms": ["milk"], "locations": ["78704"], "maxItems": 20}
)
rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())
```

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('moggedhq/heb-scraper').call({
  searchTerms: ['milk'], storeIds: ['754'], maxItems: 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Make, Zapier, n8n, Google Sheets and custom pipelines can consume the dataset. Filter `recordType` to `PRODUCT` when importing prices; free explanatory rows use `NOTE`. Read `SUMMARY` for coverage and spending-limit status.

### Use with AI agents (MCP)

Connect through `https://mcp.apify.com`. Ask for H-E-B prices, unit prices, coupon conditions and stock at specified Texas stores. Give the agent search terms or product IDs, ZIPs or exact store numbers, and a maximum product count. Ask it to inspect `SUMMARY`, preserve null values and retain the distinction between in-store and curbside prices.

### Limits

- Coverage is the public, signed-out heb.com catalog at supported H-E-B stores. This does not include the Mexico catalog or every other retail banner operated by the same company.
- Online availability is not an audited physical shelf count, and quantity remains null when the source supplies only a stock state.
- Coupon details are requested for returned products with a coupon flag. Redemption can require clipping, a qualifying quantity or another purchase. Account-specific offers, clipped-account state and checkout totals are outside coverage.
- Sale dates, coupon start dates, separate member prices, review data and exact stock quantities can be absent. They remain null. A coupon expiry is not substituted for the end of an unrelated sale.
- Savings links scan the public department catalog and retain products with matching offer flags and coupons. Image-only flyer panels and historical promotion archives are outside coverage.
- The default store is the website default observed on the date stated above. Use exact storeIds for a stable monitored store.
- The source can refuse requests or change its public API. Datacenter and US residential routing are retried; affected inputs can still leave free failures in the summary.
- Parseable invalid inputs produce a free note and summary. Apify can reject input that fails the form schema before a run starts. The Actor does not sign in or solve CAPTCHAs.

### FAQ

**Can I choose a precise store?** Yes. Use its numeric storeIds value, such as 754, or use a ZIP and inspect the resolved store in the summary.

**Which price should I use for curbside analysis?** Use curbsidePrice and its associated contextPrices entry. The primary price field represents the in-store context described above.

**Are UPCs guessed from SKU numbers?** No. A UPC must come from the source's twelveDigitUPC field and pass its format and checksum checks. SKU remains a separate identifier.

**Are coupon discounts subtracted?** No. The offer description, redemption date and conditions stay alongside the regular product price.

**Does includeDetails add another charge?** No. It adds source requests for descriptions, ingredients and nutrition without adding another product event.

**Why did the run return fewer products than the cap?** The source may have fewer matches, products may overlap across inputs, a deals filter may exclude them, or the spending limit may have been reached. Check the source outcomes in SUMMARY.

# Actor input Schema

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

Find H-E-B products such as milk, chicken or coffee at every selected store. Leave empty for product IDs or category links only.

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

Optional public heb.com links. Store IDs or ZIP codes control prices; store parameters in URLs do not override the run selection.

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

Optional numeric H-E-B product IDs, such as 314125. These are product numbers, not UPC barcodes.

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

Texas ZIP codes, such as 78704 or 77002. Selects the nearest supported H-E-B store within 50 miles. Empty means the website default store.

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

Alternate name for locations. A nonempty locations array takes precedence. Exact storeIds take precedence over both ZIP fields.

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

Optional exact numeric H-E-B store numbers, such as 754. Each is verified. These take precedence over ZIP codes.

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

Maximum new products from each term, category or deals source at one store. Duplicate products at the same store are free.

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

Global product/store observation limit. About $0.004 per product: 20 products cost about $0.08 plus the small Actor start charge.

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

Keep sales, price drops, weekly-ad products, digital coupons and Combo Loco offers. Coupon savings stay separate from price.

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

Include product description, ingredients, nutrition and preparation text. Coupon details are retrieved when an offer flag is present. No extra product fee.

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

Automatic default uses the account default datacenter selection first and US residential only on refusal. Explicit disabled, country, group and custom-proxy settings are preserved.

## 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/heb-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/heb-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/heb-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/heb-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/uQL3DdjLvk4RZuTVT/builds/9mcWUcWEtZ4WRtK1A/openapi.json
