# UK Supermarket Prices: Tesco, Sainsbury's, Asda & Morrisons (`vant47/uk-supermarket-prices-scraper`) Actor

Compare UK supermarket prices for milk, coffee and groceries across Tesco, Sainsbury's, Asda and Morrisons: ordinary and loyalty prices, dated offers, unit prices, pack sizes and supplied barcodes. $0.003 per product: 100 cost $0.30 + $0.0035 per snapshot. No login.

- **URL**: https://apify.com/vant47/uk-supermarket-prices-scraper.md
- **Developed by:** [fortbrand](https://apify.com/vant47) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 products

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

## UK Supermarket Prices: Tesco, Sainsbury's, Asda & Morrisons

For grocery price analysts, brands, comparison services and researchers who need current UK supermarket prices in one consistent dataset. Search Tesco, Sainsbury's, Asda and Morrisons together, or monitor known products and grocery categories. Collect ordinary prices, Clubcard, Nectar and More Card amounts, Rollback wording, source offer dates, unit prices, pack sizes and source-labelled barcodes where supplied. **$0.003 per delivered product: 100 products cost $0.30**, plus **$0.0035 once per successful snapshot** and the minimum **$0.00005 platform start charge**. No retailer login is required.

Read SUMMARY alongside your export for retailer totals, source outcomes and free notes.

### What you get

Every product begins with a readable verdict. Missing source values remain null; product identifiers remain strings. Prices are in GBP and `country` is GB. The dataset follows the retail family's field names, including `price`, `regularPrice`, `memberPrice`, `promoStart`, `promoEnd` and `gtin`.

| Fields | Meaning |
| --- | --- |
| `verdict` | Product, ordinary online price, single-item loyalty price when available and catalogue availability. |
| `retailer`, `country`, `currency` | Tesco, Sainsbury's, Asda or Morrisons; GB; GBP. |
| `productId`, `sku` | The retailer's own identifiers, preserved separately from barcodes. |
| `gtin`, `gtinSource` | Explicitly labelled source barcode with a valid check digit, and its provenance. |
| `title`, `brand`, `size` | Source product name, supplied brand and pack size. Some sizes are clearly labelled as derived from the product title. |
| `price`, `regularPrice` | Ordinary current selling price and supplied regular or before-discount price. |
| `memberPrice`, `memberProgram` | A single-item Clubcard, Nectar or More Card price, where explicitly supported by the source. |
| `onSale`, `isDeal` | Whether the source supplies a qualifying offer. Standing price-match badges are distinguished from temporary discounts. |
| `promoText`, `promoType`, `promoStart`, `promoEnd` | Main offer wording, type and source validity timestamps. |
| `promotions` | All source offer wording and available dates, with multi-buy conditions retained. |
| `unitPrice`, `unitOfMeasure` | Published price per stated unit, normalized to GBP where the source uses pence. |
| `storeId`, `storeName` | Evidenced store identifier or null; a postcode does not fabricate a serving-store identity. |
| `location`, `requestedLocations` | Requested postcode context. Several postcode inputs do not multiply a national catalogue observation. |
| `inStock`, `catalogueInStock` | Availability signals with explicit scope; postcode-specific stock is left null when not established. |
| `priceScope`, `priceStoreVerified`, `availabilityScope`, `availabilityPostcodeVerified` | Evidence needed to interpret online prices and availability accurately. |
| `rating`, `reviewCount`, `category` | Published aggregate reviews and category information where supplied. |
| `url`, `imageUrl`, `scrapedAt` | First-party product page, image and UTC observation timestamp. |
| `searchTerm`, `sourceType`, `sourceInput`, `sourceUrl` | How the product was discovered and the first-party endpoint used. |
| `details` | Optional label information, ingredients, nutrition or descriptive metadata where supplied. |

### Start in three steps

1. Choose all four retailers or a subset and enter searches such as milk, coffee or chicken.
2. Set `maxItemsPerRetailer` and `maxItems`, then choose whether to collect only deals or add product details.
3. Run, inspect SUMMARY, and export JSON, CSV or Excel from the dataset.

The form prefill searches milk at every retailer, retaining SW1A 1AA as postcode context, with ten products per retailer and forty products in total. On 15 November 2026, the exact built prefill delivered forty unique priced products, ten from each retailer, in 41.826 seconds. Its forty product charges matched its forty delivered products. Two further search sweeps delivered 1,200 unique products each, 300 per retailer. All 2,400 products had numeric prices; 709 had both promotion dates. One sweep included a real reboot, finishing without duplicate rows or charges.

```json
{
  "retailers": ["tesco", "sainsburys", "asda", "morrisons"],
  "searchTerms": ["milk"],
  "postalCodes": ["SW1A 1AA"],
  "maxItemsPerRetailer": 10,
  "maxItems": 40
}
```

### Compare results

The overview view puts ordinary price, regular price, promotion, member price, unit price and price scope together. The deals view emphasizes promotion amounts and dates. The free COMPARISON output contains search results grouped by their original search term, cheapest ordinary product price first within each term. OUTPUT links to the separate comparison dataset for exports. DEALS contains only delivered products carrying qualifying offers.

### Inputs

| Input | Behaviour |
| --- | --- |
| `retailers` | `tesco`, `sainsburys`, `asda`, `morrisons`; omit for all four. Unknown names generate free notes. |
| `searchTerms` | Each term is searched at every selected retailer. Leave empty for URL-only or ID-only monitoring. |
| `categoryUrls` | Supported category or offer links; each URL is routed only to its own retailer. |
| `startUrls` | Product, search, category or deals URLs from the supported UK domains. |
| `productIds` | Retailer-prefixed IDs with several retailers, or plain source IDs with just one retailer. |
| `postalCodes` | UK postcode context, without a promise of local store prices or stock. |
| `locations` | Retail-family compatibility name for postcode context; merged with postalCodes and deduplicated. |
| `storeIds` | Asda published stock flags support an explicit store number. Other retailers are skipped with a free explanatory note when an exact store is requested. |
| `maxItemsPerRetailer` | Maximum new product rows across all inputs for one retailer, default 10, maximum 5,000. |
| `maxItems` | Maximum new product rows across the run, default 40, maximum 10,000. |
| `maxItemsPerSearch` | Optional per-source ceiling inside each retailer; defaults to maxItemsPerRetailer. Both limits apply. |
| `dealsOnly` | Retain advertised offers and loyalty promotions, preserving their conditions. |
| `includeDetails` | Read optional label details with no additional product fee. |
| `includeUnpriced` | Off by default. Include free catalogue rows with neither a numeric price nor dated promotion where the source exposes them. |
| `priceRegion` | Asda EN, SC, WA or NI online price region; defaults to EN. |
| `proxyConfiguration` | Automatic datacenter first, GB residential after refusal. Explicit disable, country, group or custom URLs are preserved. |

For several searches with a controlled contribution from each:

```json
{
  "searchTerms": ["coffee", "tea", "chocolate"],
  "maxItemsPerSearch": 20,
  "maxItemsPerRetailer": 60,
  "maxItems": 240,
  "dealsOnly": true
}
```

Known IDs are qualified so one retailer's product number is never accidentally sent to another:

```json
{
  "productIds": ["tesco:254656543", "sainsburys:357937", "asda:538241", "morrisons:113240422"],
  "maxItemsPerRetailer": 10,
  "maxItems": 40,
  "includeDetails": true
}
```

### Understand ordinary, loyalty and offer prices

`price` is the ordinary single-product online selling price. Tesco Clubcard, Sainsbury's Nectar and Morrisons More Card amounts go in `memberPrice` only when the source clearly advertises a single-item amount. At Sainsbury's, a simple Nectar offer can put the loyalty amount in the source retail-price field; this Actor separates it from the supplied ordinary price. A missing ordinary price remains null rather than being replaced by a loyalty-only amount.

Multi-buy basket totals, meal deals and conditional rewards remain in the offer wording and promotion conditions. “Any 2 for £4” is not silently turned into a £4 single-item price or an unconditional £2 selling price. Asda Rewards is an advertised reward, not automatically a lower cash price. Rollback wording and supplied was-prices are retained independently.

### Pricing and spending limits

| Products delivered | Base | Bronze | Silver | Gold, Platinum, Diamond |
| --- | ---: | ---: | ---: | ---: |
| 10 | $0.0300 | $0.0285 | $0.0270 | $0.0240 |
| 40 | $0.1200 | $0.1140 | $0.1080 | $0.0960 |
| 100 | $0.3000 | $0.2850 | $0.2700 | $0.2400 |
| 1,000 | $3.0000 | $2.8500 | $2.7000 | $2.4000 |

Add $0.0035 once after the first useful product is delivered and the minimum $0.00005 platform start fee. Product prices are $0.003 base, $0.00285 Bronze, $0.0027 Silver and $0.0024 Gold. The successful-snapshot fee does not apply to empty runs. The small platform start fee can still apply. Optional details and the free comparison output add no product fee.

One charged product means one distinct retailer, country, relevant store/price-region context and product ID during a run. Notes, empty searches, duplicates, retries, summaries and rows with neither a price nor a dated offer have no product charge. A new scheduled run collects a new observation and charges its newly delivered products again.

The spending limit is checked before saving a useful row, including the first row's snapshot fee. A budget that covers setup alone produces no snapshot charge. Delivery and acknowledged charges survive restarts; an already delivered product is reconciled rather than charged a second time. Keep the run's retained storage available when resuming it.

### Monitor prices every day

Save a task containing stable searches, category links or product IDs. In Apify Console, create a schedule, choose that task, select the frequency and timezone, and attach a completed-run webhook to your workflow. The Actor does not create schedules itself. A database, spreadsheet, Make, Zapier or n8n workflow can receive each dataset and its SUMMARY.

### API and automation

Use your own Apify token to start a run, then retrieve the dataset and SUMMARY from the returned storage IDs.

```bash
curl -X POST 'https://api.apify.com/v2/acts/vant47~uk-supermarket-prices-scraper/runs' \
  -H 'Authorization: Bearer YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"searchTerms":["milk"],"maxItemsPerRetailer":10,"maxItems":40}'
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("vant47/uk-supermarket-prices-scraper").call(
    run_input={"searchTerms": ["coffee"], "maxItemsPerRetailer": 10, "maxItems": 40}
)
rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())
summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SUMMARY")
```

### Use with AI agents (MCP)

Connect your agent to `https://mcp.apify.com`. Ask it to compare UK supermarket prices for a named search term at Tesco, Sainsbury's, Asda and Morrisons, with an explicit product cap. Ask it to read SUMMARY, separate ordinary and loyalty prices, preserve pack sizes and units, and inspect COMPARISON. For local availability questions, the agent must check the scope and verification fields before presenting a local-stock claim.

### Limits

This independent tool reads public signed-out online catalogues. It is not an official retailer service. It does not log in, accept account cookies, solve CAPTCHAs, read orders or access personalized loyalty offers. It does not verify checkout totals, delivery fees, substitutions, weighted final totals or account eligibility.

Postcodes do not establish the nearest serving store or store-specific prices. `priceScope` remains online and `priceStoreVerified` remains false. Local `inStock` is null when a postcode has no verified store context. Asda can expose published stock flags for an explicit store number, but these are not shelf quantities or proof of local price. The default Asda store is the signed-out website's catalogue context, not a postcode-resolved choice.

Barcodes are limited to explicit labelled source evidence. Image identifiers, padded product numbers, supplier groups and SKUs are not automatically GTINs. Morrisons often supplies no barcode. Ratings, brands, pack sizes and labels vary by product. Unpublished local reductions, reduced-to-clear stickers and complete historical backfills are unavailable. Scheduled snapshots build your own history from their observation dates.

Search results can include related products. The Actor does not promise exact basket matching, a full catalogue from one search or all future source availability. Paged sources and retailer relevance can change during collection. Refusals receive paced retries, and final failures are visible in SUMMARY. Unsupported category paths receive a note. A shared search term alone does not establish an equivalent product across retailers.

### FAQ

**Can I read all four supermarkets in one run?** Yes. Omit retailers or select all four, and set caps that allow products from each.

**Are loyalty offers mixed into the ordinary price?** Single-item loyalty amounts are separate. Multi-buy and conditional amounts retain their source wording rather than replacing ordinary price.

**Does a postcode choose a local store?** These anonymous catalogue routes do not verify that selection. Postcodes remain context; local availability is not fabricated.

**What happens if one source fails?** Useful products from the other retailers remain available, with failures and free notes identified per retailer in SUMMARY.

UK grocery prices and supermarket price comparison across Tesco, Sainsbury's, Asda and Morrisons, with ordinary prices, loyalty offers, source dates and consistent retail-family fields.

# Actor input Schema

## `retailers` (type: `array`):

Choose tesco, sainsburys, asda or morrisons. Empty selects none. Unknown names produce free notes. Omit for all four.

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

Each term, such as milk or coffee, is searched at every selected retailer. Leave empty for product IDs or URLs only.

## `categoryUrls` (type: `array`):

HTTPS grocery category or promotion links. Each URL is routed only to its retailer. Unsupported paths produce free notes.

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

Optional HTTPS links from the four selected retailers. Each URL is read only from its own retailer.

## `productIds` (type: `array`):

With multiple retailers, use retailer-prefixed IDs such as tesco:254656543 or asda:1000380729776. With one retailer, plain source IDs are accepted. IDs are not barcodes.

## `postalCodes` (type: `array`):

UK postcode context, such as SW1A 1AA. These signed-out online catalogues do not establish serving stores, local prices or postcode stock. Repeating postcodes does not multiply national observations.

## `locations` (type: `array`):

Same postcode context as postalCodes. Both lists are merged and deduplicated. No default list overrides a supplied list.

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

Asda published stock flags may use asda:4565. Plain Asda IDs work when only Asda is selected. Other retailers cannot select a serving store anonymously and are skipped with a free note. With multiple retailers, unprefixed store IDs are invalid.

## `maxItemsPerRetailer` (type: `integer`):

A ceiling on unique product rows, including free unpriced rows when enabled. Product pricing is $0.003 each, plus one $0.0035 successful snapshot fee and the platform start fee.

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

A ceiling on unique product rows, including free unpriced rows when enabled. Product pricing is $0.003 each, plus one $0.0035 successful snapshot fee and the platform start fee.

## `maxItemsPerSearch` (type: `integer`):

Optional cap per term, category or deals input within a retailer. Defaults to maxItemsPerRetailer. Both caps apply; the smaller remaining cap wins.

## `dealsOnly` (type: `boolean`):

Keep source-advertised promotions, loyalty offers or Rollback. Multi-buy totals are not single-item prices.

## `includeDetails` (type: `boolean`):

Add supplied ingredients, nutrition and product metadata with no extra product fee. Adds paced source calls.

## `includeUnpriced` (type: `boolean`):

Off by default. Rows with neither a numeric price nor a dated offer are free. Some retailers omit such products at source.

## `priceRegion` (type: `string`):

EN, SC, WA or NI. Applies only to Asda; postcodes do not override it or verify store prices.

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

Datacenter first, residential after refusal. An explicit country is retained during fallback; explicit disable, proxy groups and custom URLs stay fixed.

## Actor input object example

```json
{
  "retailers": [
    "tesco",
    "sainsburys",
    "asda",
    "morrisons"
  ],
  "searchTerms": [
    "milk"
  ],
  "postalCodes": [
    "SW1A 1AA"
  ],
  "maxItemsPerRetailer": 10,
  "maxItems": 40,
  "dealsOnly": false,
  "includeDetails": false,
  "includeUnpriced": false,
  "priceRegion": "EN",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `products` (type: `string`):

No description

## `comparison` (type: `string`):

No description

## `comparisonDataset` (type: `string`):

No description

## `deals` (type: `string`):

No description

## `summary` (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 = {
    "retailers": [
        "tesco",
        "sainsburys",
        "asda",
        "morrisons"
    ],
    "searchTerms": [
        "milk"
    ],
    "postalCodes": [
        "SW1A 1AA"
    ],
    "maxItemsPerRetailer": 10,
    "maxItems": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("vant47/uk-supermarket-prices-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 = {
    "retailers": [
        "tesco",
        "sainsburys",
        "asda",
        "morrisons",
    ],
    "searchTerms": ["milk"],
    "postalCodes": ["SW1A 1AA"],
    "maxItemsPerRetailer": 10,
    "maxItems": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("vant47/uk-supermarket-prices-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 '{
  "retailers": [
    "tesco",
    "sainsburys",
    "asda",
    "morrisons"
  ],
  "searchTerms": [
    "milk"
  ],
  "postalCodes": [
    "SW1A 1AA"
  ],
  "maxItemsPerRetailer": 10,
  "maxItems": 40
}' |
apify call vant47/uk-supermarket-prices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vant47/uk-supermarket-prices-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/9XvQ79p6SGPqKoGjY/builds/mTh9AeNTB5soUX3bX/openapi.json
