# Bunnings Scraper (`codingfrontend/bunnings-scraper`) Actor

Collect public Bunnings Warehouse products with SKUs, names, brands, prices, availability, images, descriptions, ratings, and reviews. Direct public requests only; Cloudflare boundaries are reported without bypass attempts.

- **URL**: https://apify.com/codingfrontend/bunnings-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 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.

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

### What does Bunnings Scraper do?

Bunnings Scraper collects publicly exposed product information from [Bunnings Warehouse Australia](https://www.bunnings.com.au/). It accepts product, search, range, and compatibility URL inputs, extracts JSON-LD or embedded product state, and returns public SKUs, names, brands, prices, currencies, availability, product URLs, Bunnings-hosted images, ratings, reviews, descriptions, source URLs, and collection timestamps. Requests are direct and transparent; the Actor never logs in, solves CAPTCHA, bypasses Cloudflare, evades fingerprinting, or accesses private customer data.

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Input

The Actor accepts `productUrls`, `searchUrls`, and the legacy `startUrls` alias. `sourceUrls`, `urls`, and `url` are additive public URL aliases and are deduplicated. Only public HTTPS Bunnings hosts are accepted; malformed, private-network, credential-bearing, or off-host URLs produce a diagnostic instead of silently falling back to the homepage. With no URLs, the default source is `https://www.bunnings.com.au/our-range`.

`maxPages` defaults to 1 and caps the request sequence at 25. A same-host next link is followed until that cap or exhaustion. `maxProducts` defaults to 25 per page and is capped at 500; `maxItems` is a compatibility alias. `sortBy` defaults to website order (`relevance`) and supports `nameAsc`, `priceAsc`, `priceDesc`, `ratingDesc`, and `reviewCountDesc` after collection.

`includeMedia` and `includeDiagnostics` default to `true`. `timeoutSecs`, `requestDelayMs`, `maxRequestRetries`, `maxResponseBytes`, `userAgent`, and `acceptLanguage` are bounded request controls. `proxyUrl` or one explicit URL in `proxyConfiguration` can be used for a direct public request; credentials and an unconfigured proxy-only mode are rejected.

`renderJavaScript` is an opt-in, bounded Playwright pass for public search pages whose product cards are rendered in the browser. `renderWaitMs` is capped at 5 seconds. The browser path stays on the supplied Bunnings URL and reports redirects, challenges, and empty pages; it never logs in, solves CAPTCHA, or bypasses access controls. Browser-use metrics are written only to `OUTPUT_SUMMARY`, not product rows.

For offline QA, supply `fixtureHtml` or a relative `fixtureFile`/`fixtureFiles` path inside the Actor directory. Fixture mode skips live requests and is synthetic test evidence only. Summary statuses are `SUCCEEDED`, `SUCCEEDED_WITH_WARNINGS`, `SKIPPED_BLOCKED`, and `SKIPPED_TARGET_UNAVAILABLE`; diagnostic rows never count as products.

### Output

Normal rows contain only public product fields plus `dataType: product`, `sourceDomain`, `sourceUrl`, and `scrapedAt` alongside `sku`, `name`, `description`, `brand`, `productUrl`, `price`, `currency`, `availability`, `imageUrls`, `category`, `rating`, and `reviewCount`. Runtime, parser, and transport instrumentation is omitted from normal rows. Product images are restricted to Bunnings-owned hosts and are deduplicated; logos, flags, payment images, and unrelated UI images are not selected.

When a public request is blocked or unavailable, the dataset can contain a typed diagnostic row with `recordType`, `diagnosticType`, `sourceUrl`, `url`, `error`, `errorCode`, and `scrapedAt`. `includeDiagnostics:false` omits those rows while the operational outcome remains available in `OUTPUT_SUMMARY`. No product price is inferred from a challenge or empty response.

Example product row:

```json
{
  "sku": "BNG-1001",
  "name": "Synthetic Cordless Drill",
  "brand": "Example Tools",
  "productUrl": "https://www.bunnings.com.au/synthetic-cordless-drill-1001",
  "price": 129,
  "currency": "AUD",
  "availability": "https://schema.org/InStock",
  "sourceUrl": "https://www.bunnings.com.au/our-range",
  "dataType": "product",
  "sourceDomain": "www.bunnings.com.au",
  "scrapedAt": "2026-09-11T00:00:00.000Z"
}
```

Example diagnostic row:

```json
{
  "recordType": "diagnostic",
  "diagnosticType": "blocked",
  "sourceUrl": "https://www.bunnings.com.au/our-range",
  "url": "https://www.bunnings.com.au/our-range",
  "errorCode": "ACCESS_BOUNDARY",
  "error": "Bunnings returned a public access challenge; no bypass was attempted.",
  "scrapedAt": "2026-09-16T00:00:00.000Z"
}
```

### Access limits and responsible use

The Actor follows only public same-host links and reports Cloudflare, CAPTCHA, redirect, HTTP, timeout, and no-data boundaries without bypass attempts. Respect Bunnings terms, robots guidance, rate limits, regional access controls, and applicable law. Product pricing and availability are time-sensitive and location-dependent. Apify platform usage and storage costs depend on your plan, runtime, request volume, and retention settings.

### Local validation

From this directory:

```bash
npm install
npm test
npm run lint
npm run validate
apify validate-schema
apify run --purge --input-file qa/input-fixture.json
```

The checked-in `qa/bunnings.html` file is synthetic QA data, not a captured live response.

### Support

When reporting an issue, include the input shape without secrets, the `OUTPUT_SUMMARY` status, any diagnostic `errorCode`, the source URL, and whether the run used direct HTTP or the local fixture. Do not include credentials or private customer data.

# Actor input Schema

## `productUrls` (type: `array`):

Optional public Bunnings product pages.

## `searchUrls` (type: `array`):

Optional public Bunnings search or range pages.

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

Compatibility alias for productUrls/searchUrls; only Bunnings URLs are accepted.

## `sourceUrls` (type: `array`):

Additional public Bunnings URLs merged with the URL inputs.

## `urls` (type: `array`):

Compatibility alias for public Bunnings URLs.

## `url` (type: `string`):

One public Bunnings URL.

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

Maximum public pages to request.

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

Maximum product records per page.

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

Compatibility alias for maxProducts.

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

Optional bounded client-side sorting.

## `includeMedia` (type: `boolean`):

Keep product image URLs when present.

## `renderJavaScript` (type: `boolean`):

Opt in to a bounded headless browser pass for public pages whose product cards are rendered client-side. No login, CAPTCHA solving, or access-control bypass is attempted.

## `renderWaitMs` (type: `integer`):

Bounded wait for public product cards after navigation.

## `includeDiagnostics` (type: `boolean`):

Emit the existing diagnostic rows when pages fail or contain no products.

## `timeoutSecs` (type: `integer`):

Maximum time for each direct request.

## `requestDelayMs` (type: `integer`):

Bounded delay between pages.

## `maxRequestRetries` (type: `integer`):

Retries for transient public transport responses.

## `maxResponseBytes` (type: `integer`):

Reject oversized responses.

## `userAgent` (type: `string`):

Optional transparent user-agent.

## `acceptLanguage` (type: `string`):

Optional language preference for the public request.

## `proxyUrl` (type: `string`):

Optional HTTP/HTTPS proxy URL used by direct fetch; credentials are rejected.

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

Compatibility object. Use one explicit proxy URL; unsupported useApifyProxy-only configuration is rejected.

## `fixtureHtml` (type: `string`):

Synthetic HTML used for local QA instead of live requests.

## `fixtureFile` (type: `string`):

Relative HTML fixture path inside the Actor directory.

## `fixtureFiles` (type: `array`):

The first safe relative fixture path is used.

## Actor input object example

```json
{
  "productUrls": [],
  "searchUrls": [],
  "startUrls": [],
  "sourceUrls": [],
  "urls": [],
  "url": "",
  "maxPages": 1,
  "maxProducts": 25,
  "maxItems": 25,
  "sortBy": "relevance",
  "includeMedia": true,
  "renderJavaScript": false,
  "renderWaitMs": 5000,
  "includeDiagnostics": true,
  "timeoutSecs": 20,
  "requestDelayMs": 0,
  "maxRequestRetries": 1,
  "maxResponseBytes": 8000000,
  "acceptLanguage": "en-AU,en;q=0.8",
  "proxyUrl": "",
  "fixtureHtml": "",
  "fixtureFile": "",
  "fixtureFiles": []
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/bunnings-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/bunnings-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 '{}' |
apify call codingfrontend/bunnings-scraper --silent --output-dataset

```

## MCP server setup

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