# Tesco UK Groceries & Supermarket Scraper (`moving_beacon-owner1/tesco-uk-groceries-supermarket-scraper`) Actor

An Apify Actor to scrape grocery product catalogs, live prices, unit pricing economics (£/kg, £/L, p/100g), customer star ratings, review counts, product images, SKUs, and direct product links from [Tesco UK Groceries](https://www.tesco.com/groceries).

- **URL**: https://apify.com/moving_beacon-owner1/tesco-uk-groceries-supermarket-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 UK Groceries & Supermarket Scraper

An Apify Actor to scrape grocery product catalogs, live prices, unit pricing economics (**£/kg**, **£/L**, **p/100g**), customer star ratings, review counts, product images, SKUs, and direct product links from [Tesco UK Groceries](https://www.tesco.com/groceries).

***

### Features

- **Unit Pricing Intelligence**: Extracts exact unit pricing (£ per kg, £ per litre, pence per 100g) for price comparison, inflation tracking, and consumer basket index analysis.
- **Key Department Coverage**: Scrapes core supermarket departments out-of-the-box:
  - Chicken & Poultry
  - Beef & Meat
  - Fish & Seafood
  - Milk & Dairy Alternatives
  - Fresh Eggs
  - Bread & Bakery
  - Or any custom grocery search query (e.g. *cheddar cheese*, *olive oil*, *organic coffee*)
- **Rich Product Metadata**: Captures titles, current prices in GBP, customer review counts, star ratings (1.0 to 5.0), SKU identifiers, high-resolution product thumbnails, and direct canonical URLs.
- **Fast & Lightweight**: Powered by `curl_cffi` browser TLS impersonation with zero browser overhead (no Chromium, Playwright, or Selenium required).
- **Offline Fixture Fallback**: Includes realistic offline Tesco grocery fixtures, ensuring uninterrupted workflow execution in sandboxed environments or during temporary network restrictions.
- **Apify Proxy Ready**: Integrated proxy management with seamless support for UK residential proxies to bypass supermarket anti-bot defenses.

***

### Use Cases

- **Grocery Price Monitoring & Inflation Tracking**: Track weekly price movements and shrinkage across UK staples.
- **E-Commerce Price Comparison**: Benchmark competitor prices against the UK's largest supermarket chain.
- **Market Basket Analysis**: Analyze unit economics (£/kg, £/L) across private label vs. national brand goods.
- **Catalog Aggregation & Assortment Tracking**: Build grocery aggregator feeds, nutrition trackers, and supermarket search portals.

***

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `query` | `string` | `""` | Search keyword to query on Tesco Groceries (e.g. `"milk"`, `"chicken fillets"`, `"sourdough bread"`). Leave empty to scrape by `category`. |
| `category` | `string` | `"all"` | Predefined grocery department: `chicken`, `beef`, `fish`, `milk`, `eggs`, `bread`, or `all`. |
| `max_records` | `integer` | `20` | Maximum number of grocery product records to collect and push to the dataset. |
| `max_pages` | `integer` | `1` | Maximum number of search pagination pages to crawl per category or query. |
| `proxy_configuration` | `object` | `{}` | Optional Apify Proxy configuration. UK residential proxies recommended for live crawls. |

***

### Input Examples

#### 1. Scrape All Core Categories (Default)

```json
{
  "category": "all",
  "max_records": 50,
  "max_pages": 1
}
```

#### 2. Search Specific Category (e.g. Fresh Milk & Dairy)

```json
{
  "category": "milk",
  "max_records": 20,
  "max_pages": 1
}
```

#### 3. Custom Keyword Search with Proxy

```json
{
  "query": "organic sourdough bread",
  "max_records": 30,
  "max_pages": 2,
  "proxy_configuration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "GB"
  }
}
```

***

### Output Schema

Each item pushed to the default dataset contains the following structured fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `title` | `string` | `"Tesco British Semi Skimmed Milk 2.272L, 4 Pints"` | Full display name of the grocery item |
| `name` | `string` | `"Tesco British Semi Skimmed Milk 2.272L, 4 Pints"` | Product name alias |
| `price` | `number` | `1.75` | Selling price in numeric GBP |
| `currency` | `string` | `"GBP"` | Currency code (`GBP`) |
| `price_text` | `string` | `"£1.75"` | Formatted price string |
| `price_per_kg` | `string \| null` | `"£0.77/litre"` | Unit price or price per weight/volume metric |
| `unit_price` | `string \| null` | `"£0.77/litre"` | Unit pricing alias |
| `category` | `string` | `"milk"` | Grocery department category |
| `url` | `string` | `"https://www.tesco.com/groceries/en-GB/products/254656543"` | Canonical product link |
| `image_url` | `string \| null` | `"https://digitalcontent.api.tesco.com/...jpeg"` | Product thumbnail image |
| `sku` | `string \| null` | `"254656543"` | Tesco product catalog SKU identifier |
| `rating` | `number \| null` | `4.0` | Customer average rating (1.0 to 5.0) |
| `review_count` | `integer \| null` | `717` | Count of customer reviews |
| `availability` | `string` | `"available"` | Product stock status |
| `seller` | `string` | `"Tesco"` | Retailer name |
| `source` | `string` | `"tesco.com"` | Origin domain |
| `query` | `string` | `"milk"` | Query or department scraped |
| `position` | `integer` | `1` | Result sequence ranking |
| `scraped_at` | `string` | `"2026-11-19T12:00:00.000000+00:00"` | ISO 8601 UTC extraction timestamp |

#### Sample Output Record (JSON)

```json
{
  "title": "Tesco British Semi Skimmed Milk 2.272L, 4 Pints",
  "name": "Tesco British Semi Skimmed Milk 2.272L, 4 Pints",
  "price": 1.75,
  "currency": "GBP",
  "price_text": "£1.75",
  "price_per_kg": "£0.77/litre",
  "unit_price": "£0.77/litre",
  "category": "milk",
  "url": "https://www.tesco.com/groceries/en-GB/products/254656543",
  "image_url": "https://digitalcontent.api.tesco.com/v2/media/ghs/07531d6d-8bf2-41b5-a5ad-e2ae0a71f2b3/17233543-2c5b-4a06-a0ab-cfdbddcd488e_2028878860.jpeg?w=225",
  "sku": "254656543",
  "rating": 4.0,
  "review_count": 717,
  "availability": "available",
  "seller": "Tesco",
  "source": "tesco.com",
  "query": "milk",
  "position": 1,
  "scraped_at": "2026-11-19T12:53:50.579637+00:00"
}
```

***

### Policy & Responsible Use

This Actor is designed to collect publicly accessible grocery product information and supermarket pricing data from Tesco UK (tesco.com) for legitimate price monitoring, consumer research, market analysis, and retail intelligence.

- **Public Data Only:** The Actor is intended to collect publicly accessible product information, including product names, prices, unit pricing, product categories, SKUs, customer ratings, review counts, stock availability, product images, and direct product URLs. It does not require private customer credentials or access to personal shopping accounts.
- **Respect Website Rules:** Users are responsible for complying with Tesco's applicable Terms and Conditions, website policies, intellectual property requirements, and access restrictions.
- **Rate Limiting:** Configurable record limits, pagination controls, and optional proxy configuration support controlled data collection and help reduce unnecessary requests to Tesco's servers.
- **No Security Circumvention:** The Actor is not designed to bypass authentication, access private customer information, defeat security mechanisms, or circumvent technical access restrictions.
- **Responsible Price Monitoring:** Extracted prices and unit economics are intended for legitimate grocery comparisons, inflation tracking, market basket analysis, and retail research. Users should independently verify prices and product availability directly with Tesco before making purchasing decisions.
- **Unit Pricing Accuracy:** Extracted unit prices (£/kg, £/L, and p/100g) should be interpreted according to the product's actual measurement basis. Weight-based and volume-based measurements must not be treated as interchangeable.
- **Data Accuracy:** Product prices, promotions, unit prices, customer ratings, review counts, and availability may change without notice. The Actor does not guarantee that extracted information is complete, current, or accurate.
- **Offline Fallback Data:** When offline fixtures are used, records may contain predefined sample information rather than live Tesco catalog data. Users should verify the source and freshness of records before relying on them.
- **Intellectual Property:** Product images, descriptions, trademarks, logos, and other protected website content remain the property of their respective owners. Users must obtain any necessary permissions before reproducing or commercially redistributing protected materials.
- **Privacy & Data Protection:** Users must ensure that any collected information, including customer-related information if encountered, is handled in accordance with applicable UK GDPR, Data Protection Act 2018, and other relevant privacy requirements.
- **User Responsibility:** Users are solely responsible for ensuring that their collection, storage, processing, redistribution, and commercial use of extracted information comply with applicable laws, regulations, and third-party website policies.

**Disclaimer:** This Actor is an independent grocery data extraction and price-monitoring tool. It is not affiliated with, endorsed by, or officially associated with Tesco PLC. Tesco, its trademarks, logos, product images, and website content belong to their respective owners.

# Actor input Schema

## `query` (type: `string`):

Grocery keyword to search for on Tesco (e.g. 'milk', 'chicken', 'cheddar cheese', 'sourdough bread'). Leave blank to scrape by Category.

## `category` (type: `string`):

Tesco grocery department/category. Select 'all' to scrape across all primary departments.

## `max_records` (type: `integer`):

Maximum number of grocery products to return.

## `max_pages` (type: `integer`):

Maximum number of search listing pages to crawl per category/query.

## `proxy_configuration` (type: `object`):

Apify Proxy configuration. UK residential proxies recommended for high-volume live Tesco crawling.

## Actor input object example

```json
{
  "category": "all",
  "max_records": 20,
  "max_pages": 1
}
```

# Actor output Schema

## `results` (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 = {
    "category": "all",
    "max_records": 20,
    "max_pages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/tesco-uk-groceries-supermarket-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 = {
    "category": "all",
    "max_records": 20,
    "max_pages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/tesco-uk-groceries-supermarket-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 '{
  "category": "all",
  "max_records": 20,
  "max_pages": 1
}' |
apify call moving_beacon-owner1/tesco-uk-groceries-supermarket-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/tesco-uk-groceries-supermarket-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/h7s5dfvWeOuGlN7U2/builds/v6qqsRC22dYxNLTfl/openapi.json
