How to Monitor UK Grocery and Supermarket Prices Responsibly
By the ProxyV4 Engineering Team · Updated:
UK grocery price monitoring means tracking shelf prices, loyalty-member prices, unit prices and promotions for a defined basket across British supermarkets, at a pace that respects each retailer's terms. Start with licensed or official data where it exists; if you collect public product pages yourself, you need UK-specific parsing and a British network location.
What UK grocery price monitoring has to capture
A British grocery price is rarely a single number. A useful record for each product holds the regular price, any loyalty-member price, the unit price, any multibuy or meal-deal mechanic, the pack size and the date. Without those fields, a price tracker reports changes that are really promotions, pack-size changes or member-only offers.
Loyalty prices are a second shelf price
Several large UK grocers show two prices: a standard price and a price for loyalty members, such as Tesco Clubcard Prices and Sainsbury's Nectar Prices. Recording only the standard price overstates what many shoppers pay; recording only the member price understates it for everyone else. Store both, with a flag for which is which.
Unit pricing and the Price Marking Order
Grocers in Great Britain show unit prices (per kg, per litre, per 100 g or per item) under the Price Marking Order 2004. Amendments made in 2024 and 2025 tighten the rules, including showing unit prices for loyalty prices as well as standard prices; check the Department for Business and Trade guidance for when each change applies. Unit prices are what let you spot a smaller pack at an unchanged price, so parse them as numbers with units rather than as text.
VAT and other UK details your parser must handle
- Consumer prices include VAT: most food is zero-rated, while items such as confectionery, crisps, soft drinks, alcohol and household goods are generally standard-rated. The shelf price already includes it; do not add VAT again.
- Pounds and pence: prices appear as
£1.25or85p, so normalize both to one unit. - Multibuys and meal deals: "3 for £5" or "any 2 for" mechanics need the qualifying quantity and the effective per-item price, not a single number.
- Loose versus packed: produce sold per kg and fixed-weight packs must be compared on unit price.
- Postcode-based catalogues: online grocers often ask for a postcode or delivery slot, and availability and some prices depend on the store or depot that serves it. Fix one postcode per retailer and record it.
Check official and licensed data before you collect anything
Start with what you can use without collecting it yourself. The Office for National Statistics publishes consumer price statistics, and commercial data providers license grocery pricing data collected under agreements with retailers or under their own terms. If you work with a retailer directly, ask about feeds or partner programmes. These routes are usually cheaper than maintaining your own crawler and come with clear permission.
If you still need your own collection, read each supermarket's website terms and robots.txt first. Many retail sites restrict automated access in their terms; if a site's terms do not allow it, do not collect from that site. Collect only public product data: no logged-in pages, no customer reviews tied to names, no personal data.
Polite collection for a small, permitted basket
Where collection is permitted, keep it small and slow: a defined basket of products, a few requests per minute at most, run once a day, ideally outside busy shopping hours. Identify your crawler honestly in the User-Agent with a contact address. When a site answers with 429 (Too Many Requests) or 503, slow down and stop the run; do not retry harder or switch addresses. Our retry and backoff guide explains the pattern in more depth.
# pip install requests
import time
import urllib.robotparser
import requests
PROXY = 'http://USER:PASS@IP:PORT'
UA = 'BasketPriceResearch/1.0 (contact: [email protected])'
BASE = 'https://www.example.co.uk'
PATHS = ['/product/semi-skimmed-milk-2-pints', '/product/white-bread-800g']
rp = urllib.robotparser.RobotFileParser()
robots = requests.get(BASE + '/robots.txt', headers={'User-Agent': UA},
proxies={'http': PROXY, 'https': PROXY}, timeout=15)
rp.parse(robots.text.splitlines())
session = requests.Session()
session.proxies = {'http': PROXY, 'https': PROXY}
session.headers.update({'User-Agent': UA, 'Accept-Language': 'en-GB,en;q=0.9'})
for path in PATHS:
url = BASE + path
if not rp.can_fetch(UA, url):
print('Disallowed by robots.txt, skipping:', url)
continue
r = session.get(url, timeout=15)
if r.status_code in (429, 503):
print(f'Got {r.status_code}; stopping this run. Retry-After:', r.headers.get('Retry-After'))
break
print(r.status_code, url, len(r.text), 'bytes')
time.sleep(20) # a few requests per minute at mostParsing is retailer-specific and changes when sites are redesigned, so keep parsers in small, tested functions and alert when a field comes back empty instead of storing a zero.
Where a ProxyV4 UK IPv4 proxy fits price monitoring, and where it does not
If your team or servers are outside Britain, a private UK IPv4 proxy from ProxyV4 gives your permitted collector or your analysts' browser a datacenter address in the United Kingdom, so sites show British pages, pounds and UK delivery options rather than an international notice. Each IP has one tenant for the whole term and stays the same while active and on renewal, which keeps a fixed postcode session and your logs consistent. Traffic is unmetered, and every proxy supports HTTP(S) and SOCKS5 with username and password or IP whitelist login for up to 3 public IPv4 addresses.
It does not fit large-scale collection across whole catalogues, any plan that depends on rotating through many IPs, or work that needs a mobile connection. In the UK ProxyV4 sells private datacenter IPv4 and, now, static ISP, with no city choice; rotating and mobile proxies are not on sale. Some retailers may also handle datacenter traffic differently from home broadband, which is another reason to prefer licensed data.
For a small basket one IP is often enough. See live prices and the United Kingdom proxy page; if a proxy cannot connect or shows the wrong country, the refund policy credits your balance.
Turning raw prices into a usable UK basket
Match products across retailers with a shared key: brand, product name, pack size and unit. Own-label items rarely match exactly, so group them by tier (value, standard, premium) and compare on unit price. Store each observation as a row with retailer, postcode, date, regular price, member price, promotion text and unit price, then compute basket totals for shoppers with and without loyalty cards.
Review the basket every few months. Ranges change, pack sizes shrink and new own-label lines appear, and a basket that is not maintained slowly stops representing what people buy.
Frequently asked questions
Is it legal to monitor UK supermarket prices?
Comparing publicly displayed prices is common, but each site's terms, the Computer Misuse Act and UK GDPR still apply. Prefer licensed data, follow terms and robots.txt, and take legal advice for a commercial product.
Should I track Clubcard and Nectar prices separately?
Yes. Store the standard price and the member price as separate fields so basket totals can be shown for both kinds of shopper.
Why do I see different prices from outside the UK?
Online grocers usually serve British customers and may show an international notice or no delivery options to foreign visitors. Prices and availability can also depend on the postcode you set.
What should my crawler do on a 429 response?
Slow down and stop the run, honoring any Retry-After header. Do not retry harder or switch IPs to keep collecting.
Is one UK IP enough for a grocery basket tracker?
For a small daily basket, usually yes. Traffic is unmetered and you can order a single IP, then add more only if your permitted workload grows.
Unmetered British IPv4 for polite price checks
Run your permitted UK basket checks from a private British IPv4 with unmetered traffic and the same address on renewal. Start with one IP.
See UK prices