# bmstores.search

Products in B&M's UK range that match a search: price, was price and RRP, size, brand, categories, stock status, Special Buys and promotions.

B&M search, one of the B&M scrapers.

| | |
| --- | --- |
| Id | `bmstores.search` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/bmstores.search/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | What to look for, e.g. `paint`, `garden chair`. Limit: at least 1 characters, at most 200 characters. |
| `page` | integer | no | The page of the results, from 1. Limit: 1 to 100. Default: `1`. |
| `max_results` | integer | no | How many products a page holds. Up to 48. Limit: 1 to 48. Default: `24`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `product_code` | string | B&M's product code, the number at the end of the product's address, e.g. `236925`. |
| `title` | string | The product's name. |
| `url` | string | The product's page on bmstores.co.uk. |
| `price` | number or null | The price, in pounds. Null where B&M does not show it online (an age-restricted product). |
| `was_price` | number or null | The earlier price the page shows struck through, in pounds. Null when none is shown. |
| `rrp` | number or null | The recommended retail price the page shows, in pounds. Null when none is shown. |
| `unit_price` | string or null | The price per unit as printed, e.g. `£5.80/litre`. |
| `size` | string or null | The pack size, e.g. `5L`. |
| `brand` | string or null | The brand, e.g. `Johnstone's Paint`. |
| `categories` | array of string | The product's categories from the widest to the narrowest, e.g. `DIY`, `Paint`, `Interior Paint`, `Emulsion`. |
| `stock_status` | string or null | B&M's stock status as it states it, e.g. `In Stock`. |
| `buy_online` | boolean or null | True when the product can be bought online; most of B&M's range is sold in stores only. |
| `special_buy` | boolean or null | True for a Special Buy, a product in stores for a limited time. |
| `on_sale` | boolean or null | True when the product is marked as reduced. |
| `label` | string or null | The label printed on the product's picture, e.g. `WOW`, `NEW`. |
| `promotion` | string or null | A promotion the product is in, as worded, e.g. `2 for £5`. |
| `image` | string or null | The product's picture. |
| `summary` | string or null | B&M's short description of the product. |
| `description` | string or null | The product's full description, as plain text. |
| `fetched_at` | string (date-time) | When the search was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/bmstores.search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"paint"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "bmstores.search",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "query": "paint"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "product_code": "236925",
      "title": "Johnstone's Paint Vinyl Silk Emulsion 5L - Seashell",
      "url": "https://www.bmstores.co.uk/products/johnstone-s-paint-vinyl-silk-emulsion-5l-seashell-236925",
      "price": 29,
      "was_price": null,
      "rrp": null,
      "unit_price": "£5.80/litre",
      "size": "5L",
      "brand": "Johnstone's Paint",
      "categories": [
        "DIY",
        "Paint",
        "Interior Paint"
      ],
      "stock_status": "In Stock",
      "buy_online": false,
      "special_buy": false,
      "on_sale": false,
      "label": null,
      "promotion": null,
      "image": "https://cdn.bmstores.co.uk/images/hpcProductImage/imgTeaserBox/236925-johnstones-seashell-silk-5l-paint.jpg",
      "summary": "Johnstone's Paint Vinyl Silk Emulsion - Seashell. A smooth, rich and non-reflective finish for interior walls & ceilings. Buy matt emulsion paint at B&M",
      "description": "Johnstone's Paint Vinyl Silk Emulsion.\nJohnstone’s Silk emulsion provides an attractive high sheen finish for interior walls and ceilings.\nLow odour and quick drying.\nColour: Seashell\nSize: 5L (Approx.)\nSee Specification tab for coverage. … [truncated]",
      "fetched_at": "2026-11-19T18:52:21.789873Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `categories`: 4 items, the first 3 shown.
- Shortened: `description`: 303 characters, the first 238 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the B&M scrapers](https://docs.enrichednow.com/results-and-statuses.md#b-m) are in their own section there.
