# Tesco Scraper: Clubcard Prices, Offers & Stock (`moggedhq/tesco-clubcard-price-scraper`) Actor

Get Tesco UK grocery prices for milk, coffee and categories: regular and Clubcard prices, offer dates, unit price, brand, GTIN and catalogue stock. UK and Ireland product links supported. About $0.0025 per product plus $0.0035 per successful snapshot. No login.

- **URL**: https://apify.com/moggedhq/tesco-clubcard-price-scraper.md
- **Developed by:** [mogged](https://apify.com/moggedhq) (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.00 / 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

## Tesco Scraper: Clubcard Prices, Offers & Stock

For retail price analysts, brands, comparison services and grocery researchers monitoring Tesco online prices and promotions. Collect the ordinary online price, single-product Clubcard price, full multi-buy wording, promotion dates, unit price, source-labelled GTIN, brand, category and anonymous catalogue availability. About **$0.0025 per delivered product**: **20 products cost $0.05**, plus **$0.0035 per successful snapshot** and a minimum **$0.00005 Actor start charge**. No Tesco login or retailer API key is required.

Use searches, known product numbers or Tesco category and product links. UK products use GBP and Ireland products use EUR. The common field names match the retail Actor family, making country snapshots easier to combine with other grocery datasets. Every observation names its price and availability scope explicitly.

### Understand the prices and stock

`price` is the ordinary current online catalogue price. `memberPrice` and `clubcardPrice` hold an explicitly advertised single-product Clubcard amount. A Clubcard offer never silently replaces the ordinary price. `regularPrice` holds a supplied before-discount value when one exists; otherwise it repeats the current ordinary price. There is no implied historical price comparison.

A promotion such as “Any 2 for £4 Clubcard Price” stays in `promotions` and `offerText`. Its basket total is not the price of one product, so `memberPrice` stays null. Keep its wording, dates and attributes when analysing baskets. Meal deals and conditional offers also require their source conditions. The Actor does not calculate personalized checkout totals or assume that a shopper qualifies for an offer.

Every row has `priceScope: "online"`. Anonymous catalogue availability is a public product-listing signal, recorded separately as `catalogueInStock` and `catalogueStatus`. It is not an audited physical shelf quantity. When a postcode is supplied, `location` echoes a single requested postcode and `requestedLocations` retains all requested locations, but `availabilityPostcodeVerified` remains false and `inStock` is null. Supplying several postcodes does not multiply the same national observation or its product charge.

### What you get

The standard retail fields follow a readable verdict. Source values that are absent remain null. GTINs remain strings with leading zeros; a product number is never relabelled as a barcode.

| Field | Meaning |
| --- | --- |
| `verdict` | Product, ordinary price, optional Clubcard price and catalogue availability in a readable line. |
| `retailer`, `country`, `currency` | Tesco, GB/GBP or IE/EUR. |
| `storeId`, `storeName` | Null where no serving store has been verified. |
| `location`, `requestedLocations` | Requested postcode context, independent of availability verification. |
| `productId`, `sku`, `tpnc`, `tpnb` | Tesco internal product identifiers, preserved separately. |
| `gtin`, `gtinSource` | Tesco-labelled barcode with a valid check digit, and its provenance. |
| `title`, `brand`, `size`, `packSize` | Source title, explicit brand and supplied package size. |
| `price`, `regularPrice`, `onSale` | Ordinary online price, supplied base price and promotion presence. |
| `promoText`, `promoType`, `promoStart`, `promoEnd` | Main offer text, type and source timestamps. |
| `memberPrice`, `memberProgram`, `clubcardPrice` | Single-product membership price and Clubcard programme. |
| `unitPrice`, `unitOfMeasure` | Published ordinary unit price and its unit. |
| `inStock`, `stockLevel` | Catalogue availability without postcode selection, or null for postcode-specific stock and quantities. |
| `rating`, `reviewCount` | Published aggregate review rating and count, where supplied. |
| `category`, `superDepartment`, `department`, `aisle`, `shelf` | Source taxonomy names and readable full path. |
| `superDepartmentId`, `departmentId`, `aisleId`, `shelfId` | Source category identifiers for repeatable monitoring. |
| `url`, `imageUrl`, `scrapedAt` | Product page, public image and UTC observation timestamp. |
| `promotions` | All source offer texts, start/end dates, attributes and supplied discount amounts. |
| `offerText`, `offerStart`, `offerEnd` | Tesco-specific aliases of the main promotion. |
| `aldiPriceMatch` | True only when a returned promotion explicitly says Aldi Price Match; otherwise null. |
| `isTescoFinest`, `isOwnBrand`, `isNew` | Title/brand-derived Finest and own-brand flags, and source new-product flag. |
| `details` | Optional pack size, ingredients and nutrition from product-detail reads. |
| `priceScope`, `availabilityScope`, `availabilityPostcodeVerified` | Scope and verification evidence to preserve in downstream reports. |
| `sourceType`, `sourceInput`, `sourceUrl` | Selection and first-party data endpoint used for the observation. |

The overview dataset view groups title, ordinary price, regular price, promotion, member price, unit price, stock scope and postcode. The deals view emphasizes offer records. `DEALS` is a free JSON output containing only products with promotions. `SUMMARY` records product totals, catalogue count, deals, duplicate exclusions, requested locations, source outcomes, notes and any spending-limit stop.

Product rows have `recordType: "PRODUCT"`. Explanations have `recordType: "NOTE"` and no product charge. A search with no matches is recorded as `no-matches`, which is different from a source request that failed.

### Start in three steps

1. Enter search terms, Tesco product numbers or supported page links.
2. Choose a country catalogue, a product cap and whether to add details.
3. Run, review SUMMARY and export JSON, CSV or Excel from the dataset.

The form prefill searches milk in the UK catalogue, retains requested postcode SW1A 1AA and caps output at 20 products. The postcode is context, not a verified serving-store selection. The default run returns ordinary and Clubcard prices in separate fields so a first export can be used without reconstructing offer text.

### Observed test results

On 11 November 2026, the exact form prefill returned 20 unique milk products with six promotions in 8.589 seconds. A separate search snapshot across several terms delivered 1,200 unique products after an intentional reboot, with 1,200 product charges and one snapshot charge. Ten independent live product-detail checks matched the search output for titles, ordinary prices, unit prices and source-labelled GTINs. These observations describe those test runs; future source availability can change.

### Inputs and examples

| Input | Behaviour |
| --- | --- |
| `region` | UK by default; IE selects Ireland. A supplied URL selects its own country. |
| `searchTerms` | A list such as `["milk", "coffee"]`; each term is a separate source. |
| `startUrls` | Tesco HTTPS product, search, top-level category or promotions links. |
| `productIds` | TPNC numbers such as `["254656543"]`, in the selected region. |
| `locations` | Optional UK postcodes or Irish Eircodes retained as context. |
| `storeIds` | A supplied exact store produces a free explanatory note because anonymous serving-store selection is unavailable. |
| `maxItemsPerSearch` | Maximum new products from each source, default 20 and maximum 5,000. |
| `maxItems` | Global distinct product/country limit, default 20 and maximum 10,000. |
| `dealsOnly` | Retain only rows carrying source promotions. |
| `includeDetails` | Read product metadata in batches, with no extra product event fee. |
| `proxyConfiguration` | Default datacenter first, then GB residential after refusal; explicit buyer preferences are honoured. |

The Actor uses only these canonical cap names. `maxResults`, `max_items` and similar alternate names are not supported. Set `maxItems` and `maxItemsPerSearch` explicitly when creating an API job. A schema default cannot override an undocumented alias because aliases are not interpreted.

A two-search online price sweep costs at most $0.10 at the base product price, plus the $0.0035 successful-snapshot fee and minimum start charge:

```json
{
  "region": "UK",
  "searchTerms": ["milk", "coffee"],
  "maxItemsPerSearch": 20,
  "maxItems": 40
}
```

A top-level category example:

```json
{
  "startUrls": ["https://www.tesco.com/groceries/en-GB/shop/fresh-food/all"],
  "maxItemsPerSearch": 100,
  "maxItems": 100,
  "dealsOnly": true
}
```

Top-level category links use the current country taxonomy. For a more detailed shelf, use a Tesco URL whose `facet` query parameter contains the source category identifier. The output includes category IDs, so a repeatable job can retain the exact published identifier instead of guessing a name from a URL slug. Unsupported category paths receive a free note rather than an unrelated catalogue result.

For exact product monitoring:

```json
{
  "region": "UK",
  "productIds": ["254656543", "254656399"],
  "maxItems": 2,
  "includeDetails": true
}
```

Country-specific product numbers can differ. A missing product in Ireland is not replaced by the UK product or a nearest text match. If a product is absent, its source outcome and explanatory summary remain available without a product charge.

### Pricing and spending limits

One product means one distinct TPNC in one country catalogue during this run. Overlapping terms, links and postcode context are deduplicated. The same product in UK and Ireland is a separate country observation when both are actually returned. Every scheduled run collects a new observation and charges for its delivered products again.

| Products | Base | Bronze | Silver | Gold |
| --- | --- | --- | --- | --- |
| 20 | $0.0500 | $0.0475 | $0.0450 | $0.0400 |
| 100 | $0.2500 | $0.2375 | $0.2250 | $0.2000 |
| 1,000 | $2.5000 | $2.3750 | $2.2500 | $2.0000 |

Add $0.0035 once per successful snapshot and the minimum $0.00005 platform start charge. A snapshot fee is charged only when the first useful product is saved; empty runs have no snapshot fee. Base pricing is $0.0025 per product, Bronze $0.002375, Silver $0.00225 and Gold $0.002. Product details have no additional product fee. Failed requests, empty matches, duplicate products, notes and summaries have no product charge. The platform start fee can still apply to a run that produces no products.

Apify's maximum total charge is checked before a new row is delivered. If the remaining allowance cannot cover another product, the Actor stops cleanly and marks SUMMARY. The dataset and the acknowledged charge ledger are checked after a reboot so an already delivered product does not get a second product charge.

### Monitor prices every day

Save a task with stable product IDs or category identifiers. In Apify Console, create a schedule, select the task, choose the desired frequency and timezone, then attach a completed-run webhook to your database or workflow. Join snapshots using `country + productId`; retain `scrapedAt` as the observation time. Keep the ordinary price, Clubcard amount, full promotion conditions and scope columns separately.

Each scheduled run is a fresh snapshot with its own successful-snapshot fee. A daily schedule builds your own price history from fresh observations. It does not retrieve past Tesco prices. Treat a source failure as a missing observation rather than filling it with an old price. Check SUMMARY before accepting a catalogue snapshot, and distinguish no-matches from failed requests. Promotion dates are source timestamps and may mark the midnight boundary of the offer period.

Make, Zapier, n8n, Sheets and database workflows can consume the dataset and SUMMARY. Preserve barcodes as text in spreadsheets. A leading zero is part of the identifier. Use null-aware transformations so unavailable stock and an explicitly unavailable catalogue product do not collapse into the same value.

### API and automation

Use your own Apify token. Start the run, wait for completion, then retrieve its dataset and the SUMMARY key-value record.

```bash
curl -X POST 'https://api.apify.com/v2/acts/moggedhq~tesco-clubcard-price-scraper/runs' \
  -H 'Authorization: Bearer YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"searchTerms":["milk"],"maxItems":20}'
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("moggedhq/tesco-clubcard-price-scraper").call(
    run_input={"searchTerms": ["milk"], "maxItems": 20}
)
rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())
summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SUMMARY")
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('moggedhq/tesco-clubcard-price-scraper').call({
  searchTerms: ['coffee'], maxItems: 20, dealsOnly: true
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### Use with AI agents (MCP)

Connect to `https://mcp.apify.com` and ask for Tesco online prices, Clubcard offers, unit prices, barcodes and promotion dates. Supply country, search terms or exact products and a product cap. Ask the agent to inspect SUMMARY, retain null fields and keep multi-buy conditions separate from single-product prices. If postcode stock is required, the agent must read `availabilityPostcodeVerified` before presenting a local availability claim.

### Limits

This is an independent product-data tool, not an official Tesco service. Third-party marketplace products are excluded from the grocery snapshot. It does not log in, accept account cookies, solve CAPTCHAs, read orders or access personalized Clubcard offers. Online catalogue prices are not a promise of the final checkout amount. Delivery charges, substitutions, weighted final totals and account eligibility are outside coverage.

Anonymous access does not establish the postcode's serving store, local shelf stock or store-specific price. Postcodes are retained as context and do not change the source catalogue. `inStock` is null on postcode requests. Without postcodes, it reports only the anonymous catalogue's published availability. Quantities remain null.

Data fields vary by product and country. Pack size and label details can be missing even when price is present. Ratings and category metadata are not guaranteed for every product type. Aldi Price Match is true only when explicit promotion text supports it; absent labels stay null. Reduced-to-clear store stickers and unpublished local offers are unavailable. The result cap is a ceiling, not a guarantee that a search contains that many matching items.

Top-level grocery categories and explicit source facets are supported. Arbitrary deep URL slugs are not converted into guessed taxonomy IDs. Search and category snapshots can change while pages are collected. Source API changes, refusals and outages can interrupt future collection; retries are paced, and SUMMARY makes final failures visible. No scraper can guarantee uninterrupted future access.

### FAQ

**Does the ordinary price already include Clubcard?** The ordinary price and explicitly advertised single-item Clubcard price are separate. Read promotion wording before comparing a basket.

**Why is the member price null on a promotion?** It can be a multibuy, meal deal or conditional discount rather than a single-item price. The complete source offer remains in promotions.

**Are TPNB and TPNC barcodes?** No. They are retailer identifiers. GTIN uses only the source-labelled barcode value and is retained only if its check digit validates.

**Can I verify stock for a postcode?** Anonymous catalogue access does not verify the serving store. Postcodes are context, with local inStock left null.

**Are empty searches charged as products?** No. They have a no-matches outcome and no product event. The small platform start fee remains.

**Do details cost more?** There is no additional product charge. They add paced product-detail reads and supply ingredients, nutrition and package metadata where available.

**Can I combine UK and Ireland?** Yes, use country-specific URLs or separate country runs. Preserve currency and country when joining results; never compare numeric prices without their currency.

**How do I create history?** Schedule repeat runs and store the snapshots yourself, keyed by country, product ID and scrapedAt. Historical backfill is unavailable.

# Actor input Schema

## `region` (type: `string`):

UK uses GBP; Ireland uses EUR. Country in a URL chooses that URL catalogue.

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

Find products such as milk, chicken or coffee. Each term is searched at every selected store. Leave empty when using only URLs or product IDs.

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

HTTPS Tesco UK or Ireland search, product, category or promotions URLs. No account cookies or login are accepted.

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

Tesco TPNC product numbers, such as 254656543. TPNC and TPNB identifiers are not barcodes.

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

UK postcodes or Irish Eircodes are retained as requested context. Anonymous access cannot verify the serving store or postcode availability. Prices remain online catalogue prices; inStock is null when postcodes are supplied.

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

Exact store selection is unavailable anonymously. A supplied store ID produces a free note; remove storeIds to collect national online prices.

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

New product rows per search or category. A product found by multiple sources or postcodes is charged once per country.

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

Global unique product/country limit. $0.0025 per product plus $0.0035 per successful snapshot and a minimum $0.00005 platform start fee. Twenty products cost about $0.054.

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

Keep products carrying source promotions. Clubcard multi-buy totals remain in offer text and are not treated as single-item prices.

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

Add ingredients, nutrition and supplied pack size. No extra product fee.

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

Default datacenter selection first, then GB residential only after refusal. Explicit disable, country, groups or custom URLs are preserved.

## Actor input object example

```json
{
  "region": "UK",
  "searchTerms": [
    "milk"
  ],
  "locations": [
    "SW1A 1AA"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20,
  "dealsOnly": false,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `dealsView` (type: `string`):

No description

## `dealsOnly` (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 = {
    "searchTerms": [
        "milk"
    ],
    "locations": [
        "SW1A 1AA"
    ],
    "maxItemsPerSearch": 20,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("moggedhq/tesco-clubcard-price-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 = {
    "searchTerms": ["milk"],
    "locations": ["SW1A 1AA"],
    "maxItemsPerSearch": 20,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("moggedhq/tesco-clubcard-price-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 '{
  "searchTerms": [
    "milk"
  ],
  "locations": [
    "SW1A 1AA"
  ],
  "maxItemsPerSearch": 20,
  "maxItems": 20
}' |
apify call moggedhq/tesco-clubcard-price-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moggedhq/tesco-clubcard-price-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/ic5t7rwVFh1tngv4P/builds/XJ4GnkKBH3iFdqyPa/openapi.json
