# Canadian Tire Product Price & Stock Extractor (`vexaloom-labs/canadian-tire-product-price-and-stock-extractor`) Actor

Extract CanadianTire.ca products by keyword search, category browse, or exact product code, including prices, sale discounts, ratings, store-level stock and specifications.

- **URL**: https://apify.com/vexaloom-labs/canadian-tire-product-price-and-stock-extractor.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.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/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

## Canadian Tire Product Price & Stock Extractor

Extract product and review data from [CanadianTire.ca](https://www.canadiantire.ca) -- one of Canada's largest retailers, covering tools, automotive, sports, home and outdoor living. Get titles, prices, sale discounts, ratings, images, descriptions, full specifications, variants, store-level stock and customer reviews.

### What can this actor do?

- **Search by keyword** -- one or many search terms in a single run.
- **Browse categories** -- paste category codes or full category URLs.
- **Get exact products** -- paste product codes or product URLs.
- **Paste any product, category or search URL** -- the actor detects the type automatically.
- **Fetch customer reviews** -- review text, title, stars, author, date, photos, verified-purchase flags, pros and cons.
- **Add full product details** -- long description, complete specifications, breadcrumbs, videos and manual links.
- **Add variants** -- size, colour and SKU variants with option values and part numbers.
- **Compare stores** -- one row per product per store, with that store's price, shelf stock and pickup/ship estimates.
- **Filter and sort** -- price, rating, sale, stock, brand, deal type, availability, featured badge, and seven sort orders.
- **Use English or French** product data.

No login, cookies, account or proxy setup is required.

### Modes

| Mode | What it does | Inputs to use |
|---|---|---|
| `search` | Keyword search across the catalogue | `searchQueries`, filters, `sortBy` |
| `category` | Browse one or many categories | `categoryCodes` (codes or URLs) |
| `byProductCodes` | Fetch exact products | `productCodes` (codes or URLs) |
| `byUrls` | Paste product, category and search-results URLs together | `startUrls` |
| `reviews` | Fetch reviews for products | `productCodes` and/or product URLs in `startUrls` |

### Output

#### Product records (`recordType: "product"`)

| Field | Description |
|---|---|
| `productCode` | Canadian Tire product code (e.g. `0574127P`) |
| `title` | Product name |
| `brand` | Brand name |
| `productUrl` | Product page URL |
| `images` | Product image URLs |
| `price` | Current price in CAD |
| `priceIsStartingFrom` | `true` when `price` is the lowest price across variants |
| `priceRangeMax` | Highest variant price when the product has a price range |
| `originalPrice` / `discountPercent` | Pre-discount price and percentage off |
| `currency` | `CAD` |
| `isOnSale` | Whether the product is on sale/clearance |
| `rating` / `ratingsCount` | Average rating (0-5) and number of ratings |
| `badges` | Merchandising badges (e.g. `EXCLUSIVE`, `TOPRATED`, `CLEARANCE`) |
| `partNumber` / `skuId` | Manufacturer part number and Canadian Tire SKU |
| `stockQuantity` | Units at the reference store |
| `onlineStockQuantity` | Units available for online fulfilment |
| `storeShelfLocation` | Shelf/aisle location when the store exposes it |
| `shipDaysMin` / `shipDaysMax` | Estimated delivery window in days |
| `sellable` / `orderable` / `isUrgentLowStock` | Fulfilment flags |
| `warrantyMessage` | Warranty text when provided |
| `featureBullets` | Feature and benefit bullets |
| `specifications` | Full name/value specification pairs |
| `description` / `shortDescription` | Long and short product descriptions |
| `breadcrumbs` | Category path with names, URLs and category codes |
| `categoryName` / `categoryCode` | Deepest category |
| `isMultiSku` / `variantCount` / `variants` | Variant summary and per-SKU metadata |
| `options` | Variant option groups and values |
| `videos` / `productManualLink` | Product videos and manual/document links |
| `productStatus` / `launchDate` / `vendorName` / `vendorNumber` | Detail metadata |
| `storeId` / `storeName` / `storeAddress` / `storeCity` / `storeProvince` / `storePostalCode` | Reference store |
| `source` / `sourceQuery` / `sourceCategory` / `language` | Where the record came from |
| `recordType` | `product` |
| `scrapedAt` | UTC scrape timestamp |

Only fields Canadian Tire actually provides are included -- no blank or placeholder values.

#### Review records (`recordType: "review"`)

| Field | Description |
|---|---|
| `reviewId` | Review identifier |
| `productCode` / `productName` | Reviewed product |
| `title` / `reviewText` | Review headline and body |
| `rating` | Star rating |
| `author` | Public reviewer nickname |
| `submissionTime` | Review date/time (UTC) |
| `isVerifiedPurchaser` / `isRecommended` / `isSyndicated` | Review flags |
| `contentLocale` | Review language |
| `photos` / `videos` | Review media URLs |
| `pros` / `cons` | Review pros and cons |
| `helpfulCount` | Positive helpfulness votes |
| `productUrl` / `productBrand` / `productRating` / `productRatingsCount` / `productPrice` / `currency` / `productImage` | Product context |
| `source` | `reviews` |
| `scrapedAt` | UTC scrape timestamp |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search`, `category`, `byProductCodes`, `byUrls`, `reviews` |
| `searchQueries` | array | `["hammer"]` | Keywords to search (mode=search) |
| `categoryCodes` | array | – | Category codes or full category URLs (mode=category) |
| `productCodes` | array | – | Product codes or product URLs (mode=byProductCodes / reviews) |
| `startUrls` | array | – | Product, category or search-results URLs (mode=byUrls / reviews) |
| `sortBy` | string | `relevance` | `relevance`, `priceAsc`, `priceDesc`, `newest`, `ratingDesc`, `bestseller`, `topDeals` |
| `minPrice` / `maxPrice` | number | – | Price range in CAD |
| `minRating` | number | – | Minimum rating (0-5) |
| `onSaleOnly` | boolean | `false` | Only discounted products |
| `inStockOnly` | boolean | `false` | Only products with stock |
| `brand` | string | – | Brand name contains this text |
| `brands` | array | – | Exact brand names, queried server-side one by one |
| `dealType` | string | – | `clearance`, `sale`, `limitedTimeOffer`, `specialBuy` |
| `availabilityType` | string | – | `inStoreOnly`, `onlineOnly`, `inStockAtMyStore` |
| `featuredType` | string | – | `exclusive`, `topRated`, `bestSeller`, `testedForLife`, `newArrivals` |
| `storeIds` | array | `["144"]` | Reference stores; each gets its own row |
| `language` | string | `en` | `en` or `fr` |
| `includeDetails` | boolean | `false` | Add description, specifications, breadcrumbs, videos, manual |
| `includeVariants` | boolean | `false` | Add variant/SKU metadata (also enables details) |
| `maxItems` | integer | `48` | Total records to return (max 50,000) |
| `maxPages` | integer | `20` | Result pages per query/store (120 products/page, max 1,000) |
| `maxItemsPerQuery` | integer | – | Optional cap per keyword/category/URL/store |
| `maxReviews` | integer | `100` | Total review records (mode=reviews) |
| `maxReviewsPerProduct` | integer | – | Optional review cap per product |
| `oldestReviewDate` | string | – | Skip reviews older than `YYYY-MM-DD` |
| `reviewSort` | string | `newest` | `newest`, `oldest`, `highestRated`, `lowestRated`, `mostHelpful` |

The legacy keys `searchQuery`, `categoryCode` and `storeId` from older saved tasks are still accepted and mapped automatically.

#### Finding a category, store or product code

- **Category:** open a category page such as `.../drills-DC0002027.html` and use `DC0002027`, or paste the full URL.
- **Store:** open the Store Locator, pick a store and use the number at the end of its page URL (e.g. `...-144.html` → `144`).
- **Product:** open a product page; the code is at the end of the URL (e.g. `...-0574127p.html` → `0574127P`), or paste the full URL.

### Examples

#### Search several terms and compare two stores

```json
{
  "mode": "search",
  "searchQueries": ["cordless drill", "hammer"],
  "storeIds": ["144", "600"],
  "maxItemsPerQuery": 24,
  "maxItems": 48
}
```

#### Paste product, category and search URLs together

```json
{
  "mode": "byUrls",
  "startUrls": [
    "https://www.canadiantire.ca/en/pdp/maximum-16-oz-magnetic-claw-hammer-0574166p.html",
    "https://www.canadiantire.ca/en/cat/tools-hardware/power-tools/drills-accessories/drills-DC0002027.html",
    "https://www.canadiantire.ca/en/search-results.html?q=hammer&sort=price+asc"
  ],
  "includeDetails": true,
  "includeVariants": true,
  "maxItems": 50
}
```

#### Fetch reviews

```json
{
  "mode": "reviews",
  "productCodes": ["0574127P", "4994567P"],
  "maxReviews": 200,
  "maxReviewsPerProduct": 50,
  "reviewSort": "newest"
}
```

### Use cases

- **Price monitoring** -- track prices, sale prices and discounts by product or category.
- **Regional pricing and stock** -- compare the same products across several stores.
- **Market and assortment research** -- analyse brands, ratings and pricing in a category.
- **Deal hunting** -- filter to sale/clearance products and top deals.
- **Catalogue enrichment** -- pull descriptions, specifications, variants and images for known products.
- **Voice of customer** -- export reviews for sentiment, quality and product-feedback analysis.

### FAQ

**Does this actor require login, cookies or a proxy?**
No. It reads Canadian Tire's public product, category, store and review endpoints without an account or cookie. Proxy handling is automatic when needed.

**What currency are prices in?**
Canadian dollars (CAD).

**Why do some products lack a rating, discount or warranty field?**
Canadian Tire only returns those values for products that have them. Missing values are omitted rather than filled with placeholders.

**Why do some products lack variants?**
`variants` is populated for multi-SKU products. Single-SKU products have no variant list.

**Why is a per-variant price not included?**
Canadian Tire's variant-level price/availability endpoint is protected from direct public requests. The actor ships the family price and full variant metadata (SKU, options, part number, variant URL). See Limitations.

**Why is the price sort not perfectly monotonic?**
Canadian Tire's own price sort blends product-family grouping and relevance across a large result set. Individual price filters are exact; the source's global ordering may not be strictly monotonic.

**How many products can I get?**
Up to 50,000 records per run, 1,000 pages per input (120 products/page). The live catalogue has tens of thousands of products per large category and paginates normally.

**Does `maxItems` apply per store or in total?**
`maxItems` is the total across the run. When using several stores or queries, set `maxItemsPerQuery` so each input/store gets its own share.

### Limitations

- **Per-SKU price and stock:** Canadian Tire's variant-level PriceAvailability endpoint rejects direct public requests. Product-level price, store-level stock and full variant metadata are provided; per-variant price/stock is not.
- **Postal-code nearest store:** the public store search needs latitude/longitude (the site geocodes postal codes separately). Use `storeIds` with the store number from the Store Locator.
- **Sport Chek, Mark's and Party City:** these are separate banners/sites and are not covered by this actor; it is Canadian Tire only.
- **Price sorting:** Canadian Tire's own price sort is not guaranteed to be globally monotonic across a very large result set; filters are exact.
- **Cross-run price tracking:** this actor returns current prices per run; it does not keep price history between runs.
- **Product page HTML:** Canadian Tire challenges plain non-browser requests to product pages. Product URLs in the output resolve normally in a browser; images are directly accessible.

# Actor input Schema

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

search = keyword search. category = browse categories. byProductCodes = exact products by code. byUrls = paste product, category or search URLs. reviews = customer reviews for products.

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

One or more keywords to search for, e.g. 'hammer', 'garden hose', 'dewalt drill'. Each query is run separately.

## `categoryCodes` (type: `array`):

Canadian Tire category codes or full category URLs. A code looks like 'DC0002027' (Drills) at the end of a category page URL.

## `productCodes` (type: `array`):

Exact Canadian Tire product codes (e.g. '0574127P') or full product URLs. In reviews mode these select the products whose reviews are fetched.

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

Paste Canadian Tire product, category or search-results URLs. The actor detects each URL type automatically. In reviews mode, product URLs are used.

## `sortBy` (type: `string`):

How Canadian Tire orders results before filters are applied.

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

Only include products priced at or above this amount, in Canadian dollars (CAD).

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

Only include products priced at or below this amount, in Canadian dollars (CAD).

## `minRating` (type: `number`):

Only include products with a customer rating at or above this value (0-5). Products with no rating data are kept.

## `onSaleOnly` (type: `boolean`):

Only include products currently marked on sale or clearance.

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

Only include products with available stock.

## `brand` (type: `string`):

Only include products whose brand name contains this text (case-insensitive), e.g. 'mastercraft'.

## `brands` (type: `array`):

Only include these exact brand names, e.g. \['DEWALT', 'Mastercraft']. Each brand is queried separately with Canadian Tire's own brand filter.

## `dealType` (type: `string`):

Only include products matching this deal type, applied server-side by Canadian Tire's search API.

## `availabilityType` (type: `string`):

Only include products matching this availability category, applied server-side by Canadian Tire's search API.

## `featuredType` (type: `string`):

Only include products carrying this merchandising badge, applied server-side by Canadian Tire's search API.

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

Canadian Tire store IDs, e.g. \['144', '600']. Each store gets its own price and stock rows. Find IDs via the Store Locator; the number is at the end of a store page URL.

## `language` (type: `string`):

English or French product data, titles, specifications and breadcrumbs.

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

Fetch each product's detail page data: description, full specifications, breadcrumbs, videos and manual links. Adds one request per product.

## `includeVariants` (type: `boolean`):

Add size/colour/SKU variants with option values and part numbers (when the product has variants). Also turns on full details.

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

Maximum number of records to return in total (products or reviews).

## `maxPages` (type: `integer`):

Maximum result pages (120 products/page) to walk per query, category or search URL.

## `maxItemsPerQuery` (type: `integer`):

Optional cap per keyword, category or URL when running several inputs. Leave blank for no per-input cap.

## `maxReviews` (type: `integer`):

Maximum number of review records to return.

## `maxReviewsPerProduct` (type: `integer`):

Optional cap on reviews per product when several products are supplied. Leave blank for no per-product cap.

## `oldestReviewDate` (type: `string`):

Optional cut-off date in YYYY-MM-DD format. Older reviews are skipped.

## `reviewSort` (type: `string`):

How reviews are ordered.

## Actor input object example

```json
{
  "mode": "search",
  "searchQueries": [
    "hammer"
  ],
  "categoryCodes": [
    "DC0002027"
  ],
  "productCodes": [
    "0574127P"
  ],
  "startUrls": [],
  "sortBy": "relevance",
  "onSaleOnly": false,
  "inStockOnly": false,
  "brands": [],
  "dealType": "",
  "availabilityType": "",
  "featuredType": "",
  "storeIds": [
    "144"
  ],
  "language": "en",
  "includeDetails": false,
  "includeVariants": false,
  "maxItems": 3,
  "maxPages": 1,
  "maxReviews": 20,
  "reviewSort": "newest"
}
```

# Actor output Schema

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

Dataset containing all scraped Canadian Tire products.

## `reviews` (type: `string`):

The same dataset, filtered by recordType=review when mode=reviews (review text, rating, author and date).

# 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": [
        "hammer"
    ],
    "categoryCodes": [
        "DC0002027"
    ],
    "productCodes": [
        "0574127P"
    ],
    "startUrls": [],
    "sortBy": "relevance",
    "onSaleOnly": false,
    "inStockOnly": false,
    "brands": [],
    "dealType": "",
    "availabilityType": "",
    "featuredType": "",
    "storeIds": [
        "144"
    ],
    "language": "en",
    "includeDetails": false,
    "includeVariants": false,
    "maxItems": 3,
    "maxPages": 1,
    "maxReviews": 20,
    "reviewSort": "newest"
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/canadian-tire-product-price-and-stock-extractor").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": ["hammer"],
    "categoryCodes": ["DC0002027"],
    "productCodes": ["0574127P"],
    "startUrls": [],
    "sortBy": "relevance",
    "onSaleOnly": False,
    "inStockOnly": False,
    "brands": [],
    "dealType": "",
    "availabilityType": "",
    "featuredType": "",
    "storeIds": ["144"],
    "language": "en",
    "includeDetails": False,
    "includeVariants": False,
    "maxItems": 3,
    "maxPages": 1,
    "maxReviews": 20,
    "reviewSort": "newest",
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/canadian-tire-product-price-and-stock-extractor").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": [
    "hammer"
  ],
  "categoryCodes": [
    "DC0002027"
  ],
  "productCodes": [
    "0574127P"
  ],
  "startUrls": [],
  "sortBy": "relevance",
  "onSaleOnly": false,
  "inStockOnly": false,
  "brands": [],
  "dealType": "",
  "availabilityType": "",
  "featuredType": "",
  "storeIds": [
    "144"
  ],
  "language": "en",
  "includeDetails": false,
  "includeVariants": false,
  "maxItems": 3,
  "maxPages": 1,
  "maxReviews": 20,
  "reviewSort": "newest"
}' |
apify call vexaloom-labs/canadian-tire-product-price-and-stock-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/canadian-tire-product-price-and-stock-extractor"
        }
    }
}
```

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/KOBoQdHhmizfIMK0d/builds/uVANImjPIpmB488jo/openapi.json
