# Woodcraft Scraper (`crawlerbros/woodcraft-scraper`) Actor

Scrape Woodcraft (woodcraft.com) - a leading US woodworking tools, hardware & fasteners retailer. Search products, browse by category (power tools, hardware, router bits, sanding & abrasives, wood & finishing, hand tools), look up exact products by handle/URL, and list the full category taxonomy.

- **URL**: https://apify.com/crawlerbros/woodcraft-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** E-commerce, Developer tools, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Woodcraft Scraper

Scrape [Woodcraft](https://www.woodcraft.com) — a leading US woodworking tools, hardware & fasteners retailer covering power tools, router bits, sanding & abrasives, hand tools, machinery, cabinet/furniture/door/drawer hardware, wood & finishing supplies, and project materials. Search products, browse any of the site's 450+ categories, look up exact products by handle or URL, or list the full category taxonomy. HTTP-only via the store's public JSON endpoints. No auth, no proxy, no cookies.

### What this actor does

- **Four modes:** `search`, `byCollection`, `byProductHandles`, `listCollections`
- **Search** merges the store's own relevance-ranked predictive search with a broader catalogue scan, so short queries aren't capped at a handful of results
- **Category browse** across 50+ curated common categories (hardware, power tools, router bits, sanding & abrasives, hand tools, machinery, finishing, project materials) plus any of the site's other 450+ collections via an exact handle override
- **Filters:** min/max price, in-stock only, on-sale only, brand, keyword (title/vendor/description), sort order
- **Rich product data:** price range, was-price/discount, stock, brand, product type, tags, all images, all variants (SKU, price, option values, per-variant image, weight), option names
- Empty fields are omitted — no `null`/`""`/`[]` ever shipped

### Output per product

- `productId`, `title`, `handle`, `vendor` (brand), `productType`
- `description` — plain text (HTML stripped)
- `isOnSale`, `tags[]`
- `priceMin`, `priceMax`, `currency` (`USD`)
- `wasPrice`, `discountPercent` — when the product is on sale
- `inStock`, `variantCount`, `variants[]` (`variantId`, `title`, `sku`, `price`, `compareAtPrice`, `available`, `option1/2/3`, `image`, `weightGrams`)
- `optionNames[]` — e.g. `Size`, `Color`
- `images[]`, `mainImage`
- `sourceUrl`, `createdAt`, `updatedAt`, `publishedAt`
- `recordType: "product"`, `scrapedAt`

### Output per category (`mode=listCollections`)

- `collectionId`, `title`, `handle`, `description`, `productsCount`, `imageUrl`
- `sourceUrl`, `publishedAt`, `updatedAt`
- `recordType: "collection"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search` / `byCollection` / `byProductHandles` / `listCollections` |
| `searchQuery` | string | `router bit` | Free-text query (mode=search) |
| `collectionHandle` | string | `hardware` | Curated category dropdown (mode=byCollection) |
| `customCollectionHandle` | string | – | Exact handle for any of the site's other collections; overrides the dropdown |
| `productHandles` | array | – | Product handles or full product URLs (mode=byProductHandles) |
| `minPrice` / `maxPrice` | number | – | Price range in USD |
| `inStockOnly` | bool | `false` | Only in-stock products |
| `onSaleOnly` | bool | `false` | Only discounted products |
| `brand` | string | – | Case-insensitive brand/vendor substring match |
| `keyword` | string | – | Case-insensitive substring match against title/vendor/description — most useful to narrow a `byCollection` category |
| `sortBy` | string | `relevance` | `relevance` / `priceAsc` / `priceDesc` / `titleAsc` / `titleDesc` / `newest` |
| `minProductsCount` | int | – | Drop small categories (mode=listCollections) |
| `maxItems` | int | `50` | Hard cap (1–1000) |

#### Example: search with price + stock filters

```json
{
  "mode": "search",
  "searchQuery": "chisel",
  "minPrice": 10,
  "maxPrice": 100,
  "inStockOnly": true,
  "sortBy": "priceAsc",
  "maxItems": 40
}
```

#### Example: browse a category

```json
{
  "mode": "byCollection",
  "collectionHandle": "router-bits",
  "sortBy": "newest",
  "maxItems": 100
}
```

#### Example: narrow a broad category with a keyword

```json
{
  "mode": "byCollection",
  "collectionHandle": "router-bits",
  "keyword": "flush trim",
  "maxItems": 30
}
```

#### Example: browse a category not in the curated dropdown

```json
{
  "mode": "byCollection",
  "customCollectionHandle": "bandsaw-blades",
  "maxItems": 50
}
```

#### Example: lookup exact products

```json
{
  "mode": "byProductHandles",
  "productHandles": [
    "whiteside-flush-trim-spiral-router-bit-1-4-sh",
    "https://www.woodcraft.com/products/some-other-product-handle"
  ]
}
```

#### Example: list the category taxonomy

```json
{
  "mode": "listCollections",
  "minProductsCount": 100,
  "maxItems": 200
}
```

### Use cases

- **Price monitoring** — track power tool, router bit and hardware prices over time
- **Competitor / market research** — benchmark a woodworking tools & hardware retailer's catalogue, pricing and promotions
- **Product feed building** — import woodworking tools & hardware into a comparison site or marketplace
- **Stock availability tracking** — flag when a popular tool or bit set goes out of stock
- **Category / taxonomy analysis** — enumerate every category and its product count

### FAQ

**Do I need a proxy or login?**  No. The actor reads the store's own public Shopify JSON endpoints (`products.json`, `collections.json`, `search/suggest.json`) — the same data your browser fetches, no authentication required.

**Why is `search` capped around the requested `maxItems` but sometimes returns fewer?**  The store's own predictive-search API returns at most 10 highly relevant matches; the actor extends coverage by scanning the full catalogue and keyword-matching title/brand/type, but very narrow queries may still return fewer than `maxItems` if that's all that exists.

**What currency are prices in?**  USD ($) — Woodcraft is a US retailer.

**What's `discountPercent`?**  Computed from `wasPrice` (the pre-discount price) vs the current `priceMin`, only present when the product is genuinely discounted.

**Why do some products have multiple variants?**  Products with size/style options (e.g. router bit sets, chisels) expose one variant per combination, each with its own SKU, price and availability.

**How do I browse a category that isn't in the dropdown?**  Set `customCollectionHandle` to the exact handle from a `woodcraft.com/collections/<handle>` URL — it overrides the dropdown.

**Why does `sortBy` sometimes only sort within a candidate pool rather than the whole category?**  The store's own product-listing endpoint doesn't honor a sort parameter, so the actor fetches a bounded pool of matching products (5x `maxItems`, up to 500+) in the store's own order and sorts that pool itself. For very large categories with a small `maxItems`, increase `maxItems` if you need a true full-category top/bottom ranking.

**How fresh is the data?**  Real-time — every request hits the live storefront.

# Actor input Schema

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

What to fetch.

## `searchQuery` (type: `string`):

Free-text query matched against product title, brand and type.

## `collectionHandle` (type: `string`):

Pick a common category. Choose "(custom — use field below)" to browse any of the site's 450+ collections by exact handle.

## `customCollectionHandle` (type: `string`):

Exact collection handle (from a woodcraft.com/collections/<handle> URL). Overrides the dropdown above when set.

## `productHandles` (type: `array`):

Product handles (e.g. `whiteside-flush-trim-spiral-router-bit-1-4-sh`) or full product URLs.

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

Drop products priced below this (search/byCollection/byProductHandles).

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

Drop products priced above this.

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

Only emit products with at least one available variant.

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

Only emit products currently discounted (has a was-price above the current price).

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

Case-insensitive substring match against the product's brand/vendor (e.g. `Festool`, `Freud`, `WoodRiver`).

## `keyword` (type: `string`):

Case-insensitive substring match against the product's title, vendor, and description. Most useful with mode=byCollection to narrow a broad category (e.g. category="router-bits" + keyword="flush trim"); also applies to search/byProductHandles.

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

Result ordering, applied by the actor after fetching a candidate pool (the store's own products.json endpoint does not honor sort order).

## `minProductsCount` (type: `integer`):

Only emit categories with at least this many products.

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

Hard cap on emitted records.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "router bit",
  "collectionHandle": "hardware",
  "productHandles": [],
  "inStockOnly": false,
  "onSaleOnly": false,
  "sortBy": "relevance",
  "maxItems": 50
}
```

# Actor output Schema

## `items` (type: `string`):

Dataset containing all scraped Woodcraft products/collections.

# 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",
    "searchQuery": "router bit",
    "collectionHandle": "hardware",
    "productHandles": [],
    "inStockOnly": false,
    "onSaleOnly": false,
    "sortBy": "relevance",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/woodcraft-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 = {
    "mode": "search",
    "searchQuery": "router bit",
    "collectionHandle": "hardware",
    "productHandles": [],
    "inStockOnly": False,
    "onSaleOnly": False,
    "sortBy": "relevance",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/woodcraft-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 '{
  "mode": "search",
  "searchQuery": "router bit",
  "collectionHandle": "hardware",
  "productHandles": [],
  "inStockOnly": false,
  "onSaleOnly": false,
  "sortBy": "relevance",
  "maxItems": 50
}' |
apify call crawlerbros/woodcraft-scraper --silent --output-dataset

```

## MCP server setup

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