# Tesco API

> Tesco returns grocery product names, prices, Clubcard offers, and availability as a workflow and API.

Tesco returns grocery product prices, availability, promotions, and links through Search products. Search products takes a grocery query, with optional sorting and result count; prices and availability vary by location.

- Page: https://fous.com/workflows/tesco
- Handle: `@tesco`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://tesco.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Tesco.

## Methods

### Search products

Operation `search_products`, version 1. 1 credit per call.

Search Tesco Groceries as a guest and get product prices, Clubcard offers, availability, and links. Prices and availability vary by location; ordering applies to the first 48 results for the selected Tesco order (the first 48 relevance matches for name). Out-of-stock items may not show prices.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `sort` | string | no | `"price_low_to_high"` | Order products by relevance, price, or name; for example price_low_to_high. |
| `query` | string | yes | `"semi skimmed milk"` | Groceries to find, for example semi skimmed milk. |
| `max_results` | integer | no | `48` | Maximum number of products to return, for example 24. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "sort": {
      "enum": [
        "relevance",
        "price_low_to_high",
        "price_high_to_low",
        "name"
      ],
      "type": "string",
      "default": "relevance",
      "description": "Order products by relevance, price, or name; for example price_low_to_high.",
      "examples": [
        "price_low_to_high",
        "price_high_to_low",
        "name"
      ]
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Groceries to find, for example semi skimmed milk.",
      "examples": [
        "semi skimmed milk",
        "milk",
        "zzzzqxyv-no-match-987654321"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 24,
      "maximum": 48,
      "minimum": 1,
      "description": "Maximum number of products to return, for example 24.",
      "x-fous-developer": true,
      "examples": [
        48,
        12,
        24
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "query": "semi skimmed milk"
    },
    {
      "sort": "price_low_to_high",
      "query": "milk",
      "max_results": 48
    },
    {
      "sort": "price_high_to_low",
      "query": "milk",
      "max_results": 12
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `products` | array |  |  |
| `products[].price` | number or null | `316.2` | Regular price in GBP, or null when not displayed. |
| `products[].currency` | string | `"GBP"` | Price currency. |
| `products[].available` | boolean | `true` | Whether the item is currently shown as available. |
| `products[].promotion` | string or null | `"Was £340.00 Now £316.20 Offer valid until 20/10/2026"` | Displayed promotion, if any. |
| `products[].image_link` | string or null | `"https://digitalcontent.api.tesco.com/v2/media/marketplace/f445d1f4-02ce-4cad-a0cc-9a260ed8702d/dd1ef2f093db461e9695e447` | Product image link. |
| `products[].product_id` | string | `"325840009"` | Tesco product ID. |
| `products[].unit_price` | string or null | `"£316.20/each"` | Displayed unit price, such as £1.20/kg. |
| `products[].product_link` | string | `"https://www.tesco.com/shop/en-GB/products/325840009?seller=trn:tesco:seller:uuid:009a7572-5b0a-4b76-8d54-7c27c6b198a1"` | Product page link. |
| `products[].product_name` | string | `"Armand de Brignac Ace of Spades Brut Gold Champagne And Milk Sea Salt Charbonnel Chocolates Box 75cl 12.5 abv"` | Product name. |
| `products[].clubcard_price` | number or null |  | Single-item Clubcard price in GBP, if shown. |

**Example input**

```json
{
  "sort": "price_high_to_low",
  "query": "milk",
  "max_results": 12
}
```

**Example output**

```json
{
  "products": [
    {
      "price": 316.2,
      "currency": "GBP",
      "available": true,
      "promotion": "Was £340.00 Now £316.20 Offer valid until 20/10/2026",
      "image_link": "https://digitalcontent.api.tesco.com/v2/media/marketplace/f445d1f4-02ce-4cad-a0cc-9a260ed8702d/dd1ef2f093db461e9695e447f577ca53_1160377799.jpeg?w=225",
      "product_id": "325840009",
      "unit_price": "£316.20/each",
      "product_link": "https://www.tesco.com/shop/en-GB/products/325840009?seller=trn:tesco:seller:uuid:009a7572-5b0a-4b76-8d54-7c27c6b198a1",
      "product_name": "Armand de Brignac Ace of Spades Brut Gold Champagne And Milk Sea Salt Charbonnel Chocolates Box 75cl 12.5 abv",
      "clubcard_price": null
    },
    {
      "price": 316.2,
      "currency": "GBP",
      "available": true,
      "promotion": "Was £340.00 Now £316.20 Offer valid until 20/10/2026",
      "image_link": "https://digitalcontent.api.tesco.com/v2/media/marketplace/423fe99c-0792-4e95-8c6a-9a7457a9eaf2/8f4d66b6781a4de08a9ef8c81b545e7f_948131105.jpeg?w=225",
      "product_id": "325840016",
      "unit_price": "£316.20/each",
      "product_link": "https://www.tesco.com/shop/en-GB/products/325840016?seller=trn:tesco:seller:uuid:009a7572-5b0a-4b76-8d54-7c27c6b198a1",
      "product_name": "Louis Roederer Cristal Vintage Champagne And Milk Sea Salt Charbonnel Chocolates Box 75cl 12 abv",
      "clubcard_price": null
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@tesco",
  "visibility": "public",
  "operation": "search_products",
  "version": 1,
  "input": {
    "query": "semi skimmed milk"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@tesco\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_products\",\n  \"version\": 1,\n  \"input\": {\n    \"query\": \"semi skimmed milk\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@tesco",
  "visibility": "public",
  "operation": "search_products",
  "version": 1,
  "input": {
    "query": "semi skimmed milk"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@tesco","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare grocery prices in search results
- Find products with displayed Clubcard prices
- Check which searched groceries are shown as available
- Compare displayed unit prices
- Collect product names and links for a shopping list

## FAQ

### Is Fous affiliated with Tesco?

No. Fous is not affiliated with Tesco. This workflow reads the public tesco.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Tesco account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from tesco.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What does a grocery product cost?

Search products returns the displayed regular price and currency; prices may vary by location, and out-of-stock items may not show prices.

### Which products have a Clubcard offer?

Search products returns a displayed single-item Clubcard price when one is shown.

### Is a searched product available?

Search products returns whether each item is currently shown as available.

## Related

- [Aldi API](https://fous.com/workflows/aldi.md): Search groceries and prices at ALDI US.
- [Costco API](https://fous.com/workflows/costco.md): Costco returns US product prices/details and warehouse hours/services/gas prices; delivery affects availability, member prices may be hidden, and posted gas and holiday hours may differ.
- [Instacart API](https://fous.com/workflows/instacart.md): Search grocery products available from nearby stores.
- [Trader Joe's API](https://fous.com/workflows/trader-joes.md): Trader Joe's groceries, beverages, flowers, plants, and other products.
- [Argos API](https://fous.com/workflows/argos.md): Argos helps shoppers find UK products with prices, ratings and links, and check delivery and nearby store collection for a postcode; stock and delivery charges may vary.
- [Amazon API](https://fous.com/workflows/amazon.md): Amazon returns publicly shown product listings, prices, details, ratings, reviews, current best sellers, and Today's Deals; availability and content vary by store, location, and access.
- [Target API](https://fous.com/workflows/target.md): Target helps shoppers find products, details, photos, ratings, links, current prices, and nearby-store stock and pickup or delivery availability; prices and availability can change by location and time.
- [Walmart API](https://fous.com/workflows/walmart.md): Walmart helps shoppers find products from Walmart and marketplace sellers, view details, prices, ratings and reviews; availability uses Walmart’s default location, not ZIP codes.
- [All Commerce workflows](https://fous.com/workflows/category/commerce)
