# Safeway & Albertsons Scraper: Prices & Coupons by ZIP (`seemuapps/safeway-albertsons-scraper`) Actor

Scrape Safeway, Albertsons, Vons, Jewel-Osco, ACME and Shaw's store prices, Club Card deals, digital coupons, unit prices, aisles and stock by ZIP code.

- **URL**: https://apify.com/seemuapps/safeway-albertsons-scraper.md
- **Developed by:** [Seemu Scraping](https://apify.com/seemuapps) (community)
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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.

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

## Safeway & Albertsons Scraper: Prices & Coupons by ZIP

Get the real shelf price at a specific Safeway, Albertsons, Vons, Jewel-Osco, Shaw's, ACME, Randalls, Tom Thumb, Pavilions, Star Market, Carrs or Haggen store: regular price, Club Card / sale price, unit price, promo text, digital coupons attached to each product, aisle location, stock and UPC. Search by keyword, browse whole categories, or list every digital coupon available at the store. Enter a ZIP code and the nearest store is used. No login needed.

### What you get

**Products** (search and category modes), one row per product:

- **Prices**: `price` (what you pay today), `regularPrice`, `salePrice`, `clubPrice` (Club Card / member price), `savings`, `onSale`, `promoText` (e.g. `Club Card Price: $6.49 Save Up To: $0.5`), `promoEndDate`
- **Unit pricing**: `pricePerUnit`, `regularPricePerUnit`, `unitOfMeasure` (e.g. `FL.OZ`), `size`, `soldByWeight`
- **Digital coupons on the item**: `digitalCoupons` with offer ID, title, discount and expiry
- **In the store**: `department`, `aisle`, `shelf`, `aisleLocation` (e.g. `Aisle 17`), `categoryId`, `inStock`
- **Identity**: `productId`, `upc`, `name`, `brand`, `imageUrl`, `url`, `snapEligible`
- **Context**: `storeId`, `storeAddress`, `banner`, `bannerName`, `zipCode`, `keyword` / `category`, `position`

**Coupons** (coupons mode), one row per digital coupon: `offerId`, `title`, `description`, `discount` (e.g. `$1.00 off`, `$4.49 each`), `category`, `offerType` (manufacturer or store coupon), `minPurchaseQty`, `isClippable`, `startsAt`, `expiresAt`, `imageUrl`, `storeId`, `banner`.

Export to JSON, CSV, Excel or Google Sheets from the Apify console, or pull the dataset via API.

### Use cases

- **Grocery price monitoring**: schedule daily runs to track prices and Club Card deals at the stores you care about
- **Price comparison by ZIP code**: compare the same products across banners, stores and regions
- **Coupon and deal tracking**: export every digital coupon at a store each week
- **Brand and retail analytics**: shelf placement (aisle), promo frequency and unit-price positioning across a category
- **Shopping and meal-planning apps**: real store prices and stock for a shopper's local store

### How to use

1. Pick the **Store banner** (Safeway, Albertsons, Jewel-Osco, ...).
2. Enter a **ZIP code**. The nearest store of that banner is used, and the store saved to the `STORE` record. Or enter an exact **Store ID** to monitor the same store on every run.
3. Choose a **Mode**:
   - **Search products by keyword**: add **Keywords** such as `milk` or `coca cola`. Each keyword is searched separately.
   - **Browse categories**: add **Categories** as aisle page links (e.g. `https://www.safeway.com/shop/aisles/dairy-eggs-cheese/milk-cream.html`) or category IDs (e.g. `1_11_4`; every product row shows its `categoryId`).
   - **List digital coupons**: returns every coupon available at the store.
4. Set **Max items per keyword / category** (default 100; `0` for everything). Optionally tick **In stock only** or **Deals only**.
5. Run the actor. Results appear in the **Dataset** tab.

#### Getting the next page

After the run finishes, open the **Key-value store** tab, copy the `NEXT_PAGE_ID` value, and paste it into **Page ID** on your next run (keep the same keywords or categories). Each keyword or category continues where it stopped. If `NEXT_PAGE_ID` is `null`, you've fetched everything.

### Output example

```json
{
  "recordType": "product",
  "productId": "960127166",
  "upc": "0085631200275",
  "name": "Fairlife Milk Ultra-Filtered Fat Free - 52 Fl. Oz.",
  "brand": "Fairlife",
  "size": "52 fl oz",
  "price": 6.49,
  "regularPrice": 6.99,
  "salePrice": 6.49,
  "clubPrice": 6.49,
  "savings": 0.5,
  "onSale": true,
  "promoText": "Club Card Price: $6.49 Save Up To: $0.5",
  "promoEndDate": "2026-11-17T23:59:00",
  "pricePerUnit": 0.12,
  "regularPricePerUnit": 0.13,
  "unitOfMeasure": "FL.OZ",
  "digitalCoupons": [
    { "offerId": "68145403", "title": "Buy TWO Family Size Nabisco Oreo Cookies & get $0.50 off any Milk.", "discount": "$0.50 off Milk", "expiresAt": "2026-12-05T19:00:00.000Z" }
  ],
  "department": "Dairy, Eggs & Cheese",
  "aisle": "Milk & Cream",
  "shelf": "Milk",
  "aisleLocation": "Dairy",
  "categoryId": "1_11_4_5",
  "inStock": true,
  "imageUrl": "https://images.albertsons-media.com/is/image/ABS/960127166",
  "url": "https://www.safeway.com/shop/product-details.960127166.html",
  "storeId": "739",
  "storeAddress": "3350 Mission St, San Francisco, CA 94110",
  "banner": "safeway",
  "bannerName": "Safeway",
  "zipCode": "94110",
  "mode": "search",
  "keyword": "milk",
  "position": 10
}
```

### FAQ

**Are these online or in-store prices?** They are the prices the retailer's website shows for the selected store, including Club Card and sale prices. Prices can differ between stores, so always set the ZIP code or store ID you care about.

**Do I need a Club Card account?** No. Club Card prices and digital coupons are public. Clipping coupons needs an account, but listing them does not.

**Why is `brand` sometimes empty?** The store doesn't publish a brand field for every product. The actor fills it in when the brand can be matched from the product name.

**Can I compare banners?** Yes. Run each banner with its own ZIP code and combine the datasets. The fields are identical.

# Actor input Schema

## `banner` (type: `string`):

Which Albertsons Companies grocery chain to scrape. Prices, deals and coupons are specific to the chosen banner and store.

## `zipCode` (type: `string`):

5-digit US ZIP code. The nearest store of the chosen banner is used. Leave empty if you enter a Store ID instead.

## `storeId` (type: `string`):

Exact store number (e.g. 3132). Overrides the ZIP code lookup — use it to monitor the same store on every run. Previous runs save the resolved store in the STORE record of the Key-value store.

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

Search products by keyword, browse whole categories (aisles), or list the store's digital coupons.

## `keywords` (type: `array`):

Search mode: product searches to run, one per line (e.g. 'milk', 'coca cola'). Each keyword is searched separately.

## `categories` (type: `array`):

Category mode: category IDs (e.g. 1_11_4 for Milk & Cream — shown as categoryId on every product) or aisle page URLs such as https://www.safeway.com/shop/aisles/dairy-eggs-cheese/milk-cream.html.

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

Maximum products per keyword or category (or coupons in coupons mode). Set 0 for no limit.

## `inStockOnly` (type: `boolean`):

Skip products that are out of stock at the selected store.

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

Only keep products with a Club Card price, sale, or a digital coupon attached.

## `pageId` (type: `string`):

Paste NEXT_PAGE_ID from the previous run's Key-value store to continue each keyword / category where it stopped.

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

Default uses Apify datacenter proxy and automatically retries through US residential proxy if the store website blocks a request.

## Actor input object example

```json
{
  "banner": "safeway",
  "zipCode": "94110",
  "mode": "search",
  "keywords": [
    "milk",
    "coca cola"
  ],
  "maxItems": 100,
  "inStockOnly": false,
  "dealsOnly": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Products: productId, upc, name, brand, size, price, regularPrice, salePrice, clubPrice, savings, promoText, pricePerUnit, digitalCoupons, department, aisle, aisleLocation, inStock, imageUrl, url, storeId, banner, zipCode, keyword. Coupons: offerId, title, description, discount, category, offerType, startsAt, expiresAt, storeId, banner.

## `nextPageId` (type: `string`):

NEXT_PAGE_ID record in the default key-value store. Paste into Page ID on the next run to continue; null when every keyword / category is exhausted.

## `store` (type: `string`):

STORE record: banner, ZIP, store ID, address and distance of the store used for prices.

# 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 = {
    "banner": "safeway",
    "zipCode": "94110",
    "keywords": [
        "milk",
        "coca cola"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/safeway-albertsons-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 = {
    "banner": "safeway",
    "zipCode": "94110",
    "keywords": [
        "milk",
        "coca cola",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/safeway-albertsons-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 '{
  "banner": "safeway",
  "zipCode": "94110",
  "keywords": [
    "milk",
    "coca cola"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call seemuapps/safeway-albertsons-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,seemuapps/safeway-albertsons-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/Bbsv15hCgRZGgh4jj/builds/SymFvmguYSyGIeIS6/openapi.json
