# Smart & Final Scraper: Store Prices, Deals & Bulk Packs (`moggedhq/smart-and-final-scraper`) Actor

Get Smart & Final products by store or ZIP: current and regular prices, bulk-pack size, unit price, sale terms, promotion dates and pickup availability where public. Search, categories or product URLs. About $0.004 per product: 1,000 products cost $4. No login.

- **URL**: https://apify.com/moggedhq/smart-and-final-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

## Smart & Final Scraper: Store Prices, Deals & Bulk Packs

For retail price analysts, brands, food-service buyers and comparison services tracking Smart & Final products at a chosen store. Collect advertised pickup-catalog prices, comparison prices, unit prices, bulk-package information, public promotions, digital coupon terms and online stock signals. **$0.004 per delivered product**, or **$0.08 for 20 products**, plus a minimum **$0.00005 Actor start charge**. No retailer login or API key is required.

### Understand what the price means

The Actor reads the retailer's public **online pickup catalog** for the resolved store. `priceScope` is `online-pickup`. The request does not reserve a pickup slot, place an order or verify a physical shelf label. The retailer's delivery FAQ says its online pricing is store specific and varies by location. A ZIP selects a nearby eligible store; the returned `storeId`, store name, address and price source establish the observation's location.

Promotions can require buying several items. One observed First Street milk product advertised $3.99 per gallon with **Must Buy 2**, alongside a $4.29 comparison price. Its row has `price: 3.99`, `minimumBuyQuantity: 2` and `priceRequiresMinimumQuantity: true`. Keep these together when comparing a single-item basket. `regularPrice` retains the retailer's comparison price; it is not a separately verified checkout quote.

Weighted goods need the same care. A chicken family pack observed on 5 November 2026 displayed **$9.43 avg/ea** and **$1.99/lb**. The estimated package total and price per pound belong in different columns. `priceBasis` distinguishes an estimated package, a selling unit and a weight-based price. Taxes, deposits, substitutions, service fees and the final weighed amount are outside the advertised product price.

Public digital coupons stay in `digitalCoupons`, including their summary, value and redemption terms. They can require clipping, a barcode, a qualifying purchase or a redemption limit. Coupon values are never automatically subtracted from `price`, and the Actor does not claim that a guest has clipped or redeemed anything.

### What you get

Dataset views show product prices, deals and bulk or weighted details. The free `DEALS` output contains deal products; large exports use numbered parts.

| Common field | Meaning |
| --- | --- |
| `verdict` | Product, price, important minimum quantity, stock label and store in one sentence. |
| `retailer`, `country`, `currency` | Smart & Final, US and USD. |
| `storeId`, `storeName`, `location` | Actual retailer store and requested ZIP. Location is null for exact or default stores. |
| `productId`, `sku`, `gtin` | Original retailer product ID/SKU strings, preserving leading zeros, including padded PLU-style IDs. `gtin` is null: generic IDs have no established barcode semantics, even when their checksum passes. Store identifiers as text. |
| `title`, `brand`, `size` | Supplied name, explicit brand and structured package-size label. |
| `price`, `regularPrice`, `onSale` | Current advertised price, comparison price and sale indicator. |
| `promoText`, `promoType` | Published promotion name, description, quantity condition and type. |
| `promoStart`, `promoEnd` | Supplied promotion timestamps, including temporary reductions when available. |
| `memberPrice`, `memberProgram` | Explicit loyalty-based price and program label when supplied. |
| `unitPrice`, `unitOfMeasure` | Price per gallon, ounce, pound or other unit, independently of package price. |
| `inStock`, `stockLevel` | Public availability, subject to availabilityRestrictions, and numeric quantity when supplied. |
| `rating`, `reviewCount` | Aggregate review fields when supplied. |
| `category`, `url`, `imageUrl` | Category breadcrumb, store-scoped product link and supplied image. |
| `scrapedAt` | UTC observation timestamp. |

Unknown values remain null. A missing review count is not zero reviews, and a missing stock quantity is not zero stock.

| Additional field | Meaning |
| --- | --- |
| `packQuantity` | Count from a structured count/each size, when the source gives one. |
| `sourceCasePack` | The retailer's case-pack attribute, kept separate from the shopper's selling unit. |
| `casePrice` | Separate case price, currently null; no case price is calculated from a supplier count. |
| `eachPrice` | Advertised selling-unit amount for an each-priced product. It is not the price of one component inside a multipack. |
| `minimumBuyQuantity` | Required promotion quantity when greater than one. |
| `estimatedPackageTotal`, `pricePerWeight` | Separately observed estimated total and weight-unit price. |
| `priceScope`, `priceBasis` | Online pickup scope and the unit or estimate represented by price. |
| `priceRequiresMinimumQuantity`, `priceRequiresMembership` | Conditions attached to the advertised amount. |
| `regularPriceKind` | Distinguishes a retailer comparison price from a current price repeated in regularPrice. |
| `offers`, `temporaryPriceReductions` | Published terms, IDs, quantities, limits and supplied dates. |
| `digitalCouponAvailable`, `digitalCoupons` | Public coupon presence, summaries, values and full redemption terms. |
| `stockStatus`, `sellBy`, `clubSized` | Supplied stock label, selling method and club-size flag. |
| `storeAddress`, `storeTimezone`, `requestedLocations` | Public store evidence and all ZIP selections that resolved to that store. |
| `details`, `sourceUrl` | Optional product description, ingredients and nutrition, plus the public price request. |
| `recordType` | PRODUCT for observations or NOTE for free explanations. |

### Start in three steps

1. Enter search terms, category/product links or product identifiers.
2. Choose ZIP codes or exact store IDs and set the number of products you want.
3. Run, inspect resolved stores and coverage in SUMMARY, then export JSON, CSV or Excel.

The form prefill searches milk near ZIP 90640 with a 20-product cap. A measured cloud run on 5 November 2026 delivered 20 products in 34.4 seconds. Source retries, additional stores and optional product details affect other runs. A further cloud test delivered 1,300 distinct products across two stores, including 253 deals.

### Inputs and examples

| Input | Behavior |
| --- | --- |
| `searchTerms` | Terms such as milk, coffee or chicken. Each term is searched at every selected store. Retailer product ID and short item-number searches can also be used. |
| `startUrls` | Official product, category, promotions or search-results URLs. A store in a pasted link does not override the run's store selection. |
| `productIds` | 12 to 14 digit retailer product ID/SKU strings; shorter inputs are left-padded to the retailer's 14 digit lookup form. These IDs are not verified GTINs. |
| `locations` | US ZIP codes used to choose the nearest eligible pickup store to a public postal centroid, within 160 km. |
| `storeIds` | Exact public retailer store IDs; these take precedence over ZIPs. |
| `maxItemsPerSearch` | New product rows per source and store; default 20, maximum 1,000. |
| `maxItems` | Global product/store row cap; default 20, maximum 10,000. |
| `dealsOnly` | Keep sales, public multi-buy promotions and public coupon products. |
| `includeDetails` | Add exact-product requests for description, ingredients, nutrition and images, without an extra product fee. |
| `proxyConfiguration` | Default datacenter pool first, then US residential retries after source failures; custom settings are optional. |
| `postalCodes`, `categoryUrls` | Convenience aliases for locations and additional startUrls. Canonical family names are recommended. |

Postal centroids come from [Zippopotam.us](https://api.zippopotam.us/us/90640); retailer prices come from Smart & Final.

For a repeatable basket at two stores:

```json
{
  "searchTerms": ["milk", "coffee"],
  "storeIds": ["522", "304"],
  "maxItemsPerSearch": 20,
  "maxItems": 80
}
```

For department monitoring:

```json
{
  "startUrls": [
    "https://www.smartandfinal.com/categories/dairy-id-M-12",
    "https://www.smartandfinal.com/categories/dry-grocery-id-M-01"
  ],
  "locations": ["90640"],
  "maxItemsPerSearch": 100,
  "maxItems": 200
}
```

### Real output example

Selected price fields observed in the 5 November 2026 milk run, shown with the corrected identifier mapping. The historical run used the earlier GTIN mapping; its saved rows have not been changed:

```json
{
  "retailer": "Smart & Final",
  "storeId": "522",
  "storeName": "522 - Montebello",
  "location": "90640",
  "productId": "00041512081187",
  "sku": "00041512081187",
  "gtin": null,
  "title": "First Street Milk",
  "size": "1 Gallon",
  "price": 3.99,
  "regularPrice": 4.29,
  "unitPrice": 3.99,
  "unitOfMeasure": "gal",
  "minimumBuyQuantity": 2,
  "priceRequiresMinimumQuantity": true,
  "priceScope": "online-pickup",
  "inStock": true
}
```

### Pricing and spending limits

A product is one distinct item at one store. The same item at two stores is two useful price observations. Overlapping searches, repeated URLs and repeated product IDs at the same store are delivered and charged once within a run. Notes, failures, retries, summaries and empty results have no product charge. There is no separate default dataset-row charge or additional includeDetails fee.

| 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 Actor start charge. Base pricing is $0.004 per product; Bronze is $0.0038, Silver $0.0036 and Gold $0.0032. Apify's maximum total charge can stop a larger job. Capacity is checked before additional delivery, and SUMMARY reports when that limit was reached.

### Monitor prices every day

Save a task with stable store IDs and a stable basket of product IDs, search terms or categories. In Apify Console, create a schedule, select the task and choose the schedule's timezone and frequency. Connect the completed-run webhook to your database, reporting workflow or spreadsheet.

Join observations using `retailer + storeId + productId`, retaining `scrapedAt` for each snapshot. Keep promotion quantities, comparison prices, unit prices and coupon terms in separate columns. Preserve product IDs/SKUs as text in spreadsheets so leading zeros survive. New scheduled runs collect fresh product observations and charge for their own delivered products.

### API and integrations

Use your own Apify token. The run response supplies the dataset and key-value store IDs:

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

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("moggedhq/smart-and-final-scraper").call(
    run_input={"searchTerms": ["milk"], "storeIds": ["522"], "maxItems": 20}
)
rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())
summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SUMMARY")
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('moggedhq/smart-and-final-scraper').call({
  searchTerms: ['milk'], storeIds: ['522'], maxItems: 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### Use with AI agents (MCP)

Connect your agent to `https://mcp.apify.com`. Ask for Smart and Final prices, unit prices, retailer product IDs/SKUs, stock labels and public promotion conditions at specified ZIPs or store IDs. Give the product cap explicitly. Ask the agent to inspect SUMMARY, keep nulls, preserve minimum-buy requirements and retain the online pickup scope in the resulting comparison.

### Limits

These are advertised online pickup-catalog observations without a reserved slot. They are not a physical shelf audit or a checkout guarantee. The final order can change with taxes, deposits, service charges, weighed quantities, substitutions and eligibility conditions.

The public directory covers the retailer's supported US stores. ZIP centroids choose a nearby eligible store within 160 km; distant or unknown ZIPs can return no store. Use exact store IDs when the store must remain fixed. The selected store may not be the store a delivery service would choose for a full street address.

Public coupon terms are collected without clipping or redeeming them. Personalized offers, account-specific eligibility, loyalty balances, shopping history and checkout state are excluded. Member prices are filled only when the public response explicitly supplies a loyalty price or condition.

Case-pack attributes can describe supplier packaging. They are not multiplied into a case price or treated as a guaranteed number of shopper units. Separate case prices, exact shelf quantities, ratings, review counts and many promotion start dates are often absent and remain null. An Every Day Low Prices message does not automatically mean a temporary discount.

Time restrictions remain in `availabilityRestrictions`, with supplied start/end times and store timezone. `inStock` does not override them. Source refusals and retailer changes can limit coverage. Requests are paced and retried with fresh anonymous sessions; the Actor does not sign in or solve CAPTCHAs. Saved pages and the dataset ledger protect delivery across reboots. Recovery reconciles saved rows and charges; ambiguous billing evidence stops further charging.

Parseable bad input produces free notes and a summary. Apify may reject schema-invalid input before a run starts. Source pagination ends when results are exhausted, no new identifiers arrive, a requested limit is reached or the pagination safety limit is reached. Historical price backfill is unavailable; retain your own snapshots to build price history.

### FAQ

**Can I choose an exact store?** Yes. Use storeIds, and confirm the address in SUMMARY. Exact IDs take precedence over locations.

**Does includeDetails add a fee?** No additional product fee. It adds exact-product requests for the optional metadata.

# Actor input Schema

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

Search the public store catalog, for example milk, chicken or coffee. Each term is searched at every selected store. Retailer product ID or short item-number searches are supported.

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

Official smartandfinal.com category, promotions, results or product URLs. The stores selected below take precedence over a store in a pasted URL.

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

Retailer product ID/SKU strings of 12 to 14 digits, such as 00041512081187. These lookup IDs are not verified GTINs. Use searchTerms for short internal item numbers.

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

US ZIPs. Selects the nearest eligible pickup store to the postal centroid within 160 km. SUMMARY identifies the actual store and distance. storeIds take precedence.

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

Exact public retailer store IDs, for example 522 or 304. Recommended for repeatable scheduled price observations.

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

Maximum new products per term, category or deals source at each store.

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

Global product/store row cap. About $0.004 per delivered product: 20 products cost $0.08 plus the small start charge.

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

Keep sales, multi-buy promotions and public digital-coupon products. Coupons remain separate and are not subtracted from the advertised price.

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

Add slower exact-product requests for descriptions, ingredients, nutrition and images. No additional product fee.

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

Default datacenter pool in the US first; US residential retries after failures. Optional custom proxy settings.

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

Alias of locations. Prefer locations when using the common retail family schema.

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

Alias that adds to startUrls. Prefer startUrls for common retail family workflows.

## Actor input object example

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

# Actor output Schema

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

No description

## `deals` (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": [
        "90640"
    ],
    "maxItemsPerSearch": 20,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/smart-and-final-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": ["90640"],
    "maxItemsPerSearch": 20,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/smart-and-final-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": [
    "90640"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20
}' |
apify call moggedhq/smart-and-final-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/smart-and-final-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/WgvEQsyRKrbAUVz35/builds/PFSlQzVGrrhm1QQHM/openapi.json
