# B\&Q Stock Checker & API: Store Stock & Restock Alerts (`s_actors/bq-stock-checker`) Actor

B\&Q stock checker and product scraper: is a product in stock at each B\&Q store near a UK postcode or town, with Click + Collect note, price, was-price, rating and distance. Search by keyword, product link or EAN. Scheduled runs = back-in-stock and price-drop alerts.

- **URL**: https://apify.com/s_actors/bq-stock-checker.md
- **Developed by:** [Superior Actors](https://apify.com/s_actors) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 95.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.79 / 1,000 product at a stores

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### B\&Q Stock Checker & API: Store Stock & Restock Alerts

**See which B\&Q stores near you have a product in stock right now.** For any UK postcode or town you get the nearest B\&Q stores, nearest first, and for every product at every store the **stock status** (in stock, low stock, out of stock, not stocked), the **Click + Collect** note, the live **price**, was price and saving, the rating, the store name, type, coordinates and distance. Search by keyword (`drill`, `paint`, `garden furniture`, `pokemon`), by **product link** or **EAN barcode**; check as many postcodes and towns as you like to cover a region.

Scheduled runs with **Only report changes** become **B\&Q restock alerts**: a row only when a store gets a product back, **sells out**, the price changes, or a **new product appears in your search**.

Use cases: track DIY and garden products & prices, find a store that has a hard-to-find item, deal & restock alerts, market datasets of B\&Q store stock. No login, no app: a **B\&Q stock checker online**, **B\&Q scraper** and **B\&Q API** that returns clean JSON, CSV or Excel.

#### What makes it different

| | |
| --- | --- |
| 🏬 **Stock at every store near you** | One row per product and store, nearest first: add several postcodes or towns to cover a city or region |
| 🔎 **Search or watchlist** | Search any keyword (48 products per page, up to 1 000 per keyword) or check exact products by link or EAN |
| 🚚 **Click + Collect** | The store's Click + Collect status and note ("Next day Click & Collect") and the home delivery status in every row |
| 💷 **Price, was price, saving** | Live price, old price and the saving in pounds, plus rating and reviews |
| 🔔 **Restock alerts** | `back_in_stock`, `out_of_stock`, `price_drop`, `price_increase`, `new_item` |
| ✅ **Works on the free Apify plan** | No proxy setup, no cookies to paste |

#### Example

Input: keyword `drill`, place `SW1A 1AA` (London), 5 stores per place. Real run, 6 Nov 2026:

| Product | Price | Store | Miles | Stock | Click + Collect |
| --- | --- | --- | --- | --- | --- |
| Bosch EasyImpact 18V-40 18V Li-ion Cordless Combi drill (1 x 2Ah) | £49.00 | B\&Q Peckham | 3.4 | low_stock | Next day Click & Collect |
| Bosch EasyImpact 18V-40 18V Li-ion Cordless Combi drill (1 x 2Ah) | £49.00 | B\&Q West Norwood | 4.8 | in_stock | Next day Click & Collect |

#### Input

| Field | What it does |
| --- | --- |
| **What to do** | *Search products* (keywords) or *Check products* (links or EANs) |
| **Keywords** | e.g. `drill`, `paint`, `garden furniture` |
| **Product links or EANs** | diy.com product links (`…/5035048741382_BQ.prd`) or EAN barcodes |
| **Postcodes or towns** | `SW1A 1AA`, `Manchester`, `Leeds`, or `53.48, -2.24` |
| **Store ids or names** | exact stores: `1002` (Fareham), `B&Q Fareham`, `Leicester` |
| **Radius**, **Stores per place** | 20 miles and the 5 nearest stores by default (up to 60) |
| **Max products per search** | up to 1 000 products per keyword |
| **Only in stock**, **Maximum price** | Filters: you pay only for returned rows |
| **Include marketplace products** | other sellers' products have no store stock; skipped unless you ask |
| **Only report changes**, **Monitor name** | Restock and drop alerts for scheduled runs |

#### Output

| Field | Example |
| --- | --- |
| `title`, `ean`, `category`, `url`, `image` | Bosch EasyImpact…, 4053423232615, Combi drills, product page, image |
| `price`, `wasPrice`, `savingGbp` | 49.0, 72.0, 23.0 |
| `rating`, `reviews`, `seller`, `soldByBq` | 4.64, 99, B\&Q, true |
| `stockStatus`, `inStockAtStore` | in_stock / low_stock / out_of_stock / not_stocked_in_store / not_sold_in_store, true |
| `clickCollectStatus`, `clickCollectNote`, `homeDelivery` | available, Next day Click & Collect, available |
| `storeId`, `storeName`, `storeType`, `storeLatitude`, `storeLongitude`, `storeMapUrl` | 1037, B\&Q Peckham, Mini-Warehouse, 51.48, -0.07, map link |
| `distanceMiles`, `near`, `query`, `queryType` | 3.4, SW1A 1AA, the search or product the row came from |
| `change`, `changes`, `previousPrice` | back_in_stock, price_drop from 59.0 (monitoring) |

B\&Q shows a stock **status** for each store, not a unit count. Stores are listed by name, type and map position (B\&Q does not publish a street address in the stock data). A bad product link, an unknown place or a search with no products returns a row with `error` (free).

#### Pricing

Pay per event: **$0.001** per run and **$0.00099** per returned row: a product at a store ($0.99 per 1 000 rows). Apify Scale plan: 10% less on rows, Business plan and above: 20% less.

| Example | Cost |
| --- | --- |
| 10 drills near one postcode (5 stores, about 30 rows) | ~$0.03 |
| 3 keywords × 150 products near two cities, 20 stores (1 940 rows, 52 s) | ~$1.92 |
| Restock alert: 20 products near 2 postcodes every hour, nothing changed | $0.001 per run |

#### FAQ

**How do I check B\&Q stock near me?** Put your postcode or town into **Postcodes or towns** and the product into **Keywords** (or its link or EAN into *Check products*). Each row is one nearby store.

**Does it show how many units?** No: B\&Q shows a status (in stock, low stock, out of stock, not stocked) per store. "Low stock" means few left: call the store before a long trip.

**What do the stock statuses mean?** `in_stock`, `low_stock`: the store has it. `out_of_stock`: the store stocks it but has none now. `not_stocked_in_store`: the store does not range it (Click + Collect from the warehouse may still work, see `clickCollectStatus`). `not_sold_in_store`: the product cannot be bought in a store.

**Why are some products missing?** B\&Q also sells other sellers' products (marketplace); they have no store stock and are skipped. Turn on **Include marketplace products** to get them as rows.

**How do I get B\&Q restock alerts?** Add the products (or a search) and your postcode, turn on **Only report changes**, save it as a task and schedule it every 30-60 minutes. Connect email, Slack or [Google Sheets](https://apify.com/s_actors/google-sheets-import-export) in Integrations.

**Where do I find the EAN?** In the product link (`…/4053423232615_BQ.prd`) or the `ean` column of any run.

#### Tips

- Rows = products × stores, so start with one or two places and **Only in stock**.
- For a watchlist, use *Check products* with product links: the same products every run, no search noise.
- Use a separate **Monitor name** for each scheduled task.
- Category words ("paint", "drill") search all matching products, not just the category page.

#### Limits

- B\&Q UK and Ireland stores (about 280), as listed on diy.com.
- Up to 30 places and stores per run, up to 60 stores in total.
- B\&Q slows down an IP that asks too fast: the Actor keeps a gentle pace and switches IP by itself, so very large runs take a few minutes.

#### Related

- [Smyths Stock Checker](https://apify.com/s_actors/smyths-stock-checker)
- [IKEA Stock Checker](https://apify.com/s_actors/ikea-stock-checker)
- [Big W Stock Checker](https://apify.com/s_actors/bigw-stock-checker)
- [Costco Stock Checker](https://apify.com/s_actors/costco-scraper)

#### For AI agents and API

```json
{
    "mode": "products",
    "products": ["https://www.diy.com/departments/bosch-easyimpact-18v-40-18v-li-ion-cordless-combi-drill-1-x-2ah-/4053423232615_BQ.prd", "5035048741382"],
    "places": ["SW1A 1AA", "Leeds"],
    "maxStoresPerPlace": 5,
    "onlyChanges": true,
    "monitorName": "bq-restock"
}
```

Each row is one product at one store with `stockStatus`, `inStockAtStore`, `distanceMiles` and the store name and location.

# Actor input Schema

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

Search: keywords, every product found with its stock at the stores near your places. Check products: exact products by link or EAN (best for a back-in-stock watchlist).

## `keywords` (type: `array`):

Search mode: what to search on B\&Q, one per line (e.g. "drill", "paint", "garden furniture", "pokemon"). A category word returns that category.

## `products` (type: `array`):

Check products mode: diy.com product links (…/<name>/<EAN>\_BQ.prd) or EAN barcodes, one per line. Only products sold by B\&Q have store stock.

## `places` (type: `array`):

UK postcodes, towns or "latitude, longitude" to check stores around, one per line: the nearest stores within "Radius" (up to "Stores per place"). A town that is a B\&Q store name also works (e.g. Leicester).

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

Exact B\&Q stores, one per line: the store id (e.g. 1002 = Fareham) or a name (B\&Q Fareham, Leeds). Lists all stores with that word in the name.

## `radiusMiles` (type: `integer`):

How far from each place to look for stores.

## `maxStoresPerPlace` (type: `integer`):

For each postcode or town: how many of the nearest stores to check.

## `maxProductsPerSearch` (type: `integer`):

Search mode: how many products to take from each keyword (48 per B\&Q page).

## `includeMarketplace` (type: `boolean`):

B\&Q also lists products of other sellers (marketplace). They have no store stock and are skipped. Turn on to get them as rows too (stock status "unknown").

## `onlyInStock` (type: `boolean`):

Return only rows where the store has the product now.

## `maxPrice` (type: `integer`):

Return only products at or below this price in GBP. Empty = any price.

## `onlyChanges` (type: `boolean`):

For scheduled runs. The first run saves stock and prices; later runs return only what changed: back in stock at a store, sold out, price drops and increases, and new products or stores in your searches. You pay only for the changes returned.

## `monitorName` (type: `string`):

Separate monitors keep separate memory. Use a different name for each scheduled task.

## `maxConcurrency` (type: `integer`):

How many requests run at the same time (B\&Q blocks an IP that asks too fast).

## Actor input object example

```json
{
  "mode": "search",
  "keywords": [
    "drill"
  ],
  "products": [
    "https://www.diy.com/departments/bosch-easyimpact-18v-40-18v-li-ion-cordless-combi-drill-1-x-2ah-battery-and-charger-easyimpact18v-40/4053423232615_BQ.prd"
  ],
  "places": [
    "SW1A 1AA"
  ],
  "radiusMiles": 20,
  "maxStoresPerPlace": 5,
  "maxProductsPerSearch": 10,
  "includeMarketplace": false,
  "onlyInStock": false,
  "onlyChanges": false,
  "monitorName": "default",
  "maxConcurrency": 4
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per product and store: stock status, store, distance, price.

## `changes` (type: `string`):

Monitoring: back in stock, sold out, price changes, new products and stores.

## `details` (type: `string`):

EAN, category, prices, rating, reviews and seller.

## `stores` (type: `string`):

Store name, type, coordinates and distance for each row.

## `all` (type: `string`):

Every field of every row.

# 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 = {
    "keywords": [
        "drill"
    ],
    "products": [
        "https://www.diy.com/departments/bosch-easyimpact-18v-40-18v-li-ion-cordless-combi-drill-1-x-2ah-battery-and-charger-easyimpact18v-40/4053423232615_BQ.prd"
    ],
    "places": [
        "SW1A 1AA"
    ],
    "maxProductsPerSearch": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("s_actors/bq-stock-checker").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 = {
    "keywords": ["drill"],
    "products": ["https://www.diy.com/departments/bosch-easyimpact-18v-40-18v-li-ion-cordless-combi-drill-1-x-2ah-battery-and-charger-easyimpact18v-40/4053423232615_BQ.prd"],
    "places": ["SW1A 1AA"],
    "maxProductsPerSearch": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("s_actors/bq-stock-checker").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 '{
  "keywords": [
    "drill"
  ],
  "products": [
    "https://www.diy.com/departments/bosch-easyimpact-18v-40-18v-li-ion-cordless-combi-drill-1-x-2ah-battery-and-charger-easyimpact18v-40/4053423232615_BQ.prd"
  ],
  "places": [
    "SW1A 1AA"
  ],
  "maxProductsPerSearch": 10
}' |
apify call s_actors/bq-stock-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s_actors/bq-stock-checker"
        }
    }
}
```

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/5wban1fOGacPYywst/builds/4iY7Bywoy4pQZEHxl/openapi.json
