# Trolley Scraper — UK Supermarket Price Comparison (`hipersoft/trolley-scraper`) Actor

Compare UK grocery prices from trolley.co.uk: product, brand, size, rating, and the price at each supermarket (Tesco, Asda, Sainsbury's, Morrisons, Waitrose, Iceland, Aldi, Ocado…) with unit price, Clubcard/Nectar prices, cheapest store and price range. Export CSV/JSON.

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

## Pricing

from $0.0015 / product

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

## Trolley Scraper: UK Supermarket Price Comparison

**Trolley Scraper** collects **UK grocery prices** from **Trolley.co.uk**, the price-comparison site for **Tesco, Asda, Sainsbury's, Morrisons, Waitrose, Iceland, Aldi, Ocado, Co-op, Lidl** and more. Search any product — **milk, bread, beans, nappies, coffee, laundry detergent, soft drinks** — and for each result get the **product name, brand, size, image, rating and number of reviews**, plus the **price at every supermarket that sells it**, the **unit price (per 100 g / 100 ml / each)**, **loyalty-card prices (Tesco Clubcard, Sainsbury's Nectar…)**, the **cheapest store** and the **lowest and highest price**. Export to **CSV, Excel or JSON**. Ideal for **FMCG brands and retail analysts, price-monitoring and inflation tracking, deal and cashback sites, food-tech apps and household budgeting tools**.

### What does Trolley Scraper do?

- 🛒 **UK supermarket prices** side by side for each product.
- 🏪 **All major chains**: Tesco, Asda, Sainsbury's, Morrisons, Waitrose, Iceland, Ocado and more.
- 💳 **Loyalty prices**: Clubcard and Nectar prices where shown.
- ⚖️ **Unit prices** for fair comparison.
- 🥇 **Cheapest store** and **price range** per product.
- ⭐ **Ratings and review counts**.
- 🔎 **Search terms** or **specific product links** to track over time.

### What data can you scrape?

| Field | Description |
|---|---|
| Product | SKU, title, brand, name, size, image, link |
| Ratings | Rating, review count |
| Summary prices | Lowest price, highest price, cheapest store, number of stores, unit price |
| Store prices\* | Store, price, unit price, loyalty price and scheme, offer |

\* With **Prices at every supermarket** turned on (default).

### Use cases for UK grocery price data

- **FMCG brands**: monitor shelf prices and promotions of your products and competitors across retailers.
- **Retail and inflation analysts**: track basket prices week by week.
- **Deal sites and apps**: show the cheapest supermarket for any product.
- **Budgeting tools**: build smart shopping lists that pick the cheapest store.

### How to scrape Trolley

1. Click **Try for free** to open Trolley Scraper in Apify Console.
2. Enter **search terms** or paste **product links**.
3. Keep **Prices at every supermarket** on.
4. Click **Start** and download the results as **CSV, Excel or JSON**. Schedule daily runs to build price history.

### Input

#### Example input

```json
{
  "searchQueries": ["semi skimmed milk", "heinz baked beans"],
  "includeStorePrices": true,
  "maxItems": 200
}
```

| Field | Description |
|---|---|
| **Search terms** | Products to compare. |
| **Product links** | Specific products to track. |
| **Prices at every supermarket** | Per-store price table. |
| **Max products** | 0 = no limit. |

### Output

#### Product example

```json
{
  "sku": "SOY634",
  "title": "Graham's Gold Smooth Full Cream Jersey Milk (1 Litre)",
  "brand": "Graham's",
  "size": "1 Litre",
  "rating": 4.4,
  "reviewCount": 181,
  "lowestPrice": 1.87,
  "highestPrice": 2.05,
  "cheapestStore": "Asda",
  "storeCount": 5,
  "unitPrice": "£0.19 per 100ml",
  "stores": [
    { "store": "Asda", "price": 1.87, "unitPrice": "£0.19 per 100ml" },
    { "store": "Tesco", "price": 1.95, "unitPrice": "£0.20 per 100ml", "loyaltyPrice": 1.65, "loyaltyScheme": "CLUBCARD" }
  ],
  "currency": "GBP"
}
```

#### Output schema

| Field | Type | Description |
|---|---|---|
| `sku`, `url`, `title`, `brand`, `name`, `size`, `imageUrl` | string | Product. |
| `rating`, `reviewCount` | number | Ratings. |
| `lowestPrice`, `highestPrice`, `cheapestStore`, `storeCount`, `unitPrice`, `currency` | mixed | Summary. |
| `stores` | array | Store, price, unit price, loyalty price/scheme, offer. |
| `search`, `scrapedAt` | string | Source info. |

### How much does it cost?

Trolley Scraper uses **pay-per-product** pricing: a small fixed price per product (including all store prices), with automatic discounts on higher Apify plans. See the **Pricing** tab for the exact price.

### More retail price data

- [kaufDA Scraper](https://apify.com/hipersoft/kaufda-scraper): German supermarket offers.
- [Aldi Australia Scraper](https://apify.com/hipersoft/aldi-au-scraper): Aldi Australia products.

### FAQ

**How often are prices updated?**
Trolley refreshes prices daily. Schedule the scraper daily or weekly for price history.

**Are online and in-store prices the same?**
Prices reflect each retailer's online price as shown on Trolley.

**What formats can I export?**
CSV, Excel, JSON, XML, HTML and RSS, or read the results through the Apify API.

**Can I integrate Trolley Scraper with other apps?**
Trolley Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JS/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

**Is it legal to scrape Trolley?**
The scraper only collects publicly displayed prices. You are responsible for using the data in line with Trolley's terms and applicable law.

### Related Actors

- [kaufDA Scraper](https://apify.com/hipersoft/kaufda-scraper)
- [Aldi Australia Scraper](https://apify.com/hipersoft/aldi-au-scraper)

### Notes

Original clean-room implementation. Returns only public data. Not affiliated with Trolley.co.uk or any retailer.

# Actor input Schema

## `searchQueries` (type: `array`):

Products to compare, e.g. semi skimmed milk, heinz beans, coca cola 24, nappies, olive oil.

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

Optional trolley.co.uk product links to track specific products.

## `includeStorePrices` (type: `boolean`):

Adds the price, unit price and loyalty-card price at each supermarket, the cheapest store and the price range.

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

Stop after this many products (0 = no limit).

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

Not needed in most cases.

## Actor input object example

```json
{
  "searchQueries": [
    "semi skimmed milk"
  ],
  "includeStorePrices": true,
  "maxItems": 200,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

The results as dataset items.

# 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 = {
    "searchQueries": [
        "semi skimmed milk"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/trolley-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 = { "searchQueries": ["semi skimmed milk"] }

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/trolley-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 '{
  "searchQueries": [
    "semi skimmed milk"
  ]
}' |
apify call hipersoft/trolley-scraper --silent --output-dataset

```

## MCP server setup

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