# UK Supermarket Prices: Tesco & Sainsbury's (`varnmill/uk-supermarket-prices`) Actor

Search public Tesco and Sainsbury's shelf prices in GBP. Export stable product IDs, unit prices, source URLs and optional price changes. First page only; no login or proxy.

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

## Pricing

from $0.35 / 1,000 delivered 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

On November 8, 2026 a public-page sample returned Tesco product `302529973`, Biotiful Gut Health Kefir Milk Drink Original 500ml, at **£2.60**, with its Clubcard promotion kept separately from the shelf price. Tesco's milk first page contained 25 products and Sainsbury's contained 55. These are dated source observations, not checkout guarantees.

Export public first-page keyword results from Tesco, Sainsbury's and opt-in Morrisons into one GBP product table, or compare them with a named price baseline. Start with one keyword per run and choose one or more retailers. The default remains Tesco and Sainsbury's. This is a limited initial release; paid demand is unproven.

### Input

```json
{"retailers":["tesco","sainsburys"],"queries":["milk"],"maxItemsPerQuery":20,"maxItems":100,"onlyChanged":false}
```

Download JSON or CSV from the dataset. The OUTPUT record lists successful searches, source errors, unchanged products and limit status. A partial source failure keeps useful rows from the other retailer. An all-source failure fails the run; an explicit zero-result search succeeds with no product charge.

### Output and limits

Rows include retailer, stable productId, name, GBP price, unitPriceText, product URL, search sourceUrl, timestamp and explicit nulls. `coverage` is `first-page-only` and `complete` is always false. `priceScope` is `online-default-location`; prices may differ by store, delivery location, time and membership. Clubcard text does not replace Tesco's ordinary price. Sainsbury's membership promotions are not extracted; unknown promotion fields stay null.

Only the public main search list is read. Recommendations outside that list are excluded. Retailer relevance can include sponsored, fuzzy or related matches; no exact basket matching is promised. One keyword per run, up to two simultaneous retailer requests. No pagination, full catalogue, postcode/store selection, details, basket totals or price history import. Asda and Aldi UK are unsupported. No login, CAPTCHA solving or residential proxy. Source refusals and changed page structures are errors, not claims of zero stock. There are no automatic source retries.

### Morrisons first-page search

Select `"retailers":["morrisons"]` with `"queries":["bread"]` to use Morrisons. On November 10, 2026 a local public-page sample contained 50 products, including `102369773`, Morrisons White Medium Sliced Bread 800g, at £0.74. Its displayed 92.5p/kg becomes numeric `unitPrice:0.925` in GBP; `unitPriceText` rounds to two decimal places. This is a dated observation, not a price or availability guarantee.

Morrisons can reference hundreds of matches while embedding only the first 50 product entities. `sourceLoadedProducts` counts parsed entities before your requested ceiling; `sourceUnloadedReferences` counts unique referenced entities that were not loaded. `sourceTotalResults` is the site's reported count and `hasNextPage` indicates its pagination token. None of these establishes a complete catalogue. Duplicate references are removed and only query-linked, loaded products with source links are delivered. Smaller limits return fewer rows; no later pages are fetched. Sponsored products can appear and are marked `isSponsored`. Promotions remain null. GBP and GBX (pence) unit prices are normalized to GBP; unsupported unit currencies stay null.

An explicit empty search succeeds without product charges. Missing or contradictory search data and source refusals are errors, never evidence that items are out of stock. Existing change-only and spending-cap behavior also applies to Morrisons.

### Change-only runs

Set `onlyChanged:true` and a unique `watcherName`. The first run establishes a baseline; subsequent runs emit new or changed observed products. Keep the same retailers, keywords and order for that watcher. A missing item is unknown coverage, never automatically out of stock or delisted. The same product appearing in multiple queries is output once per run, under the first completed query.

Named watcher runs are serialized. Only delivered products update the baseline. Spending caps leave undelivered products available next time. A resurrected run recovers delivered rows from its retained dataset and does not charge them again; start a new run if changing its input. Do not delete retained datasets before recovery. Cancellation may leave partial output; inspect OUTPUT and run status before comparing observations. Manual retries are separate runs and may charge rows again in snapshot mode.

### Pay-per-event pricing

| Event | Free/base | Bronze | Silver | Gold / Platinum / Diamond |
|---|---:|---:|---:|---:|
| Delivered product, per 1,000 | $0.50 | $0.45 | $0.40 | $0.35 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

No report fee or charge for unchanged products. Platform usage is included. Forty delivered products have a base event value of $0.02005 including one start. The minimum spending limit is $0.00005; this is a ceiling you choose, not a minimum invoice. Increase it to cover the products you request. On November 9, an owner validation run delivered 40 products in 4.340 seconds; source speed and counts vary. Owner tests are expenses, not revenue. Empty or unchanged runs charge only the start event, and failed runs can still charge already delivered rows. A manual retry incurs a new start and may charge snapshot rows again.

### FAQ

**Does this cover every matching product?** No. It exports only the public first page, with the requested per-query ceiling.

**Are prices verified at checkout?** No. These are public displayed shelf prices with explicit scope.

**Can I schedule a price watch?** Use an Apify task with a consistent watcher name and input scope. This actor does not create schedules automatically.

**Why did I receive fewer products?** The first page can be smaller than your limit, duplicate IDs are removed, unchanged products may be skipped, a spending cap may be reached, or a source may fail. Review OUTPUT.

### Changelog

- November 10, 2026: opt-in Morrisons keyword search in the existing GBP table and price watcher. Explicit loaded/unloaded first-page limits and GBP/pence unit-price normalization. Existing default input and prices retained.

- 0.1, November 9, 2026: Tesco/Sainsbury first-page search, GBP normalized table and delivered-row price watcher. Retained datasets recover changed-price baselines after interrupted saves while preserving newer observations. One keyword per run keeps request and cost bounds explicit.

# Actor input Schema

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

Choose Tesco, Sainsbury's and/or Morrisons. Defaults remain Tesco and Sainsbury's. Asda and Aldi UK are unsupported.

## `queries` (type: `array`):

Exactly one keyword per run. Retailer relevance controls matches; returned products are not guaranteed exact basket matches.

## `maxItemsPerQuery` (type: `integer`):

Maximum first-page products per retailer; page sizes vary. Morrisons currently embeds up to 50 loaded products even when it references more. No pagination.

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

Maximum delivered products across all searches in this run. Duplicate product IDs per retailer are billed once.

## `onlyChanged` (type: `boolean`):

Compare the first search page with the named baseline. Charge only delivered new/changed products plus the start event. Missing products are unknown, never delisted.

## `watcherName` (type: `string`):

Required for change-only runs. Reuse the same name and exact retailer/query order to share a baseline; use a new name for a different scope.

## Actor input object example

```json
{
  "retailers": [
    "tesco",
    "sainsburys"
  ],
  "queries": [
    "milk"
  ],
  "maxItemsPerQuery": 20,
  "maxItems": 100,
  "onlyChanged": false
}
```

# Actor output Schema

## `dataset` (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"
    ],
    "queries": [
        "milk"
    ],
    "maxItemsPerQuery": 20,
    "maxItems": 100,
    "onlyChanged": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("varnmill/uk-supermarket-prices").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",
    ],
    "queries": ["milk"],
    "maxItemsPerQuery": 20,
    "maxItems": 100,
    "onlyChanged": False,
}

# Run the Actor and wait for it to finish
run = client.actor("varnmill/uk-supermarket-prices").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"
  ],
  "queries": [
    "milk"
  ],
  "maxItemsPerQuery": 20,
  "maxItems": 100,
  "onlyChanged": false
}' |
apify call varnmill/uk-supermarket-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,varnmill/uk-supermarket-prices"
        }
    }
}
```

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/ku7PXTGVRO9JSIlCf/builds/ixAQ1h76TAjMzmDbU/openapi.json
