UK supermarket price comparison by barcode and product name

One 415g can of baked beans priced at eight UK supermarkets: Asda 1.38 pounds, Tesco, Sainsbury's, Morrisons, Waitrose, Ocado and Iceland 1.40 pounds, Co-op 1.80 pounds

To compare a product across UK supermarkets you first have to find the same product in each shop. The shops name it differently, and only some of them publish a barcode.

In our test on 27 November 2026, a third of the matches came from the barcode and two thirds from the product name. A comparison that only uses barcodes misses four of the nine shops that returned products.

Compare supermarket prices in the UK

Our UK Grocery Price Matrix runs our scrapers for Tesco, Sainsbury's, Asda, Morrisons, Waitrose, Aldi, Ocado, Iceland, Co-op and Lidl at the same time. You give it product names. It returns one row per product per shop, with the price, any promotion and loyalty price, and whether the shop carries the product.

10UK supermarkets searched
306price rows from 4 searches
5 minfor the whole run
$0.003per price row

The input for the run in this post. The second search is the barcode of the Heinz beans:

{
    "searchQueries": [
        "heinz baked beans",
        "5000157024671",
        "pg tips tea bags",
        "cadbury dairy milk"
    ],
    "maxItemsPerSource": 15
}

The same product under different names

This is how the nine shops listed the 415g can of Heinz baked beans in the same run:

ShopProduct name on the shop's sitePriceMatched by
AsdaBaked Beans 415g£1.38Barcode
TescoHeinz Beans in Tomato Sauce 415g£1.40Barcode
Sainsbury'sHeinz Baked Beans in a Rich Tomato Sauce 415g£1.40Name
MorrisonsHeinz Tinned Baked Beans 415g£1.40Name
WaitroseHeinz Baked Beans£1.40Name
OcadoHeinz Tinned Baked Beans Single Can£1.40Name
IcelandHeinz Baked Beans 415g£1.40Name
Co-opHeinz Baked Beans 415g£1.80Barcode
AldiNot found--

Asda leaves the brand out of the name. Waitrose leaves the size out. A plain text match on the name would miss both.

Barcode matching

Tesco, Sainsbury's, Asda, Waitrose and Co-op publish a barcode (EAN) on every product. Morrisons, Ocado, Iceland and Aldi publish none, so those shops can only be matched by name.

A barcode is also not always the same in every shop. Tesco, Asda and Co-op list the beans under barcode 5000157024671. Sainsbury's and Waitrose list the same can under other barcodes (5000157060891 and 5000157004031). The actor matched those two by name.

  • Barcode first. Rows with the same EAN are grouped. The row says "matchType": "ean".
  • Name next. Rows without a matching barcode are compared on brand, product words and pack size. The row says "matchType": "name".
  • Pack sizes stay apart. The 415g can, the 4 x 415g pack and the 6 x 200g pack came back as separate products.

Over the whole run, 100 price rows were matched by barcode and 206 by name.

Prices across the shops

The run found 153 products. 37 were sold by at least three shops and 14 by at least five. Some of them:

ProductShopsCheapestDearest
Heinz Beans in Tomato Sauce 415g8Asda £1.38Co-op £1.80
Heinz Baked Beans 4 x 415g8Iceland £3.00Waitrose £4.00
PG Tips Original 80 Tea Bags 250g8Tesco £3.00Co-op £4.20
Cadbury Dairy Milk 180g7Asda £2.00Iceland and Waitrose £3.00
Heinz Baked Beans 6 x 415g7Ocado £4.50 on offerCo-op £6.85

Every row carries cheapestRetailer and priceSpreadPct for its product, so you can sort a basket by the widest gap. One Tesco row with a Clubcard price:

{
    "query": "pg tips tea bags",
    "productName": "PG Tips Original Black Tea 240 Tea Bags 750g",
    "brand": "PG TIPS",
    "ean": "5063270132456",
    "retailer": "Tesco",
    "price": 6.5,
    "promoPrice": null,
    "loyaltyPrice": 5,
    "loyaltyScheme": "Tesco Clubcard",
    "pricePerUnit": "£8.67/kg",
    "unitPriceValue": 8.67,
    "unitPriceUnit": "kg",
    "available": true,
    "inStock": true,
    "matchType": "ean",
    "cheapestRetailer": "Waitrose",
    "priceSpreadPct": 30,
    "stableGroupId": "gtin-5063270132456"
}

Missing products

When a shop does not carry a product, you still get a row for that shop with "available": false and an absenceReason. That way you can tell a product the shop does not sell apart from a shop that was not checked. These rows are not charged.

Loyalty prices and offers

price is the shelf price without a card. Offers go in promoPrice, and card prices go in loyaltyPrice with the scheme name (Tesco Clubcard, Sainsbury's Nectar, Morrisons More Card, Co-op Member, Ocado Smart Pass). In this run 23 rows had an offer price and 27 had a loyalty price. cheapestRetailer is worked out on the price without a card.

Limits

  • Lidl returned no products in this run. All Lidl rows came back as not found. We filed it as a bug in the actor.
  • Search by product name. A barcode typed in as the search term found the beans at one shop only (Co-op), against eight shops for the name. We filed that too. Until it is fixed, search by name and read the barcode from the result.
  • Aldi has few branded products online. Aldi returned 18 rows, mostly PG Tips. It sells its own brands for most products.
  • Unit prices are copied as the shop shows them. Iceland showed £2.41/kg for the 415g can at £1.40, where the other shops showed £3.37/kg. Compare on price and pack size when the unit price looks off.
  • Name matching can be wrong. It is a fuzzy match. Check the matchType column before you use a price gap in a report.
  • Terms of use. Read each supermarket's terms of use before you use the data in a product.

Cost

The actor charges $0.003 per price row plus $0.10 per GB of memory at the start of a run. Rows for missing products are free. The run in this post used 1 GB and returned 306 price rows, so it cost about $1.02.

If you need a basket priced every week, we also run managed feeds: hello@studioamba.dev.

The actor is on the Apify Store: apify.com/studio-amba/uk-grocery-price-matrix