# Tesco Scraper - Grocery Prices, Clubcard Deals & Unit Prices (`scrapewise/tesco-scraper`) Actor

Scrape Tesco UK groceries by keyword: price, Clubcard price and offers with start and end dates, unit price, GTIN barcode, TPNC/TPNB, brand, rating, reviews, department, aisle and shelf, Aldi Price Match and sponsored flags. Price sort, price, rating and Clubcard filters. Error rows are free.

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

## Pricing

from $0.76 / 1,000 product delivereds

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: grocery prices, Clubcard offers and unit prices from Tesco UK

Tesco Scraper collects **grocery products from Tesco Groceries (tesco.com, United Kingdom)** by keyword, without a
Tesco account, Clubcard or cookies. Each product comes back as one clean row: TPNC and TPNB (Tesco product
numbers), the GTIN barcode, title, brand, shelf price and **unit price** (per litre, kg, each...), the **Clubcard
Price** as a number, every promotion with its start and end date and Clubcard unit price, Low Everyday Price and
Aldi Price Match flags, star rating and review count, the department, aisle and shelf where Tesco places it, stock
status, the maximum quantity per order, new and sponsored flags, and the product image.

It is used for UK grocery price monitoring and price comparison, Clubcard promotion tracking, inflation and basket
cost research, assortment and shelf analysis for FMCG brands, GTIN matching across retailers, and product datasets
for market research and AI agents.

### At a glance

| What | Price |
|---|---|
| Product delivered | **US$ 1.00 per 1,000 products** (US$ 0.001 each) |
| Run start | US$ 0.005 per run |

- 2,000 products across a weekly basket of 40 keywords = **US$ 2.01**.
- Error rows, duplicates, filtered products and products already delivered in earlier runs (`onlyNew`) are never
  charged.
- `maxItems` is a hard cap, and a spending limit set on the run stops it cleanly with everything delivered so far.
- Proxy is included.

### Quick start

```json
{
  "searchQueries": ["coffee"],
  "maxItems": 50
}
```

A basket of keywords, cheapest first, only Clubcard offers, no sponsored rows:

```json
{
  "searchQueries": ["semi skimmed milk", "free range eggs", "white bread", "bananas", "nappies"],
  "sortBy": "price-ascending",
  "clubcardOnly": true,
  "excludeSponsored": true,
  "maxItems": 500
}
```

Search links copied from the site, with a price range:

```json
{
  "startUrls": ["https://www.tesco.com/groceries/en-GB/search?query=chocolate"],
  "minPrice": 1,
  "maxPrice": 5,
  "minRating": 4,
  "maxItems": 200
}
```

### Input

| Field | What it does |
|---|---|
| `searchQueries` | Grocery keywords, one per line. Each keyword is one search on Tesco Groceries. |
| `startUrls` | Tesco search links (`/groceries/en-GB/search?query=...`). Product and category pages are not supported. |
| `sortBy` | `relevance`, `price-ascending` or `price-descending`, as on the site. |
| `minPrice`, `maxPrice` | Shelf price range in pounds. |
| `minRating` | Only products with at least this average star rating. |
| `clubcardOnly` | Only products with a Clubcard Price or Clubcard multibuy. |
| `excludeSponsored` | Skip the sponsored products Tesco mixes into the results. |
| `maxItems` | Cap for the whole run (default 50; 0 = no cap). |
| `onlyNew` | For schedules: delivers only products not delivered in earlier runs of the same search. |
| `proxyConfiguration` | Apify Proxy by default. |

`searchQuery`, `keyword`, `queries`, `urls`, `maxResults` and `limit` are accepted too, so inputs written for other
Tesco tools keep working. Filters are applied before a row is delivered; filtered rows are free.

### Output fields

| Field | Description |
|---|---|
| `tpnc`, `tpnb`, `gtin` | Tesco product numbers and the GTIN / EAN barcode. |
| `title`, `brand`, `url`, `image` | Product, brand, product link and image. |
| `price`, `currency` | Shelf price in GBP. |
| `unitPrice`, `unitOfMeasure` | Price per unit (litre, kg, each, 100g...) as Tesco shows it. |
| `clubcardPrice` | The Clubcard Price of the item as a number, when the offer is a single item price. |
| `hasClubcardOffer`, `promotions` | Every promotion on the product: description ("£4.00 Clubcard Price", "Any 3 for 2 Clubcard Price..."), whether it is a Clubcard offer, start and end date, and the unit price with the offer. |
| `isLowEverydayPrice`, `priceMatch` | Low Everyday Pricing flag and the Aldi Price Match flag, when Tesco shows them. |
| `rating`, `reviewCount` | Average stars and number of reviews. |
| `superDepartment`, `department`, `aisle`, `shelf` | Where Tesco places the product, for example Fresh Food > Milk, Butter & Eggs > Milk. |
| `status`, `isForSale` | Availability status (`AvailableForSale`...) and whether it can be bought now. |
| `isNew`, `isSponsored` | New product flag and sponsored placement flag. |
| `maxPerOrder`, `productType` | Maximum quantity per order and the product type (single product, catch weight...). |
| `position`, `sourceQuery` | Rank in the search and the input that produced the row. |
| `scrapedAt`, `errorCode`, `error` | Time of collection and, for error rows, what went wrong. |

No reviewer data is collected: only the average rating and the number of reviews.

### Example output

```json
{
  "type": "product",
  "tpnc": "321051725",
  "tpnb": "96431708",
  "gtin": "08445291686069",
  "title": "Nescafe Iced Coffee Espresso Concentrated Unsweetened 500ml",
  "brand": "NESCAFE",
  "url": "https://www.tesco.com/groceries/en-GB/products/321051725",
  "price": 5,
  "currency": "GBP",
  "unitPrice": 10,
  "unitOfMeasure": "litre",
  "clubcardPrice": 4.0,
  "hasClubcardOffer": true,
  "promotions": [
    {
      "description": "£4.00 Clubcard Price",
      "isClubcard": true,
      "startDate": "2026-09-28T23:00:00Z",
      "endDate": "2026-10-27T00:00:00Z",
      "unitPriceText": "£8.00/litre"
    }
  ],
  "isLowEverydayPrice": false,
  "priceMatch": {},
  "rating": 4.7,
  "reviewCount": 35,
  "superDepartment": "Groceries & Essentials",
  "department": "Fresh Food",
  "aisle": "Milk, Butter & Eggs",
  "shelf": "Milkshakes & Iced Coffee",
  "status": "AvailableForSale",
  "isForSale": true,
  "isNew": false,
  "isSponsored": true,
  "maxPerOrder": 99,
  "productType": "SingleProduct",
  "image": "https://digitalcontent.api.tesco.com/v2/media/ghs/2a2c5c44-e8a0-4fce-8e64-07b995368f06/d51b0314-9c9d-4280-b4f3-6a116fb74033_1614614170.jpeg",
  "position": 1,
  "sourceQuery": "coffee",
  "scrapedAt": "2026-10-17T01:03:48Z"
}
```

### Errors

Problems become free rows with `type: "error"`, an `errorCode` and a plain message, so a run never ends empty
without telling you why:

| errorCode | Meaning |
|---|---|
| `INVALID_URL` | The link is not a Tesco Groceries search link (product and category pages are not supported). |
| `NO_RESULTS` | Tesco has no product for this keyword. |
| `BLOCKED` | Tesco refused every attempt for a search; run it again later. |
| `INVALID_INPUT` | A field has a value the Actor cannot use (the message says which). |

### Integrations, scheduling and AI agents

- **Schedules:** run the same basket every day or week from Apify Schedules to build a price history; each run is a
  fresh snapshot of shelf prices, unit prices and Clubcard offers. With `onlyNew` on, only products not seen before
  are delivered (new lines alert).
- **Export:** download the dataset as JSON, CSV, Excel, XML or HTML, or read it from the Apify API.
- **Make, n8n, Zapier:** use the Apify integration to start the Actor and send rows to Google Sheets, Airtable, Slack
  or your database, for example a Clubcard offer alert.
- **AI agents:** the Actor works as a tool through the Apify MCP server, so Claude, ChatGPT or any MCP client can
  check Tesco prices and offers on demand.
- **Webhooks:** get a call when a run finishes and pull the dataset from there.

### FAQ

**Do I need a Tesco account or a Clubcard?** No. Clubcard Prices are public on the site and come in every row.

**Which country?** Tesco Groceries UK (tesco.com/groceries), prices in pounds. Tesco Ireland is not covered.

**How many products can I get?** 48 per page; the run follows the pages to the end of the search (up to 60 pages,
2,880 products per keyword).

**Is it fast?** Yes. 70 products took 3 seconds in our test.

**Why is `clubcardPrice` empty on some Clubcard offers?** Multibuys ("Any 3 for 2", meal deals) have no single item
price; the offer text is in `promotions`.

**Can I paste product links or barcodes?** Not yet: Tesco product and category pages refuse automated visits, and the
search does not match product numbers. Search by name; every row carries the TPNC and GTIN to match on.

### Limitations

- UK only, Tesco Groceries. Tesco Ireland, F\&F clothing and Tesco Marketplace pages are not covered.
- Search only: product pages, category pages and nutrition information are not collected.
- Prices are the standard online prices; store-specific prices and delivery slots are not included.
- The site ignores sort orders other than relevance and price.

### Changelog

- **16 Oct 2026:** first version. Keyword and search link input; relevance and price sort; price, rating, Clubcard and
  sponsored filters; Clubcard Price, promotions with dates, unit price, GTIN, aisle and shelf; `onlyNew` for
  schedules.

# Actor input Schema

## `searchQueries` (type: `array`):

Grocery keywords, one per line, for example coffee, semi skimmed milk or nappies. Each keyword is one search on Tesco Groceries (UK).

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

Optional: Tesco search links like https://www.tesco.com/groceries/en-GB/search?query=coffee. Product and category pages are not supported.

## `sortBy` (type: `string`):

Order of the results, as on the site.

## `minPrice` (type: `number`):

Skip products cheaper than this. Skipped products are free.

## `maxPrice` (type: `number`):

Skip products more expensive than this.

## `minRating` (type: `number`):

Only products with at least this average star rating, for example 4.

## `clubcardOnly` (type: `boolean`):

On: only products with a Clubcard Price or Clubcard multibuy offer.

## `excludeSponsored` (type: `boolean`):

On: skips the sponsored (advertised) products Tesco mixes into the results.

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

Hard cap for the whole run, across all searches. 0 = no cap.

## `onlyNew` (type: `boolean`):

On: remembers the products delivered in earlier runs of the same search (in your account) and delivers only products not seen before. Skipped products are free.

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

Apify Proxy by default. Change it only if you know you need to.

## Actor input object example

```json
{
  "searchQueries": [
    "coffee"
  ],
  "sortBy": "relevance",
  "clubcardOnly": false,
  "excludeSponsored": false,
  "maxItems": 50,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `resultsCsv` (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 = {
    "searchQueries": [
        "coffee"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/tesco-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 = {
    "searchQueries": ["coffee"],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/tesco-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 '{
  "searchQueries": [
    "coffee"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewise/tesco-scraper --silent --output-dataset

```

## MCP server setup

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