# Canada Retail Prices: Loblaws, Sobeys, Canadian Tire & More (`moggedhq/canada-retail-prices-scraper`) Actor

Compare Canada grocery prices and Canadian retail prices across Loblaws, No Frills, Sobeys, Voila, Canadian Tire, Home Depot Canada and Costco Canada. CAD price comparison, sales, PC Optimum or Scene offers, stock and aisles. $0.004 per product: 100 cost $0.40 + $0.005 setup. No login.

- **URL**: https://apify.com/moggedhq/canada-retail-prices-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

## Canada Retail Prices: Loblaws, Sobeys, Canadian Tire & More

For Canadian price analysts and comparison teams monitoring public CAD prices, offers and stock.

**US$0.004 per priced product or dated offer**: 100 products cost **US$0.40 plus US$0.005 setup at the default 1 GB**, before plan discounts. Setup is per GB, minimum one unit. Product amounts are Canadian dollars; service charges are US dollars. No retailer login.

### What you get

Every product starts with a readable verdict, followed by common fields and retailer extras.

| Field | Meaning |
| --- | --- |
| `verdict` | Price and store or region context in plain language |
| `recordType` | `PRODUCT` for observations, `NOTE` for free coverage explanations |
| `retailer`, `retailerKey` | Source name and stable bundle key |
| `country`, `currency` | CA and CAD for product observations |
| `storeId`, `storeName` | Verified selected store, warehouse or delivery region; null for regional flyers |
| `location` | Requested postal code when used for that observation |
| `productId`, `sku` | Source product identifiers, preserved as text |
| `gtin` | Source-labelled barcode with valid format and check digit, when available |
| `title`, `brand`, `size` | Product identity and the source package-size text |
| `price` | Advertised current amount for the stated source scope |
| `regularPrice`, `onSale` | Supplied regular amount and interpreted sale status |
| `promoText`, `promoType` | Offer wording and source offer type |
| `promoStart`, `promoEnd` | Promotion dates explicitly supplied by the source |
| `memberPrice`, `memberProgram` | Public membership price and program when supplied |
| `unitPrice`, `unitOfMeasure` | Source comparison amount and its unit basis |
| `inStock`, `stockLevel` | Reported availability and quantity where supplied |
| `rating`, `reviewCount`, `category` | Available catalogue context |
| `priceScope` | Selected store, online catalogue, warehouse or regional flyer context |
| `searchTerm` | Search that produced the observation, when known |
| `url`, `imageUrl`, `scrapedAt` | Source links and UTC observation time |

Missing source values stay null. A product number with a valid-looking checksum does not become a barcode. Retailer product IDs, supplier groups and original barcode strings remain separately available when the source provides them.

### Choose the right retailer scope

| Key | Coverage |
| --- | --- |
| `loblaws` | Selected-store PC Express prices, unit comparisons, PC Optimum and multi-buys |
| `nofrills` | No Frills selected-store PC Express observations |
| `sobeys` | Current regional priced flyer entries, conditions and validity |
| `voila` | Regional online catalogue, sales and public Scene+ offers |
| `canadian-tire` | Selected-store online prices, reported stock, sales and specifications |
| `home-depot-canada` | Selected-store prices, stock quantities, aisle, bay and promotions |
| `costco-canada` | Separate warehouse/online prices, public savings and available inventory |

Compare `priceScope`, size and quantity conditions before choosing an offer. Flyer bundle amounts, delivery-region prices and warehouse prices describe different observations.

### Start in three steps

1. Choose retailers and enter terms such as coffee, milk, drill or paint.
2. Supply Canadian postal codes or retailer-specific exact store IDs.
3. Set per-retailer and global limits, run, and export JSON, CSV or Excel. Read SUMMARY alongside the rows.

The prefill searches coffee across seven retailers, capped at ten each. Limits are upper bounds.

### Observed cloud results

On 15 November 2026 the built-schema prefill delivered **66 unique priced observations across all seven retailers**, 66 Product charges and zero source failures in a measured **47.44 seconds**. Sobeys supplied six coffee offers; each other retailer supplied ten products.

Two multi-input cloud jobs delivered **1,109 and 1,158 rows**. All **2,267** had numeric CAD prices; **225** also had dated promotions. These are observations from those runs, rather than a coverage guarantee.

A fresh source check matched Loblaws product `21393573_EA` at store `1000`: **CAD $24.99**. Its No Frills observation at store `7952` also matched CAD $24.99.

### Inputs

| Input | Use |
| --- | --- |
| `retailers` | Selected retailer keys; omit for the complete bundle |
| `searchTerms` | Array of ordinary search terms shared across the selected retailers |
| `categoryUrls` | Optional public category links routed by their hostname |
| `startUrls` | Optional public search, category, deals or product links |
| `productIds` | Exact source product identifiers; prefix them when several retailers are selected |
| `postalCodes` | Complete Canadian postal codes for supported store, delivery or flyer selection |
| `locations` | Family-compatible postal-code alias, used when `postalCodes` is empty or absent |
| `storeIds` | Exact retailer store or region IDs; prefix them for a multi-retailer job |
| `maxItemsPerRetailer` | Total unique product rows for each retailer across all its sources and stores |
| `maxItems` | Global product-row limit across the whole job |
| `maxItemsPerSearch` | Optional source-and-store cap, bounded by the per-retailer limit |
| `dealsOnly` | Keep public qualifying promotions and flyer offers |
| `includeDetails` | Include available descriptions or specifications at the same product fee |
| `includeUnpriced` | Include available unpriced metadata free; off by default |
| `proxyConfiguration` | Automatic proxy recovery or the buyer's explicit proxy selection |

Default caps are ten per retailer and seventy overall. The global cap is shared by concurrently returning retailers.

With several retailers, prefix IDs: `loblaws:1050` or `home-depot-canada:1001686659`. Plain IDs work with one retailer. URLs route by hostname. Exact store IDs override postal selection. Voila uses delivery-region UUIDs; Sobeys flyers use terms and postcodes, defaulting to M5V 2T6 when none is supplied.

### Example: compare a grocery basket

```json
{
  "retailers": ["loblaws", "nofrills", "sobeys", "voila", "costco-canada"],
  "searchTerms": ["coffee", "milk", "bread"],
  "postalCodes": ["M5V 2T6"],
  "maxItemsPerRetailer": 20,
  "maxItems": 100
}
```

Comparison sorts amounts; retain size, unit-price basis and priceScope when comparing packages.

### Example: repeat exact product checks

```json
{
  "retailers": ["loblaws", "canadian-tire", "home-depot-canada", "costco-canada"],
  "productIds": [
    "loblaws:20188873_EA",
    "canadian-tire:0543692P",
    "home-depot-canada:1001686659",
    "costco-canada:309240"
  ],
  "storeIds": [
    "loblaws:1050",
    "canadian-tire:600",
    "home-depot-canada:7080",
    "costco-canada:1316"
  ],
  "maxItemsPerRetailer": 1,
  "maxItems": 4
}
```

Clear prefilled terms for IDs-only jobs. Identifiers are retailer-specific.

### Example: hardware categories

```json
{
  "retailers": ["home-depot-canada"],
  "categoryUrls": [
    "https://www.homedepot.ca/en/home/categories/tools/power-tools/drills.html"
  ],
  "storeIds": ["7001"],
  "maxItemsPerRetailer": 100,
  "maxItems": 100,
  "includeDetails": true
}
```

Optional details add source requests without a separate service fee.

### Understand offers and quantities

Current price, regular price and conditional offers remain separate. Loblaws multi-buys retain minimum quantity and price basis. PC Optimum and Scene+ points are not converted into invented cash reductions.

Sobeys flyer rows retain `priceText`, `priceBasis`, `advertisedQuantity`, conditions, validity and geography. A two-item amount stays a bundle total. Selected-variety advertisements can cover several packages.

Costco keeps `onlinePrice` separately from the selected warehouse `price`; one never substitutes for the other. Unset zero-price sentinels become null. Canadian Tire preserves supplier SKU groups separately and flags source price ranges.

### Output and comparisons

The dataset deduplicates retailer/product/store observations; flyers use regional offer IDs.

Overview and deals views expose price, promotion, membership, unit-price and store columns. Separate **COMPARISON** and **deals** datasets provide physically sorted comparison rows and filtered offer rows. Comparison groups by search term, lowest numeric CAD amount first; null prices follow numeric prices. Copies have no second Product charge.

Large JSON exports use numbered parts. KV outputs are `SUMMARY` (counts, coverage, charges and failures by retailer), `STORES` (verified geography), `DEALS` (offers) and `COMPARISON` (compact sorted JSON).

Free NOTE rows explain invalid inputs and unavailable sources. Empty searches are no matches. Check SUMMARY.freeFailures and retailer statuses when validating scheduled jobs.

### Price and spending control

One Product charge applies only after an eligible unique row is saved. Numeric prices and dated public promotions qualify. Duplicate observations, failed requests, empty search results and unpriced metadata have no Product charge. Setup is US$0.005 per GB with a minimum of one unit; the default run uses 1 GB. The setup charge applies when a run starts, including runs with no matching products.

| Eligible rows | Base product fee | With default setup |
| --- | --- | --- |
| 10 | US$0.04 | US$0.045 |
| 70 | US$0.28 | US$0.285 |
| 100 | US$0.40 | US$0.405 |
| 1,000 | US$4.00 | US$4.005 |

Bronze product pricing is US$0.0038, Silver US$0.0036, and Gold, Platinum and Diamond US$0.0032. Setup is unchanged by these product discounts. Set Apify's maximum charge to bound the run. When the remaining allowance cannot cover another eligible row, delivery stops cleanly and the summary records the spending limit.

### Monitor prices every day

Save retailer keys, exact products, stores and caps in an Apify task, then add it to a Schedule. Retain datasets and compare retailer key, product ID, source store/region and observation date. Keep flyer identity for flyer rows.

A 100-row check costs US$0.40 plus default setup before discounts. Multiple stores produce separate observations. Preserve sizes, quantity conditions, dates and membership eligibility when comparing history.

### API use

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('moggedhq/canada-retail-prices-scraper').call({
  retailers: ['loblaws', 'voila', 'costco-canada'],
  searchTerms: ['coffee'],
  postalCodes: ['M5V 2T6'],
  maxItemsPerRetailer: 10,
  maxItems: 30
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const summary = await client.keyValueStore(run.defaultKeyValueStoreId)
  .getRecord('SUMMARY');
```

For larger jobs, fetch datasets after asynchronous completion. Webhooks, Make, Zapier and n8n can use the same storage IDs.

### Use with AI agents (MCP)

Connect through [Apify MCP](https://mcp.apify.com). Have the agent inspect the schema and retain scope and quantities. Example:

Compare coffee prices at Loblaws, No Frills, Voila and Costco Canada near M5V 2T6. Return ten products per retailer with current price, regular price, unit-price basis, public offers and stock. Read the run summary and identify any missing retailer.

### Reliability

Requests are paced and serial within each source reader; independent retailers use separate anonymous sessions. Automatic routing tries default datacenter before Canadian residential recovery. Explicit proxy settings remain under buyer control.

Durable saved rows, stable charge keys and authoritative charge receipts support restart recovery without duplicate delivery or billing. New scheduled runs read fresh prices.

### Limits

- Public advertised prices and reported inventory do not verify a physical shelf label or checkout total. Taxes, deposits, shipping, installation and final weighted quantities can affect the shopper's amount.
- Sobeys coverage is current regional flyers. Physical Sobeys store shelf prices, a full Sobeys catalogue and exact-store stock are outside that mode. Voila uses regional online prices; an omitted postcode can select an empty generic region.
- Canadian Tire postal selection uses the postal area's centroid. PC Express uses verified full-postcode coordinates and nearest listed stores within the province. Public geocoders can have gaps; exact store IDs make repeat monitoring more deterministic.
- Costco keyword discovery matches names in the public product sitemap rather than native relevance-ranked search. Dynamic Canadian category grids are not a full-catalogue route; known item numbers and explicit product links are useful alternatives.
- Promotion dates, stock quantities, barcodes, member prices, ingredients and specifications depend on explicit source fields and can be null. Missing dates are not estimated from badges.
- Home Depot Canada can expand a keyword query to suggestions. Expanded results without a query-word match in the public identity fields are excluded; retained expanded results are flagged.
- Package sizes, weighted products, conditional quantities and source scopes require review before treating two rows as a like-for-like comparison. This Actor does not perform a universal product match across retailers.
- Logged-in prices, personalized loyalty offers, accounts, order creation, CAPTCHA solving and historical backfill are outside coverage. Sources can refuse a request; remaining gaps appear as free notes and summary failures.

### FAQ

**Only one retailer?** Select one key and use its plain product/store IDs.

**Which postcode wins?** Nonempty `postalCodes` wins over `locations`; exact store IDs override postal selection for their retailer.

**Extra fee for details?** Available details are included in Product pricing, with additional source requests.

**Are the cheapest rows equivalent?** Compare package size, conditions, unit basis and price scope first.

**Fewer rows than requested?** Limits are maximums. Assortment, offers, filters and source availability affect delivery.

**Price history?** Retain successive datasets for a stable basket and store list.

# Actor input Schema

## `retailers` (type: `array`):

Choose loblaws, nofrills, sobeys, voila, canadian-tire, home-depot-canada or costco-canada. Empty/default selection uses all. Sobeys is current regional flyers; Voila is regional online.

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

Search each selected retailer, such as coffee, milk, drill or paint. Costco matches product names in its public sitemap. Sobeys matches current flyer names. Clear this for IDs/URLs only.

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

Public category links, routed to their retailer by hostname. Costco reads explicit product links; dynamic category grids can be unavailable.

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

Public HTTPS links from supported retailers. Sobeys flyers use search terms and postal codes.

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

One retailer: plain source IDs. Multiple retailers: prefix with key, such as loblaws:20188873_EA or home-depot-canada:1001686659. IDs are not barcodes.

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

Complete postal codes. Used for each retailer unless a scoped store ID overrides it. Voila resolves a delivery region; Sobeys resolves a flyer region; Canadian Tire uses postal-area centroids. Takes precedence over locations.

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

Used only when postalCodes is empty or absent. No canonical default is injected.

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

One retailer: exact ID. Multiple retailers: prefix, such as loblaws:1050, canadian-tire:600. Voila requires a delivery-region UUID. Sobeys flyers do not accept physical store IDs.

## `maxItemsPerRetailer` (type: `integer`):

Total unique product rows for each retailer, across its inputs and stores.

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

Global limit across all retailers; whichever retailers return first consume it. Use enough room for each retailer.

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

Optional limit per source and store, bounded by maxItemsPerRetailer.

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

Only public sales, priced flyer offers and conditional promotions.

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

Add available specifications or descriptions; same product fee.

## `includeUnpriced` (type: `boolean`):

Include unpriced metadata rows free. Off by default. Price comparisons should use numeric price rows.

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

Automatic default datacenter first, Canadian residential fallback. Explicit disable, groups, country or custom proxies are preserved.

## Actor input object example

```json
{
  "retailers": [
    "loblaws",
    "nofrills",
    "sobeys",
    "voila",
    "canadian-tire",
    "home-depot-canada",
    "costco-canada"
  ],
  "searchTerms": [
    "coffee"
  ],
  "postalCodes": [
    "M5V 2T6"
  ],
  "maxItemsPerRetailer": 10,
  "maxItems": 70,
  "dealsOnly": false,
  "includeDetails": false,
  "includeUnpriced": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `summary` (type: `string`):

No description

## `stores` (type: `string`):

No description

## `deals` (type: `string`):

No description

## `comparison` (type: `string`):

No description

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

No description

## `dealsDataset` (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 = {
    "retailers": [
        "loblaws",
        "nofrills",
        "sobeys",
        "voila",
        "canadian-tire",
        "home-depot-canada",
        "costco-canada"
    ],
    "searchTerms": [
        "coffee"
    ],
    "postalCodes": [
        "M5V 2T6"
    ],
    "maxItemsPerRetailer": 10,
    "maxItems": 70
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/canada-retail-prices-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 = {
    "retailers": [
        "loblaws",
        "nofrills",
        "sobeys",
        "voila",
        "canadian-tire",
        "home-depot-canada",
        "costco-canada",
    ],
    "searchTerms": ["coffee"],
    "postalCodes": ["M5V 2T6"],
    "maxItemsPerRetailer": 10,
    "maxItems": 70,
}

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/canada-retail-prices-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 '{
  "retailers": [
    "loblaws",
    "nofrills",
    "sobeys",
    "voila",
    "canadian-tire",
    "home-depot-canada",
    "costco-canada"
  ],
  "searchTerms": [
    "coffee"
  ],
  "postalCodes": [
    "M5V 2T6"
  ],
  "maxItemsPerRetailer": 10,
  "maxItems": 70
}' |
apify call moggedhq/canada-retail-prices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/canada-retail-prices-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/c1SNIStnveB1XzzvL/builds/nX8zMHNeOo8zLTHq3/openapi.json
