# Kroger Catalog Price & Availability Finder (`vexaloom-labs/kroger-catalog-price-and-availability-finder`) Actor

Search Kroger.com's grocery catalog by keyword or look up products by UPC, and get title, brand, size, regular and sale price, dietary info, aisle location and store stock level for each item.

- **URL**: https://apify.com/vexaloom-labs/kroger-catalog-price-and-availability-finder.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Kroger Catalog Price & Availability Finder

Kroger.com publishes store-scoped prices, promotions, ratings, nutrition labels and aisle locations for tens of thousands of grocery items. This actor turns that public catalog into clean product records: search by keyword, look up UPCs or product URLs, or walk whole category pages.

### What this actor does

- **Four ways in:** keyword search, UPC lookup, product-URL lookup, and category browsing.
- **Store-scoped prices:** regular price, sale/promotional price, unit price and price-format text from the store Kroger serves for the request.
- **Stock and shelf data:** available count, stock level, aisle, side, bay, shelf and facing count when published.
- **Product detail:** ratings and review counts, nutrition facts, ingredients, allergens, dietary claims, package dimensions and weight, all product photos, and fulfillment options.
- **Filters:** regular-price range and availability (`any`, `inStock`, `outOfStock`).
- **Pagination built in:** search and category modes keep fetching pages until `maxItems` is reached or the source runs out.
- **Omit-empty output:** a field the source does not publish for a product is absent, never `null` or a placeholder.

### Inputs

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `mode` | Select | `search` | `search`, `byUpc`, `byProductUrl` or `byCategory`. |
| `searchQueries` | String list | `["milk"]` | Keywords for `search`. Multiple queries are combined and deduplicated. |
| `upcs` | String list | `[]` | 12-14 digit UPC/GTIN codes for `byUpc`. |
| `productUrls` | String list | `[]` | Kroger product page URLs for `byProductUrl`. The UPC is read from the URL. |
| `categoryUrls` | String list | `[]` | Kroger category URLs or numeric taxonomy IDs for `byCategory`, e.g. `https://www.kroger.com/pl/fresh-fruit/06111` or `06111`. |
| `availability` | Select | `any` | `any`, `inStock` or `outOfStock`. |
| `minPrice` | Number | – | Minimum regular price in USD. |
| `maxPrice` | Number | – | Maximum regular price in USD. |
| `maxItems` | Integer | `50` | 1–5000 emitted records. |

#### Examples

Search for two product types:

```json
{"mode": "search", "searchQueries": ["milk", "coffee"], "maxItems": 40}
```

Look up UPCs:

```json
{"mode": "byUpc", "upcs": ["0001111041660", "0086102900012"]}
```

Look up product URLs:

```json
{"mode": "byProductUrl", "productUrls": ["https://www.kroger.com/p/kroger-1-lowfat-milk-gallon/0001111041660"]}
```

Browse a category, in-stock items only:

```json
{"mode": "byCategory", "categoryUrls": ["https://www.kroger.com/pl/fresh-fruit/06111"], "availability": "inStock", "maxItems": 50}
```

### Output

Each record is one product, stamped with `recordType: "product"` and `scrapedAt`.

| Field | Description |
| --- | --- |
| `upc`, `gtin14`, `krogerUpc`, `aliasUpcs` | Standard GTIN-13, raw GTIN-14, Kroger's own 13-digit code used in URLs, and alternate codes. |
| `title`, `brandName`, `brandCode`, `size` | Product name, brand and package size. |
| `description` | Product description with HTML stripped. |
| `categories`, `primaryCategory` | Kroger merchandising categories. |
| `department`, `commodity`, `subCommodity` | Legacy Kroger family-tree taxonomy. |
| `taxonomyDepartment`, `taxonomyCommodity`, `taxonomySubCommodity` | Current taxonomy breadcrumb. |
| `dietaryInformation`, `nutritionalClaims` | Dietary and marketing claims. |
| `price`, `priceDisplay`, `unitPrice`, `pricePerUnitString`, `equivalizedUnitPriceString`, `nfor`, `priceTemplate` | Regular pricing and unit pricing. |
| `salePrice`, `saleDisplay`, `saleEndDate`, `saleUnitPriceString` | Promotional price when one is published. |
| `offers`, `promotionText`, `promotionEndDate` | Structured offers and the headline promotion. |
| `inventoryAvailable`, `stockLevel`, `locationId`, `storeName`, `storeAddress` | Store-scoped stock and the store that supplied it. |
| `aisle`, `aisleNumber`, `aisleSide`, `bay`, `shelf`, `facings` | Shelf location when published. |
| `averageRating`, `reviewCount`, `ratingDistribution`, `nutritionalRating` | Ratings and review counts. |
| `ingredients`, `allergens`, `nutritionFacts`, `servingSize`, `servingsPerContainer` | Nutrition label data. |
| `organic`, `glutenFree`, `nonGmo`, `kosher`, `fatFree`, `lowFat`, `liveNaturally`, `organicClaim`, `glutenFreeClaim`, `productWarning` | Dietary flags and claims. |
| `snapEligible`, `soldInStore`, `homeDelivery`, `krogerDelivery`, `alcohol`, `ageRestricted`, `hazmat`, `verified`, `liveNaturallyEligible` | Fulfillment and restriction flags. |
| `temperature`, `heightIn`, `widthIn`, `lengthIn`, `weightLb` | Storage and package measurements. |
| `imageUrl`, `thumbnailUrl`, `imageUrls` | Front image, thumbnail and up to ten large photos. |
| `fulfillmentOptions` | Pickup/delivery/in-store availability, order cap and price. |
| `productUrl`, `sourceUrl` | Canonical product page and the page the record came from. |
| `countriesOfOrigin` | Country of origin when published. |
| `scrapedAt` | ISO capture timestamp. |

### Compatibility

Saved tasks that still send `searchQuery`, `query`, `keyword`, `productUrl` or `categoryUrl` keep working: those keys are mapped in code onto `searchQueries`, `productUrls` and `categoryUrls`. `proxyConfiguration` is accepted but no longer needed. Existing output fields keep their names; new fields are added beside them.

### How it stays reliable

Kroger's web app is fronted by a bot filter that drops plain HTTP requests and non-browser sessions from many networks. The actor reads the same public product pages through a reader mirror that renders the page server-side, then extracts the product objects the page itself embeds. Every fetch is cache-busted so prices are current, requests are paced below the mirror's rate limit, and 429/5xx responses are retried with backoff. No login, cookie, API key or proxy setup is required.

### Limitations

- **Prices and stock are store-scoped.** Kroger selects the store from the request's location; the resulting `locationId`, `storeName` and `storeAddress` are included so you can see which store supplied the price.
- **Search and category pages return about 24 products per page.** The actor paginates automatically, but very broad queries can take several minutes at the default pacing.
- **Some values are genuinely absent.** Nutrition labels, ratings, promotions, aisle data and package dimensions exist only for products where Kroger publishes them; those fields are omitted.
- **Product-URL mode uses the UPC embedded in the URL.** A discontinued product page can still load while its UPC no longer appears in search; the actor then returns the product-page record, which may have no current price.
- **The catalog is the Kroger banner.** Other Kroger-family banners use different storefronts and are not covered.

### FAQ

**Do I need an account, cookies or a proxy?** No. Everything comes from public product pages, and the actor manages its own fetch path.

**Are sale prices included?** Yes. When Kroger publishes a promotional price for the store, `salePrice`, `saleDisplay` and `saleEndDate` are filled; otherwise those fields are absent.

**Why does a product not have a nutrition label?** Kroger does not publish one for every item, and some third-party brands omit it. The actor never invents values.

**Can I search with a UPC?** Yes. Use `mode: "byUpc"` with the code, or paste a full product URL with `mode: "byProductUrl"`.

**Can I combine filters?** Yes. Price and availability filters apply to every record in every mode.

**Is this affiliated with Kroger?** No. This is an independent tool and is not affiliated with, endorsed by or sponsored by The Kroger Co.

# Actor input Schema

## `mode` (type: `string`):

What to collect: a keyword search, UPC lookups, product URLs or whole category pages.

## `searchQueries` (type: `array`):

Keywords for mode=search, e.g. `milk`, `coffee`, `protein bars`. Results from all queries are combined and deduplicated.

## `upcs` (type: `array`):

Kroger UPC/GTIN codes to look up, 12-14 digits. Each code is searched and returned once.

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

Kroger product page URLs such as `https://www.kroger.com/p/<slug>/<upc>`. The UPC is read from the URL.

## `categoryUrls` (type: `array`):

Kroger category page URLs such as `https://www.kroger.com/pl/fresh-fruit/06111`, or a numeric taxonomy ID like `06111`.

## `availability` (type: `string`):

Keep all products, only products in stock, or only products currently out of stock.

## `minPrice` (type: `number`):

Only emit products whose regular price is at or above this amount.

## `maxPrice` (type: `number`):

Only emit products whose regular price is at or below this amount.

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

Hard cap on emitted records.

## Actor input object example

```json
{
  "mode": "search",
  "searchQueries": [
    "milk"
  ],
  "upcs": [],
  "productUrls": [],
  "categoryUrls": [],
  "availability": "any",
  "maxItems": 3
}
```

# Actor output Schema

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

Dataset containing all scraped Kroger products.

# 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 = {
    "mode": "search",
    "searchQueries": [
        "milk"
    ],
    "upcs": [],
    "productUrls": [],
    "categoryUrls": [],
    "availability": "any",
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/kroger-catalog-price-and-availability-finder").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 = {
    "mode": "search",
    "searchQueries": ["milk"],
    "upcs": [],
    "productUrls": [],
    "categoryUrls": [],
    "availability": "any",
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/kroger-catalog-price-and-availability-finder").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 '{
  "mode": "search",
  "searchQueries": [
    "milk"
  ],
  "upcs": [],
  "productUrls": [],
  "categoryUrls": [],
  "availability": "any",
  "maxItems": 3
}' |
apify call vexaloom-labs/kroger-catalog-price-and-availability-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/kroger-catalog-price-and-availability-finder"
        }
    }
}
```

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/wclglvOS3ql3QgZUl/builds/MERqsClXFelWDOfXr/openapi.json
