# Hy-Vee Scraper - Midwest Grocery Prices & Stock (USA) (`superslowsloth/hyvee-products`) Actor

Hy-Vee Aisles Online scraper: product pages or the whole sitemap to one row per product with USD price, in-stock flag, UPC, brand, size, aisle path, ingredients and allergens. For Midwest grocery basket price watching.

- **URL**: https://apify.com/superslowsloth/hyvee-products.md
- **Developed by:** [Superslow Sloth](https://apify.com/superslowsloth) (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.50 / 1,000 product scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Hy-Vee scraper: Midwest grocery prices and stock (USA)

This Hy-Vee scraper reads product pages on [Hy-Vee Aisles Online](https://www.hy-vee.com/aisles-online)
(the grocery shop of Hy-Vee, the Midwest supermarket chain) and returns **one row per product**: the
**USD shelf price**, an in-stock flag, the UPC and GTIN, brand, pack size, the aisle path, ingredients,
allergens, a product photo and the store the price is for. Give it the products you buy (your grocery
basket), or switch on the sitemap to walk the whole shop, and run it on a schedule: diff the dataset to
get a **Midwest grocery basket price watch**.

No account, no API key, no login, no browser. One request returns one product.

### Input

| Field | Notes |
|---|---|
| `productUrls` | Product pages to read, one per line: the page address (`https://www.hy-vee.com/aisles-online/p/1883685/sikorski-dried-hunters-sausage-grab-and-go`), the path, or just the product number (`1883685`). A search or category address is refused with a message: Hy-Vee's `robots.txt` disallows `/aisles-online/search`, so this actor never requests it, and category pages are drawn in the browser. Use `fromSitemap` to discover products. The same product given twice is read once. |
| `fromSitemap` | Also read the products in Hy-Vee's product sitemap (`/sitemap-aisles-online-products-index.xml`: **104,239 products** in 11 gzip files on 2026-11-18), after the ones in `productUrls`. The files are read one at a time and only as far as `maxItems` needs. Default off. |
| `maxItems` | Stop after writing this many rows (default 100, up to 120,000). One row is one product. Products are read in the order given, the sitemap's after yours. |
| `proxyConfiguration` | Apify Proxy, automatic datacenter pool, by default. |

Example input:

```json
{
  "productUrls": [
    "https://www.hy-vee.com/aisles-online/p/1883685/sikorski-dried-hunters-sausage-grab-and-go",
    "https://www.hy-vee.com/aisles-online/p/4244448/primal-kitchen-pesto-sauce-16-oz"
  ],
  "maxItems": 30
}
```

### Output

Prices are numbers in US dollars. **One row is one product.** `product_id` is the unique key. A row
reports the price on the day it was read (`scraped_at`); keep the datasets of scheduled runs and compare
them to see a price move or a product go out of stock.

| Field | Notes |
|---|---|
| `product_id` | Hy-Vee's product id (the number after `/p/` in the address), a string. |
| `name`, `brand`, `size` | The name as the page prints it; the brand (null where Hy-Vee's page says `Unknown`, which it does for 26 of 161 products measured); the pack size as printed (`16 oz`, `8 ea Pack`, `1 lb`), whitespace trimmed. |
| `upc`, `gtin14` | The 13-digit UPC as sent, and the 14-digit GTIN where the page carries one (null otherwise; some pages send it and some do not). |
| `currency`, `price` | `USD`, and **the price at the store named in `store_id`** today. For a multi-buy product ("2 for $5") it is the single-unit price the page shows. |
| `default_price` | The item's default e-commerce list price, as sent. **It is not always the shelf price**: on 51 of 161 products measured on 2026-11-18 it differed from `price`, and `price` is the one the store shows. Use `price`. |
| `in_stock`, `availability` | `availability` is the page's schema.org value as sent (`InStock`); `in_stock` is true for `InStock` or `LimitedAvailability`, false for `OutOfStock`, `SoldOut` or `Discontinued`, and null for anything else or nothing. Every one of the 161 pages in the first sample said `InStock`, so a product that is really sold out may show up some other way: check `ecommerce_status`. |
| `ecommerce_status` | The item's `ecommerceStatus` as sent: `ACTIVE` or `INACTIVE`. Hy-Vee shows a price and `InStock` for some `INACTIVE` items (the sample row below is one), so it is carried as sent and not folded into `in_stock`. |
| `average_weight` | The weight in pounds of one unit of a product sold by weight (a deli salsa: `0.95`), as sent; null for everything sold by the each. |
| `delivery_eligible` | False when the page says the product is not eligible for delivery; null when it says nothing. |
| `categories` | The aisle path, outermost first (`Fresh`, `Meat & Seafood`, `Packaged Meat`, ...). Empty when the page lists none. |
| `description`, `ingredients`, `allergens` | The marketing blurb (null on 68 of 300 products read in one sweep), the ingredient statement as printed, and the declared allergens (`Milk`, `Tree Nuts`). An empty `allergens` means none were declared, which is not the same as "has none". |
| `image_url`, `url` | The primary product photo (null where there is none) and the canonical page address. |
| `store_id`, `store_name`, `is_default_store` | **The store the price is for.** Hy-Vee picks it from the address the request comes from (`is_default_store` true) and says so on the page. Every page read from the test machine said store 1759, Urbandale, Iowa. Compare rows across runs only when `store_id` matches. |
| `scraped_at` | When the row was read, UTC, ISO 8601. |

Example row (a real row, 2026-11-18):

```json
{
  "product_id": "1883685",
  "name": "Sikorski Dried Hunters Sausage Grab And Go",
  "brand": null,
  "size": "1 lb",
  "upc": "0245454000000",
  "gtin14": null,
  "currency": "USD",
  "price": 14.99,
  "default_price": 14.99,
  "in_stock": true,
  "availability": "InStock",
  "ecommerce_status": "INACTIVE",
  "average_weight": null,
  "delivery_eligible": true,
  "categories": [
    "Fresh",
    "Meat & Seafood",
    "Packaged Meat",
    "Hot Dogs & Sausages",
    "Sausages"
  ],
  "description": null,
  "ingredients": "Pork, water, spices, salt, monosodium glutamate, sodium erythorbate, garlic powder, beet powder, sodium nitrite, naturally smoked.",
  "allergens": [],
  "image_url": "https://cdn.hy-vee.com/products/0245454000000/CF/ee66bebd-0831-40df-93a8-854134c4c73d_large.png",
  "url": "https://www.hy-vee.com/aisles-online/p/1883685/sikorski-dried-hunters-sausage-grab-and-go",
  "store_id": 1759,
  "store_name": "Urbandale",
  "is_default_store": true,
  "scraped_at": "2026-11-18T05:07:41Z"
}
```

#### Honest nulls

A field the page did not carry is `null`, never `0` or `""`.

- **No unit price, no was-price, no sale flag.** The page carries the shelf price and an item list price
  and nothing else about promotions; a sale shows up as `price` changing between two runs.
- **No store choice.** The price is for the store Hy-Vee picks for the address the request leaves from.
  Prices, promotions and availability vary by store, and this actor has no input to pick another.
- **No reviews, no nutrition table.** This is the price-and-stock table; the nutrition facts are an image.

### Pricing

Pay per event:

- **$0.002** per run (`actor-start`), charged only after your input is validated, so a run that fails on
  bad input costs nothing.
- **$0.0035** per product written (`product-scraped`)

A row is charged only after it is written. A product Hy-Vee does not have, a product whose page shows no
price, and the one product Hy-Vee's `robots.txt` disallows are not written and not charged.

### How it fetches

Each Hy-Vee product page is a server-rendered Next.js page (80 to 90 KB) that carries the product, its
price at the chosen store and its aisle path as JSON in `<script id="__NEXT_DATA__">`, so one request is
one row. The sitemap is an index of 11 files that are **real gzip files**, not gzip-encoded responses; the
actor reads them as bytes and inflates them (a text fetch cannot: the body is not UTF-8 and the decode is
lossy). Measured 2026-11-18 on a probe run on the Apify platform, 10 requests per route: **datacenter 10 of
10, residential 10 of 10, the platform's own address 10 of 10**, so the actor defaults to the cheapest, the
datacenter pool (`{"useApifyProxy": true}`; naming the `DATACENTER` group explicitly is refused at run
start on accounts without that group). Pages are read eight at a time and written in the order you gave them. A refusal (403,
429, 5xx), a 200 with no product in it, or a dropped connection is retried from a fresh exit address.
From a plain machine with no proxy, 300 products took 33 seconds (about 9 pages a second).

Things worth knowing, all measured on 2026-11-18:

- **A product that does not exist is HTTP 200.** Hy-Vee answers with its own "not found" payload
  (`notFound: true`), not a 404. The actor recognises it, does not retry it and does not charge for it. A
  ten-digit product id is HTTP 500 on Hy-Vee's side, so ids of more than nine digits are refused as input.
- **Sitemap order is not newest first.** The `lastmod` dates in a sitemap file are mixed (the first file
  runs from May to November 2026 in no order), so `fromSitemap` with a small `maxItems` is a sample, not
  "the newest products".
- **The store object is not always whole.** On one read of 300 pages, 224 sent the store without its
  city and with the state spelled `Iowa` where the other 76 said `IA`. The store's id and name were always
  there and a re-read of 60 of those pages gave the same prices, so `store_id` and `store_name` are the
  columns here and the city and state are not.
- **Disallowed paths are never fetched.** `robots.txt` disallows search, one collection and the product
  `4117014`; none is requested.

If Hy-Vee changes its page layout, the run fails with a message instead of returning empty rows.

# Actor input Schema

## `productUrls` (type: `array`):

Hy-Vee Aisles Online product pages to read, one per line: your grocery basket. Give the product page address (https://www.hy-vee.com/aisles-online/p/1883685/sikorski-dried-hunters-sausage-grab-and-go), the path, or just the product number (1883685). Each product gives one row. A search or category address is not accepted: Hy-Vee's robots.txt disallows search and its category pages are drawn in the browser, so use the sitemap option below to discover products. A product Hy-Vee no longer has is skipped at no charge. The same product given twice is read once.

## `fromSitemap` (type: `boolean`):

Read the product addresses listed in Hy-Vee's product sitemap (https://www.hy-vee.com/sitemap-aisles-online-products-index.xml, 104,239 products when this actor was built, in 11 files of up to 10,000), after the addresses above, and return a row for each. The sitemap files are read one at a time and only as far as Max rows needs. Use Max rows to stop early.

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

Stop after writing this many rows (one row is one product). Products are read in the order given, the sitemap's after yours. A product Hy-Vee no longer has, or that shows no price, is not written and not charged. Up to 120,000 are accepted.

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

Use Apify Proxy's automatic datacenter pool (the default). hy-vee.com answered 10 of 10 product-page requests from the Apify datacenter proxy, 10 of 10 from residential and 10 of 10 from the platform's own address when this actor was built. A refused request is retried from a fresh address. The store a price is for is picked by Hy-Vee from the address the request comes from; every row says which store (store_id, store_name).

## Actor input object example

```json
{
  "productUrls": [
    "https://www.hy-vee.com/aisles-online/p/1883685/sikorski-dried-hunters-sausage-grab-and-go",
    "https://www.hy-vee.com/aisles-online/p/4244448/primal-kitchen-pesto-sauce-16-oz",
    "https://www.hy-vee.com/aisles-online/p/3344757/fresh-salsa",
    "https://www.hy-vee.com/aisles-online/p/4279483/la-colombe-coffee-strawberry-matcha-latte-11-fl-oz-can",
    "https://www.hy-vee.com/aisles-online/p/4262884/hy-vee-true-apple-and-gouda-smoked-chicken-sausage",
    "https://www.hy-vee.com/aisles-online/p/2854366/ensure-max-protein-nutrition-shake-french-vanilla-4pk"
  ],
  "fromSitemap": false,
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `items` (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 = {
    "productUrls": [
        "https://www.hy-vee.com/aisles-online/p/1883685/sikorski-dried-hunters-sausage-grab-and-go",
        "https://www.hy-vee.com/aisles-online/p/4244448/primal-kitchen-pesto-sauce-16-oz",
        "https://www.hy-vee.com/aisles-online/p/3344757/fresh-salsa",
        "https://www.hy-vee.com/aisles-online/p/4279483/la-colombe-coffee-strawberry-matcha-latte-11-fl-oz-can",
        "https://www.hy-vee.com/aisles-online/p/4262884/hy-vee-true-apple-and-gouda-smoked-chicken-sausage",
        "https://www.hy-vee.com/aisles-online/p/2854366/ensure-max-protein-nutrition-shake-french-vanilla-4pk"
    ],
    "maxItems": 30,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("superslowsloth/hyvee-products").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 = {
    "productUrls": [
        "https://www.hy-vee.com/aisles-online/p/1883685/sikorski-dried-hunters-sausage-grab-and-go",
        "https://www.hy-vee.com/aisles-online/p/4244448/primal-kitchen-pesto-sauce-16-oz",
        "https://www.hy-vee.com/aisles-online/p/3344757/fresh-salsa",
        "https://www.hy-vee.com/aisles-online/p/4279483/la-colombe-coffee-strawberry-matcha-latte-11-fl-oz-can",
        "https://www.hy-vee.com/aisles-online/p/4262884/hy-vee-true-apple-and-gouda-smoked-chicken-sausage",
        "https://www.hy-vee.com/aisles-online/p/2854366/ensure-max-protein-nutrition-shake-french-vanilla-4pk",
    ],
    "maxItems": 30,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("superslowsloth/hyvee-products").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 '{
  "productUrls": [
    "https://www.hy-vee.com/aisles-online/p/1883685/sikorski-dried-hunters-sausage-grab-and-go",
    "https://www.hy-vee.com/aisles-online/p/4244448/primal-kitchen-pesto-sauce-16-oz",
    "https://www.hy-vee.com/aisles-online/p/3344757/fresh-salsa",
    "https://www.hy-vee.com/aisles-online/p/4279483/la-colombe-coffee-strawberry-matcha-latte-11-fl-oz-can",
    "https://www.hy-vee.com/aisles-online/p/4262884/hy-vee-true-apple-and-gouda-smoked-chicken-sausage",
    "https://www.hy-vee.com/aisles-online/p/2854366/ensure-max-protein-nutrition-shake-french-vanilla-4pk"
  ],
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call superslowsloth/hyvee-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,superslowsloth/hyvee-products"
        }
    }
}
```

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/gENXhBN8x51RzYKuQ/builds/KD6Gakzse98TVHTyd/openapi.json
