# 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/tools/tesco
- Handle: `@tesco`
- Category: [Commerce](https://fous.com/tools/category/commerce)
- Source website: https://tesco.com
- Last verified: Sep 29, 2026

## Methods

### Search products

Operation `search_products`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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 | `1.65` | 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 | `"Aldi Price Match"` | Displayed promotion, if any. |
| `products[].image_link` | string or null | `"https://digitalcontent.api.tesco.com/v2/media/ghs/07531d6d-8bf2-41b5-a5ad-e2ae0a71f2b3/17233543-2c5b-4a06-a0ab-cfdbddcd` | Product image link. |
| `products[].product_id` | string | `"254656543"` | Tesco product ID. |
| `products[].unit_price` | string or null | `"£0.73/litre"` | Displayed unit price, such as £1.20/kg. |
| `products[].product_link` | string | `"https://www.tesco.com/shop/en-GB/products/254656543"` | Product page link. |
| `products[].product_name` | string | `"Tesco British Semi Skimmed Milk 2.272L, 4 Pints"` | Product name. |
| `products[].clubcard_price` | number or null |  | Single-item Clubcard price in GBP, if shown. |

**Example input**

```json
{
  "query": "semi skimmed milk"
}
```

**Example output**

```json
{
  "products": [
    {
      "price": 1.65,
      "currency": "GBP",
      "available": true,
      "promotion": "Aldi Price Match",
      "image_link": "https://digitalcontent.api.tesco.com/v2/media/ghs/07531d6d-8bf2-41b5-a5ad-e2ae0a71f2b3/17233543-2c5b-4a06-a0ab-cfdbddcd488e_2028878860.jpeg?w=225",
      "product_id": "254656543",
      "unit_price": "£0.73/litre",
      "product_link": "https://www.tesco.com/shop/en-GB/products/254656543",
      "product_name": "Tesco British Semi Skimmed Milk 2.272L, 4 Pints",
      "clubcard_price": null
    },
    {
      "price": 1.2,
      "currency": "GBP",
      "available": true,
      "promotion": "Aldi Price Match",
      "image_link": "https://digitalcontent.api.tesco.com/v2/media/ghs/8bb67050-c132-4326-97f2-04be9fdce6c9/93e23843-fc27-4cb7-9448-9820e01e8281_798947363.jpeg?w=225",
      "product_id": "252207537",
      "unit_price": "£1.06/litre",
      "product_link": "https://www.tesco.com/shop/en-GB/products/252207537",
      "product_name": "Tesco British Semi Skimmed Milk 1.13L, 2 Pints",
      "clubcard_price": null
    },
    {
      "price": 0.85,
      "currency": "GBP",
      "available": true,
      "promotion": "Aldi Price Match",
      "image_link": "https://digitalcontent.api.tesco.com/v2/media/ghs/43cc7922-a4b0-46bc-9ee4-e4b8ff6fe1c9/20ce2a7e-d170-4f52-ac34-6ff7e5cfb302_1058176312.jpeg?w=225",
      "product_id": "251314158",
      "unit_price": "£1.50/litre",
      "product_link": "https://www.tesco.com/shop/en-GB/products/251314158",
      "product_name": "Tesco British Semi Skimmed Milk 568 Ml, 1 Pint",
      "clubcard_price": null
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_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.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

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=180) 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.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_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);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/tesco`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `search_products`: Search products. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-tesco https://api.fous.com/mcp/tools/tesco --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## 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

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Tesco tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. 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. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified 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/tools/aldi.md): Search groceries and prices at ALDI US.
- [Costco API](https://fous.com/tools/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/tools/instacart.md): Search grocery products available from nearby stores.
- [Trader Joe's API](https://fous.com/tools/trader-joes.md): Trader Joe's groceries, beverages, flowers, plants, and other products.
- [Argos API](https://fous.com/tools/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/tools/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/tools/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/tools/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 tools](https://fous.com/tools/category/commerce)
