# Tesco Category Scraper (`getdataforme/tesco-category-scraper`) Actor

Scrape Tesco's product catalog with ease using our Apify Actor. Extract comprehensive data like prices, categories, and availability based on search keywords. Key features: proxy integration for undetected scraping, pagination support, scalable performance, and reliable JSON output....

- **URL**: https://apify.com/getdataforme/tesco-category-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 3 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $9.00 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### PART 1: Generate README.md

## Tesco Category Scraper

The Tesco Category Scraper is a powerful Apify Actor designed to extract detailed product information from Tesco's online catalog based on search keywords. It enables users to gather comprehensive data on products, including pricing, categories, and availability, making it ideal for market research, price comparison, and e-commerce analysis. By leveraging Tesco's search functionality, this Actor delivers reliable, structured data to help businesses and researchers make informed decisions.

### Features

- **Comprehensive Product Data Extraction**: Scrapes key details like product ID, title, brand, price, category, and availability status.
- **Flexible Search Capabilities**: Supports keyword-based searches to target specific products or categories.
- **Pagination Support**: Allows starting from any page number for large-scale data collection.
- **Proxy Integration**: Uses residential proxies to avoid IP blocking and ensure smooth, undetected scraping.
- **High Reliability**: Handles dynamic web content and provides consistent output in JSON format.
- **Fast and Scalable**: Optimized for performance, capable of processing multiple pages efficiently.
- **Data Enrichment**: Includes timestamps and search query references for better data tracking.

### Input Parameters

| Parameter | Type | Required | Description | Example |
|-----------|------|----------|-------------|---------|
| searchKeywords | string | Yes | Keywords to search for on Tesco website (e.g., mango, chicken, playstation). Must be at least 1 character long. | "mango" |
| page | integer | No | Page number to start scraping from. Minimum value is 1. | 1 |
| proxyConfiguration | object | No | Specifies proxy servers to hide the scraper's origin. Defaults to using Apify's residential proxies. | {"useApifyProxy": true, "apifyProxyGroups": \["RESIDENTIAL"]} |

### Example Usage

To run the Actor, provide input parameters in JSON format. Here's an example:

```json
{
  "searchKeywords": "mango",
  "page": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

The Actor will output a JSON array of product objects. Example output:

```json
[
  {
    "id": "317759441",
    "tpnb": "93819457",
    "tpnc": "317759441",
    "gtin": "05060139436687",
    "title": "BEAR Fruit Dried Mango 4x25g",
    "brandName": "BEAR FRUIT",
    "description": null,
    "imageUrl": "https://digitalcontent.api.tesco.com/v2/media/ghs/f827b630-3c15-43e1-9369-2ebdfbad7b9d/f64bbd25-7634-42e3-b4a6-893897e5dd29_974432492.jpeg?h=225&w=225",
    "category": {
      "superDepartment": "Food Cupboard",
      "department": "Dried Fruit, Nuts, Nutrient Powders & Seeds",
      "aisle": "Dried Fruit",
      "shelf": "Dried Fruit"
    },
    "productType": "SingleProduct",
    "bulkBuyLimit": 99,
    "isNew": false,
    "price": {
      "actual": 2,
      "unitPrice": 20,
      "unitOfMeasure": "kg"
    },
    "promotion": null,
    "isForSale": true,
    "status": "AvailableForSale",
    "searchQuery": "mango",
    "scrapedAt": "2026-02-27T11:01:16.057Z"
  }
]
```

### Use Cases

- **Market Research and Analysis**: Analyze product trends, pricing strategies, and category distributions in Tesco's catalog.
- **Competitive Intelligence**: Compare Tesco's offerings with competitors to identify gaps or opportunities.
- **Price Monitoring**: Track price changes for specific products to inform purchasing or sales decisions.
- **Content Aggregation**: Build datasets for e-commerce platforms or comparison websites.
- **Academic Research**: Study consumer goods availability and categorization in retail environments.
- **Business Automation**: Automate data collection for inventory management or supplier negotiations.

### Installation and Usage

1. Search for "Tesco Category Scraper" in the Apify Store
2. Click "Try for free" or "Run"
3. Configure input parameters
4. Click "Start" to begin extraction
5. Monitor progress in the log
6. Export results in your preferred format (JSON, CSV, Excel)

### Output Format

The output is a JSON array of objects, each representing a product. Key fields include:

- `id`, `tpnb`, `tpnc`, `gtin`: Unique product identifiers.
- `title`, `brandName`, `description`: Product name, brand, and details.
- `imageUrl`: Link to product image.
- `category`: Hierarchical category information (superDepartment, department, aisle, shelf).
- `price`: Pricing details (actual price, unit price, unit of measure).
- `promotion`: Any active promotions (null if none).
- `isForSale`, `status`: Availability indicators.
- `searchQuery`, `scrapedAt`: Metadata for tracking.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

### PART 2: Generate Description (Max 300 characters)

Unlock Tesco's product catalog with ease! Our Tesco Category Scraper extracts detailed data on products, prices, and categories based on your search keywords. Key features include proxy support for undetected scraping, pagination for large datasets, and reliable JSON output. Perfect for market research, price monitoring, competitive analysis, and e-commerce automation. Start scraping today and gain valuable insights into Tesco's offerings. Try it free on Apify! (248 characters)

# Actor input Schema

## `searchKeywords` (type: `string`):

Keywords to search for on Tesco website (e.g. mango, chicken, playstation)

## `page` (type: `integer`):

Page number to start scraping from

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

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "searchKeywords": "mango",
  "page": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

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

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

```

## MCP server setup

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