# Kent Building Supplies Scraper – CAD Prices & Sales (`loudtzu/kent-ca-product-search`) Actor

Export kent.ca products by category URL or keyword: name, SKU, CAD price, regular price, sale flag, savings, online flag, image and link; optional brand, GTIN, stock. Shared retail schema. $0.001/product + $0.0035/run; failed runs free.

- **URL**: https://apify.com/loudtzu/kent-ca-product-search.md
- **Developed by:** [LOUDTZU TZULOUD](https://apify.com/loudtzu) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Kent Building Supplies Scraper – CAD Prices & Sales

Export product prices from **kent.ca**, the online store of Kent Building Supplies (49 stores across New Brunswick, Nova Scotia, PEI and Newfoundland and Labrador). Give it category pages or search terms; get name, SKU, CAD price, regular price, sale flag, savings, online-cart flag, image and product link. Turn on one option to add brand, GTIN/UPC barcode and stock status.

### Who it's for

- **Atlantic Canada contractors and builders** tracking lumber, tools, paint and hardware prices.
- **Retail and pricing analysts** comparing Kent with other Canadian home-improvement chains.
- **Deal finders and resellers** watching what is on sale this week.
- **AI agents and MCP clients** that need one call to price-check Atlantic Canada home-improvement items. Output follows our shared retail schema (`product`, `price`, `currency`, `store`, `country`, `url`, `timestamp` on every item), so results merge with our other store Actors.

### How to use it

1. **Just run it:** with no input it saves up to 100 products from *Tools > Power Tools*.
2. Or paste category pages from kent.ca (for example `https://kent.ca/en/shop/paint` or French `https://kent.ca/fr/magasiner/outils`), and/or add **search terms** like `drill` or `snow shovel`.
3. Set **Max products**, optional **sort** (price low/high, name), **On sale only** or **Buyable online only**.
4. Download JSON, CSV or Excel, or read the dataset through the Apify API.

Example input:

```json
{"categoryUrls": ["https://kent.ca/en/shop/tools/power-tools"], "searchTerms": ["snow shovel"], "maxItems": 100, "sort": "priceLow", "onSaleOnly": false, "includeDetails": false}
```

### Input

| Field | Default | What it does |
|---|---|---|
| `categoryUrls` | Power Tools (used only when no search terms are given) | kent.ca category pages (`/en/shop/...` or `/fr/magasiner/...`) |
| `searchTerms` | none | Keywords searched in Kent's product catalogue |
| `maxItems` | 100 | Total products, split fairly across categories and terms (1 to 50,000) |
| `sort` | relevance | `relevance`, `priceLow`, `priceHigh`, `name` |
| `language` | en | Language of names for search terms (`en` or `fr`); category URLs use their own language |
| `onSaleOnly` | false | Only products below their regular price |
| `availableOnlineOnly` | false | Only products that can be added to the online cart |
| `includeDetails` | false | Also read each product page for brand, GTIN and stock status (slower, extra charge) |
| `proxyConfiguration` | off | Direct by default; switches to the Apify datacenter proxy by itself if blocked (never residential) |

### Output

Example item (search `snow shovel`, details on):

```json
{"product": "3 Piece Snow Tool Set", "price": 10.99, "currency": "CAD", "store": "Kent Building Supplies", "country": "CA",
 "url": "https://kent.ca/en/3-piece-snow-tool-set-1593200", "timestamp": "2026-11-15T20:52:12Z",
 "sku": "1593200", "brand": "Snow Fun", "wasPrice": 10.99, "onSale": false, "availability": "InStock",
 "rating": null, "reviewCount": null, "imageUrl": "https://kent.ca/media/catalog/product/1/5/1593200_1.jpg",
 "category": null, "savings": null, "availableOnline": true, "gtin": "063315711306", "language": "en",
 "categoryUrl": null, "searchTerm": "snow shovel", "detailsIncluded": true}
```

| Field | Notes |
|---|---|
| `product`, `price`, `currency`, `store`, `country`, `url`, `timestamp` | Always filled (shared retail schema core) |
| `sku` | Kent item number; record key, duplicates are dropped |
| `wasPrice`, `onSale`, `savings` | Regular price, sale flag and saving in CAD (`savings` only when on sale) |
| `availableOnline` | Kent allows adding it to the online cart |
| `imageUrl`, `category` | Image link (never the file); category name from the category URL (null for search terms) |
| `brand`, `gtin`, `availability` | **Only with `includeDetails` on**, otherwise null |
| `rating`, `reviewCount` | Always null: kent.ca does not publish ratings in the data this Actor reads |

In a 450-product test run (Tools, 2026-11-15) every item had `product`, `price`, `url`, `sku`, `wasPrice`, `imageUrl` and `category`; 63 were on sale. In a 5-product details run, brand and GTIN were filled for 4 of 5 (one product page lists neither) and stock status for 5 of 5.

Only facts and links are exported: no product descriptions, no review text, no image files and no personal data.

### What to expect from a run

- Products come from the same product-search service the kent.ca pages use, up to 200 per request, so 1,000 products take a few seconds.
- With **includeDetails** each product page (about 2.5 MB) is read one at a time: roughly 1–2 s per product.
- Prices are the online prices for the site with no store selected. Kent's pricing policy says in-store prices are honoured when they differ.
- A wrong category URL, a search with no results, or a block ends the run with a clear message and **no charge**. Problems are listed in the `ERRORS` record.
- Each run has a time limit (about 20 s plus 3 s per 200 products, plus 4 s per product with details, at most 6 hours).

### Pricing

Pay per event:

- **$0.0035 per run** (`run-start`), charged once and only when the run saves at least one product.
- **$0.001 per product** saved.
- **+$0.0025 per product** only when `includeDetails` is on (one product page read).
- Examples: 1 product $0.0045; the default 100 products $0.1035; 1,000 products $1.0035 (with details $3.5035).
- Runs that save nothing (bad input, blocked, empty category or search) cost nothing.

### Other Kent Building Supplies Actors (checked 2026-11-15)

| Actor | Price per product | Features |
|---|---|---|
| none found | – | Apify Store searches for "kent" and "kent building supplies" returned no Actor for kent.ca |
| **This Actor** | $0.001 (+$0.0025 with details) + $0.0035 per run that saves products | Categories and keyword search, EN/FR, sale and online filters, sort, optional brand/GTIN/stock |

### Privacy and legal

The Actor reads only public product information that any visitor can see without logging in, at a low request rate. It exports product facts and links only, never personal data. kent.ca's footer policies (pricing, sales, shipping, returns, billing, privacy; read 2026-11-15) contain no website terms of use and no clause about automated access. You are responsible for how you use the data.

### FAQ

**Where do I find a category URL?** Open a category on kent.ca and copy the address bar, e.g. `https://kent.ca/en/shop/paint`.
**Why are brand and GTIN empty?** They are only on product pages; turn on `includeDetails`.
**Are prices for my local store?** No, they are kent.ca online prices with no store chosen.
**Do I pay for a failed run?** No. Nothing is charged, not even the run fee, unless products are saved.

# Actor input Schema

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

kent.ca category pages copied from the site, e.g. https://kent.ca/en/shop/tools/power-tools or https://kent.ca/fr/magasiner/outils. Leave empty and add search terms to search instead. If both are empty the Actor uses the Power Tools category, so a plain 'just run it' call works.

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

Keywords searched in kent.ca's product catalogue, e.g. 'drill', 'snow shovel', 'vinyl plank'. Each term gets a fair share of Max products.

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

Total products to save across all categories and search terms (default 100). Split fairly; unused share passes to the next source.

## `sort` (type: `string`):

Order in which products are taken. With a low Max products this decides which products you get.

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

Language of product names for search terms. Category URLs use the language in their address (/en/ or /fr/).

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

Keep only products priced below their regular price (not charged for skipped products).

## `availableOnlineOnly` (type: `boolean`):

Keep only products that can be added to the online cart.

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

Also open each product page to add brand, GTIN/UPC barcode and stock status (availability). Slower (about 1–2 s per product) and charged as an extra 'product-details' event per product.

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

Off by default: the site answers direct requests. If it blocks, the run switches to the Apify datacenter proxy by itself (never residential).

## Actor input object example

```json
{
  "categoryUrls": [
    "https://kent.ca/en/shop/tools/power-tools",
    "https://kent.ca/en/shop/paint"
  ],
  "searchTerms": [
    "drill",
    "snow shovel"
  ],
  "maxItems": 100,
  "sort": "relevance",
  "language": "en",
  "onSaleOnly": false,
  "availableOnlineOnly": false,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `products` (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 = {
    "categoryUrls": [
        "https://kent.ca/en/shop/tools/power-tools"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("loudtzu/kent-ca-product-search").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 = {
    "categoryUrls": ["https://kent.ca/en/shop/tools/power-tools"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("loudtzu/kent-ca-product-search").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 '{
  "categoryUrls": [
    "https://kent.ca/en/shop/tools/power-tools"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call loudtzu/kent-ca-product-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,loudtzu/kent-ca-product-search"
        }
    }
}
```

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/bGtsxbXdU1O4ZeICA/builds/F6jIPM6dqwvG6fBJn/openapi.json
