# Home Depot Canada Scraper · Nearby store stock · $1.5/1K (`mlg14/home-scraper`) Actor

Get Home Depot Canada product prices, online stock and nearby store availability for price monitoring, catalog research and competitor tracking. Look up by product ID, keyword or category URL with a Canadian postal code. $1.5/1K results.

- **URL**: https://apify.com/mlg14/home-scraper.md
- **Developed by:** [MLG Data](https://apify.com/mlg14) (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

$1.50 / 1,000 results

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

## Home Depot Canada Scraper

Scrape Home Depot Canada product details, Canadian prices, online stock, and nearby store information from public pages and endpoints. Export Home Depot Canada product data to CSV or JSON for catalog research, price checks, and location-based planning; the actor is an API alternative for collecting many product and store combinations in one run.

Each dataset row describes one product and one selected store. The `priceScope` field is essential: `store` means the price and stock came from a store-specific response, while `online` means the price came from the online listing and store stock was unavailable. A nearby store's address can still appear beside an online price; that combination does **not** imply that the store offers the displayed price or has the item in stock.

### What data can you extract from Home Depot Canada?

| Field | Description | Example |
| --- | --- | --- |
| `productId` | Canadian product identifier from the product URL | `1001770010` |
| `name` | Displayed product title | `20V compact hammer drill kit` |
| `description` | Full detail-page description when fetched | `Compact drill kit with battery` |
| `brand` | Brand or manufacturer shown on the listing | `Example brand` |
| `modelNumber` | Listed manufacturer model number | `Example number` |
| `url` | Direct product page URL | `https://www.homedepot.ca/product/.../1001770010` |
| `imageUrl` | Primary product image URL | `https://images.homedepot.ca/...jpg` |
| `currency` | Currency for the price fields | `CAD` |
| `priceCentsPerUnit` | Regular unit price in cents, or current price without a discount | `14800` |
| `salePriceCentsPerUnit` | Sale unit price in cents if a previous price is shown | `null` |
| `bulkQuantityRequired` | Bulk discount threshold if supplied | `null` |
| `bulkPriceCentsPerUnit` | Bulk unit price in cents if supplied | `null` |
| `unitOfMeasure` | Unit attached to the price | `each` |
| `priceScope` | Whether the price is store-specific or online | `online` |
| `quantityAvailable` | Quantity at the selected store, when returned | `18` |
| `storeStockStatus` | Store-specific availability status | `inStock` |
| `onlineQuantityAvailable` | Online stock quantity when returned | `168` |
| `onlineStockStatus` | Online availability status | `inStock` |
| `availableForPickup` | Whether pickup can be added to the cart | `true` |
| `availableForDelivery` | Whether delivery can be added to the cart | `true` |
| `shippingMessage` | Delivery status supplied by the site | `free_shipping` |
| `averageRating` | Average customer rating | `4.4286` |
| `reviewCount` | Count of ratings or reviews | `56` |
| `storeId` | Identifier of the nearby store or online store | `7080` |
| `storeName` | Store display name | `GERRARD SQUARE` |
| `storeAddress` | Store street address | `1000 Gerrard Street East` |
| `storeCity` | Store city | `Toronto` |
| `storeProvince` | Province abbreviation | `ON` |
| `storePostalCode` | Store postal code | `M4M 3G6` |
| `storePhone` | Store contact number | `(416) 462-6270` |
| `storeDistance` | Distance displayed for the searched location | `5.0 km` |
| `searchedPostalCode` | Canadian postal code from the input | `M5V 2T6` |
| `storeUrl` | Store detail page URL | `https://www.homedepot.ca/store/7080...` |
| `storeHoursMon` | Monday opening and closing hours | `6:00 AM–9:00 PM` |
| `storeHoursTue` | Tuesday opening and closing hours | `6:00 AM–9:00 PM` |
| `storeHoursWed` | Wednesday opening and closing hours | `6:00 AM–9:00 PM` |
| `storeHoursThu` | Thursday opening and closing hours | `6:00 AM–9:00 PM` |
| `storeHoursFri` | Friday opening and closing hours | `6:00 AM–9:00 PM` |
| `storeHoursSat` | Saturday opening and closing hours | `7:00 AM–8:00 PM` |
| `storeHoursSun` | Sunday opening and closing hours | `8:00 AM–8:00 PM` |

Prices are integer cents so a value of `14800` represents CAD 148.00. When a former price exists, `priceCentsPerUnit` holds that regular price and `salePriceCentsPerUnit` holds the current discounted price. Missing fields are exported as `null` rather than guessed. The two bulk fields are reserved for a bulk price if a source response contains one; the currently used localized response did not expose a reliable bulk tier in testing.

### How to scrape Home Depot Canada

1. Choose a Canadian postal code such as `M5V 2T6` and decide whether you need exact products, a search term, or a category page.
2. For an exact product, copy the numeric ID at the end of its Canadian product URL into `productIds`. For a product range, add a public category URL to `categoryUrls`; `searchTerms` can also request matching products.
3. Set `maxProducts`, `maxStores`, and `maxItems` to control the size of the run. Begin with one category, one nearby store, and 40 rows when checking a new input.
4. Run the actor and download the dataset as JSON or CSV. Inspect `priceScope` and the stock fields before treating any row as a store-level availability result.

An exact product ID can be combined with category URLs. Duplicate product IDs are merged before location checks. A product may therefore appear once for each selected store rather than once for every route through which it was found.

### Input

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `productIds` | string array | Prefilled example | Exact product identifiers from Canadian product URLs. |
| `searchTerms` | string array | `[]` | Search phrases for product listings. Search availability can vary when the site restricts its search endpoint. |
| `categoryUrls` | string array | `[]` | Public Canadian category pages. A category page commonly embeds up to 40 products. |
| `postalCode` | string | Prefilled example | Canadian postal code used to find nearby stores; required. |
| `maxProducts` | integer | `40` | Maximum products collected from search terms. |
| `maxStores` | integer | `40` | Maximum nearby stores requested, subject to what the store service returns. |
| `maxItems` | integer | `100` | Hard cap on product/store dataset rows. |
| `proxyConfiguration` | object | Platform proxy | Network settings for site requests. |

A category URL that carries a `searchterm` parameter is resolved through Home Depot Canada's product search API with that term. For other category pages the actor reads the page and, if it is bot-protected, falls back to a product search for the category name and logs a warning; the rows then match that search rather than the exact category listing.

At least one of `productIds`, `searchTerms`, or `categoryUrls` must be nonempty. Use a six-character Canadian postal code with or without its middle space. The actor normalizes its case. An invalid postal code or an input without a product source fails early with a clear error instead of exporting an unrelated catalog.

A realistic input for a first run is:

```json
{
  "productIds": ["1001770010"],
  "categoryUrls": [
    "https://www.homedepot.ca/en/home/categories/tools/power-tools/drills.html?searchterm=drill"
  ],
  "postalCode": "M5V 2T6",
  "maxStores": 1,
  "maxItems": 40
}
```

This input is the verified example used for the dataset below. Its 40 rows cover products in one category and the nearest returned store. A single exact product ID with `maxStores: 1` can produce only one row; increase the store count or include a category to obtain more rows.

### Output example

The following is a shortened item from a successful 40-row run. Omitted columns are present in the full dataset. The `online` scope and empty store quantity are part of the actual result; the online quantity is separate.

```json
{
  "productId": "1001770010",
  "name": "20V MAX ATOMIC Lithium-Ion Compact 1/2-inch Hammer Drill Kit with (1) 2.0Ah Battery, Charger and Bag",
  "url": "https://www.homedepot.ca/product/dewalt-20v-max-atomic-lithium-ion-compact-1-2-inch-hammer-drill-kit-with-1-2-0ah-battery-charger-and-bag/1001770010",
  "currency": "CAD",
  "priceCentsPerUnit": 14800,
  "salePriceCentsPerUnit": null,
  "priceScope": "online",
  "quantityAvailable": null,
  "onlineQuantityAvailable": 168,
  "storeId": "7080",
  "storeName": "GERRARD SQUARE",
  "storeCity": "Toronto",
  "storeProvince": "ON",
  "storePostalCode": "M4M 3G6",
  "storeDistance": "5.0 km",
  "searchedPostalCode": "M5V 2T6"
}
```

In this run, the site returned nearby store identity and hours but rejected the store-localized inventory request. The row retains the online price and explicitly leaves `quantityAvailable` empty. `onlineQuantityAvailable` is not a substitute for stock at the displayed store. For purchasing or pickup decisions, check the current store page or rerun when store localization is available.

### Use cases

- Catalog teams can collect identifiers, links, images, displayed prices, and rating counts for a defined Canadian product category.
- Contractors can start from a list of exact product IDs and compare which nearby stores the site identifies for their postal code, then confirm pickup stock on the store page.
- Pricing analysts can monitor current online listings and separate them from confirmed store-localized prices using `priceScope`.
- Inventory planners can combine product IDs with nearby store details while preserving a blank store quantity whenever local stock was not returned.
- Retail operations teams can maintain a table of public store addresses, hours, phone numbers, and distances alongside relevant products.
- Researchers can export repeatable snapshots of public category results, ratings, and stock statuses for a specified area.

These workflows work best when the source category and row cap are chosen deliberately. A broad keyword can include products outside the intended category, while a category URL provides a clearer product set. A product/store row is the billing unit even when the same product appears for multiple stores.

### How much does it cost to scrape Home Depot Canada?

The configured result price is **$4.00 per 1,000 dataset rows**, or $0.004 per row. The price is based on emitted rows, not the number of product IDs, stores checked, or source requests. A 40-row run costs $0.16 in result charges; 500 rows cost $2.00; 1,000 rows cost $4.00. A product repeated across 20 stores counts as 20 rows. Platform usage is included in the configured result price; set `maxItems` to the number of rows you actually need.

The verified 40-row run finished successfully. Its result count is evidence of the configured cap and source data for that input, not a promise that another category or postal code will return the same number. A site block can stop a run before its requested cap, and a small product or store set can naturally yield fewer rows.

### Tips for best results

Start with an exact product ID if the task is a product lookup. Use category URLs when you need a set of products and want the same visible category the site displays to shoppers. Search terms are useful for discovery but may redirect to a category and can be more sensitive to site restrictions. Keep `maxStores` small for first runs because each additional store may require a separate price and inventory lookup. The actor batches product IDs within each store request to reduce request count.

Always filter the exported rows by `priceScope` before comparing store prices. When it says `online`, compare the price only as an online listing. A nonempty `quantityAvailable` and `storeStockStatus` indicate that a localized response was available. `onlineQuantityAvailable` belongs to the online catalog even when the row also contains nearby store contact details. Store hours are displayed as supplied by the site and can change on holidays; open the store page for a time-sensitive visit.

If you need more category products, run several narrower categories rather than asking a broad query to reach deep results. Product IDs are deduplicated across supplied sources, and `maxItems` stops output at the row cap. The actor does not invent missing prices or availability, and it does not treat online stock as store stock.

### Limits

The site can respond with HTTP 403 to its internal product, search, store, or localized availability endpoints. The actor retries blocked requests and can use product or category page data when an endpoint is unavailable. Store-specific price and stock have no equivalent in the page data examined; those fields remain empty if localization is blocked. The verified 40-row run used online pricing for every row because that endpoint was blocked. Use `priceScope` to determine which kind of price each row contains.

A category page exposes a first listing page, typically 40 products. The direct search endpoint supports paging when available, but a blocked request prevents additional pages. The store finder returned 20 stores on its default first page in testing; further store pages were intermittently blocked. `maxStores` is an upper bound, not a guarantee that the requested number of stores can be resolved. If the nearby-store service is fully unavailable, the actor may return an online store placeholder with no street address or local distance.

Prices, promotions, stock, ratings, and opening hours change independently. A displayed price may be a temporary sale, and `salePriceCentsPerUnit` is populated only when the response includes a former price. Category results usually provide compact listing fields, so `description` may be empty unless the product was also requested by exact ID. Bulk price fields remain empty when the source does not expose a trustworthy bulk tier. The actor reads public Canadian data and does not access account-only prices or carts.

### Automated workflows

A scheduled workflow can ask for product IDs in a postal area and retain rows whose `priceScope` is `store` for local comparisons. Another workflow can collect one category each day, compare `priceCentsPerUnit` only within the same scope, and flag products whose online stock status changes. Both workflows should keep missing values as missing values, particularly for store quantities. This prevents an unavailable localization endpoint from being mistaken for zero stock.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n...) with one URL:

`https://mcp.apify.com?tools=mlg14/home-scraper`

The actor returns one flat record per product and store, with price, online stock and store availability when the site provides it. Set `maxItems` and `maxStores` to keep runs short.

**Prompt 1:** "Get price and stock for Home Depot Canada product 1001770010 at stores near Toronto."

```json
{
  "productIds": [
    "1001770010"
  ],
  "postalCode": "M5V 2T6",
  "maxStores": 5,
  "maxItems": 10
}
```

**Prompt 2:** "Search Home Depot Canada for cordless drills and return 20 products with prices."

```json
{
  "searchTerms": [
    "cordless drill"
  ],
  "maxProducts": 20,
  "maxStores": 1,
  "maxItems": 20
}
```

**Prompt 3:** "Collect 40 products from the Home Depot Canada drills category page."

```json
{
  "categoryUrls": [
    "https://www.homedepot.ca/en/home/categories/tools/power-tools/drills.html?searchterm=drill"
  ],
  "maxStores": 1,
  "maxItems": 40
}
```

### FAQ

**Is this limited to Canadian products?** Yes. The actor uses the Canadian domain, Canadian product identifiers, CAD price fields, and Canadian postal codes. A product ID from another country may not resolve to the same item here.

**Is it legal to collect this data?** The actor processes publicly visible catalog and store information. Review the site's terms and applicable law for your use, respect reasonable request volumes, and avoid using exported data for personal-data misuse. This actor does not request private account data.

**Do I need to configure a proxy?** The supplied configuration is used by default. The actor starts with the lower-cost route and escalates if blocked. A proxy does not guarantee that a site endpoint will respond; the `priceScope` field records when local data was unavailable.

**How fast is a run?** The verified 40-row run completed after one category page, a product detail request, a nearby-store request, and an attempted localized lookup. Duration grows with product and store counts and with retries after HTTP 403 responses. Set a run timeout that allows for these retries.

**Can I schedule and monitor it?** Yes. Save the input and run it on a schedule, then compare datasets by product ID, store ID, and price scope. Monitor failed runs separately from successful runs with empty optional fields.

**Can I export to a spreadsheet?** Yes. Download the dataset as CSV, or use JSON when preserving exact `null` values and integer-cent prices matters. Spreadsheet users should format cent values into dollars before charting them.

**Why is `quantityAvailable` empty when `onlineQuantityAvailable` has a number?** The first field is stock at the displayed store. The second is online stock. If the local inventory endpoint is blocked, the actor leaves the store field empty instead of copying the online figure into it.

**Why are there fewer rows than `maxItems`?** `maxItems` is a ceiling. A single product with one store gives one combination, and a category may contain fewer products than requested. Blocks or unavailable later pages can also reduce the count.

### Integrations

Use the default dataset URL for scheduled downloads, an API client for programmatic retrieval, or a webhook to process a finished run. JSON works well when distinguishing missing local stock from zero stock; CSV works well for reports and spreadsheets. Connect the resulting dataset to an existing reporting pipeline, and use `productId`, `storeId`, and `priceScope` as keys when joining snapshots over time.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request. Include the input, the affected product or category URL, and whether the problematic row said `store` or `online` in `priceScope` so the result can be reproduced.

# Actor input Schema

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

Home Depot Canada product IDs, the number at the end of a product URL. Example: \["1001770010"]. Use for exact product and nearby-store lookups; leave empty when using searchTerms or categoryUrls.

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

Product search words, one search per entry. Example: \["cordless drill", "paint"]. Use instead of or alongside product IDs; leave empty to skip keyword search.

## `postalCode` (type: `string`):

Canadian postal code used to find nearby stores. Example: M5V 2T6. Use your target city; if the location service is unavailable, results show online pricing only.

## `maxProducts` (type: `integer`):

Maximum products to collect from search terms and categories before checking stores, 1 or more. Example: 40. Use 10-40 for tests and agent calls.

## `maxStores` (type: `integer`):

Maximum nearby stores to check per product; location pages may return only the first 20. Example: 5. Set 1 for a fast single-store check.

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

Maximum product and store combinations to export. Example: 40. Use 10-40 for tests and agent calls to keep runs short.

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

Proxy settings for fetching public site pages; the Apify proxy default works for most runs.

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

Public Home Depot Canada category page URLs. Example: https://www.homedepot.ca/en/home/categories/tools/power-tools/drills.html. Each page exposes up to 40 products; leave empty to skip categories.

## Actor input object example

```json
{
  "productIds": [
    "1001770010"
  ],
  "searchTerms": [],
  "postalCode": "M5V 2T6",
  "maxProducts": 40,
  "maxStores": 40,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "categoryUrls": []
}
```

# Actor output Schema

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

One product and nearby-store combination per row in the default dataset.

# 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 = {
    "productIds": [
        "1001770010"
    ],
    "postalCode": "M5V 2T6"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/home-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 = {
    "productIds": ["1001770010"],
    "postalCode": "M5V 2T6",
}

# Run the Actor and wait for it to finish
run = client.actor("mlg14/home-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 '{
  "productIds": [
    "1001770010"
  ],
  "postalCode": "M5V 2T6"
}' |
apify call mlg14/home-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mlg14/home-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/POd7Btmr12djoAtDU/builds/jJ3eaagx9IPRpMLla/openapi.json
