# Morrisons Grocery Scraper (`kibaale/morrisons-grocery-scraper`) Actor

Scrape Morrisons (UK) groceries by search, category, product URL or whole catalogue: GBP prices, unit prices, promotions, ratings, pack size, brand, images and optional full customer reviews. Pure HTTP — no browser, no login, no proxy.

- **URL**: https://apify.com/kibaale/morrisons-grocery-scraper.md
- **Developed by:** [kibalee](https://apify.com/kibaale) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.50 / 1,000 results

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

## Morrisons Grocery Scraper

Scrape [Morrisons](https://groceries.morrisons.com) — one of the UK's largest supermarket chains — for products, prices and customer reviews. Pure HTTP: no browser, no login, no proxy.

### What you get

One record per product in the run's default dataset:

| Field | Example |
|---|---|
| `retailerProductId` | `108444711` |
| `productId` | UUID used by the review API |
| `name`, `brand`, `packSizeDescription` | `Morrisons British Chicken Breast Fillets 1kg` |
| `price` | `{"amount": "6.99", "currency": "GBP"}` |
| `unitPrice` | `{"price": {"amount": "6.99", "currency": "GBP"}, "unit": "fop.price.per.kg", "unitName": "PER_1KG"}` |
| `promotions` | active offers, e.g. `Easy Chicken Dinner Bundle for £8` |
| `rating` | `{"overallRating": "2.2", "count": 101}` |
| `categoryPath`, `available`, `isNew`, `imageUrl`, `url` | — |
| `reviews`, `reviewsMeta` | when reviews are enabled (see below) |

With **Include customer reviews** on, every product also carries `reviews[]` — headline, star rating, nickname, date, full comment text, verified-buyer flag and helpful votes — plus `reviewsMeta` with the product's total review count and 5-star histogram.

### How to use it

Fill any combination of the inputs; they run in this order:

- **Search terms** — keyword search, e.g. `milk`, `chicken breast`, `gluten free pasta`.
- **Category IDs** — department/category listings. Top-level IDs: `192077` New, `176738` Fruit & Veg, `179549` Meat & Fish, `176739` Fresh Foods, `102210` Bakery & Cakes, `180331` Frozen Food, `102705` Food Cupboard, `193648` Treats & Snacks, `192319` Dietary & Lifestyle Foods, `182137` World Foods, `103644` Drinks.
- **Product URLs or IDs** — full detail for specific products, e.g. `https://groceries.morrisons.com/products/morrisons-british-chicken-breast-fillets-1kg/108444711` or just `108444711`.
- **Crawl the whole catalogue** — walks all 22 top-level departments until `Max products` is reached (the catalogue holds ~30,000 products).

`Max products` caps the whole run. Leave every input empty to get a small default sample.

#### Review options

Reviews are fetched per product from Morrisons' own review API, up to `Max reviews per product` (100 per request under the hood), sorted by your chosen order: most recent, oldest, highest/lowest rated or most helpful.

### Typical runs

- Price monitoring for a shopping list — a handful of search terms, `Max products` 100–500.
- Category research — one or two category IDs, reviews off.
- Full catalogue snapshot — `Crawl the whole catalogue`, `Max products` 30000+, reviews off.
- Review mining — search terms plus reviews on, filtered later on the `reviews` array.

### Notes

- Prices are GBP as displayed on the site, including current promotions. Unit prices sometimes come back in pence (`GBX`) — that is how the site reports them.
- Runs are sequential with a small delay between requests; no proxy or browser is required, which keeps runs fast and cheap.
- Data reflects the Morrisons online catalogue at run time; delivery availability can vary by postcode but catalogue prices are national.

### Local development

```bash
pip install -r requirements.txt
python3 -m src --search milk --max 20
python3 -m src --product 108444711 --reviews --max-reviews 5
python3 -m src --crawl --max 60
```

# Actor input Schema

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

Keywords to search the Morrisons catalogue for, e.g. "milk" or "chicken breast". Each term returns its ranked products (max 50 characters per term).

## `categoryIds` (type: `array`):

Morrisons category IDs, e.g. 102705 (Food Cupboard) or 103644 (Drinks). Top-level IDs: 192077 New, 176738 Fruit & Veg, 179549 Meat & Fish, 176739 Fresh Foods, 102210 Bakery & Cakes, 180331 Frozen Food, 182905 Food To Order, 102705 Food Cupboard, 193648 Treats & Snacks, 192319 Dietary & Lifestyle Foods, 182137 World Foods, 103644 Drinks.

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

Full Morrisons product pages to scrape in detail, e.g. https://groceries.morrisons.com/products/morrisons-british-chicken-breast-fillets-1kg/108444711 — numeric product IDs also work.

## `crawlAllCategories` (type: `boolean`):

Walk all 22 top-level departments and page through their products until maxProducts is reached. The catalogue holds ~30,000 products.

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

Upper limit of products collected in the whole run.

## `includeReviews` (type: `boolean`):

Fetch review text for every product: headline, star rating, nickname, date, comment, verified-buyer flag and helpful votes.

## `maxReviewsPerProduct` (type: `integer`):

How many reviews to collect per product (fetched 100 per page).

## `reviewSort` (type: `string`):

Order in which reviews are collected.

## Actor input object example

```json
{
  "crawlAllCategories": false,
  "maxProducts": 500,
  "includeReviews": false,
  "maxReviewsPerProduct": 20,
  "reviewSort": "NEWEST"
}
```

# Actor output Schema

## `results` (type: `string`):

Product records stored in the run's default dataset

# 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("kibaale/morrisons-grocery-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("kibaale/morrisons-grocery-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 kibaale/morrisons-grocery-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kibaale/morrisons-grocery-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/pzAPAMludjnjb7XXI/builds/NcKa8FXowb6e0tDva/openapi.json
