---
title: "Tesco API: UK grocery search, product details as JSON"
description: "Tesco API for UK grocery search, product details with nutrition, review stats, store stock, categories and sitemaps as JSON. 1 credit per call."
url: https://perceptlayer.com/apis/tesco
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / Tesco

1 credit per call 8 endpoints 17 datapoints 

# Tesco API

Tesco API for UK grocery search, product details with nutrition, review stats, store stock, categories and sitemaps as JSON. 1 credit per call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Tesco

GET /v1/tesco/search?query=milk 

```
{
  "success": true,
  "data": {
    "query": "milk",
    "page": 1,
    "count": 24,
    "filtered_out": 0,
    "total": 480,
    "page_size": 24,
    "offset": 0,
    "sort": "relevance",
    "items": [
      {
        "id": "254656543",
        "tpnc": "254656543",
        "tpnb": "54550994",
        "gtin": "05000436589457",
        "name": "Tesco British Semi Skimmed Milk 2.272L, 4 Pints",
        "brand": "TESCO",
        "url": "https://www.tesco.com/shop/en-GB/products/254656543",
        "image": "https://digitalcontent.api.tesco.com/v2/media/ghs/07531d6d-8bf2-41b5-a5ad-e2ae0a71f2b3/17233543-2c5b-4a06-a0ab-cfdbddcd488e_2028878860.jpeg",
        "currency": "GBP",
        "price": 1.75,
        "regular_price": 1.75,
        "unit_price": 0.77,
        "unit_of_measure": "litre",
        "availability": "AvailableForSale",
        "is_for_sale": true,
        "rating": 4,
        "review_count": 717
      },
      {
        "id": "254656399",
        "tpnc": "254656399",
        "tpnb": "54550913",
        "gtin": "05000436589341",
        "name": "Tesco British Whole Milk 2.272L, 4 Pints",
        "brand": "TESCO",
        "url": "https://www.tesco.com/shop/en-GB/products/254656399",
        "image": "https://digitalcontent.api.tesco.com/v2/media/ghs/15b6b16b-0a96-45e1-a644-320962c71594/ade2b509-b8ba-451c-9d6c-807ee202fe98_1802350944.jpeg",
        "currency": "GBP",
        "price": 1.75,
        "regular_price": 1.75,
        "unit_price": 0.77,
        "unit_of_measure": "litre",
        "availability": "AvailableForSale",
        "is_for_sale": true,
        "rating": 3.7,
        "review_count": 212
      },
      {
        "id": "252207537",
        "tpnc": "252207537",
        "tpnb": "54169392",
        "gtin": "05000436338826",
        "name": "Tesco British Semi Skimmed Milk 1.13L, 2 Pints",
        "brand": "TESCO",
        "url": "https://www.tesco.com/shop/en-GB/products/252207537",
        "image": "https://digitalcontent.api.tesco.com/v2/media/ghs/8bb67050-c132-4326-97f2-04be9fdce6c9/93e23843-fc27-4cb7-9448-9820e01e8281_798947363.jpeg",
        "currency": "GBP",
        "price": 1.3,
        "regular_price": 1.3,
        "unit_price": 1.15,
        "unit_of_measure": "litre",
        "availability": "AvailableForSale",
        "is_for_sale": true,
        "rating": 4.3,
        "review_count": 298
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_7d14cdf6f58747a8bb65f6c6f4ee2df8",
    "credits_charged": 1,
    "credits_remaining": 4808
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | id string | tpnc string | tpnb string | gtin string | name string | brand string | url url | image url | currency string | price number | regular\_price number | unit\_price number | unit\_of\_measure string | availability string | is\_for\_sale boolean | rating number | review\_count integer |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 254656543 | 254656543 | 54550994 | 05000436589457 | Tesco British Semi Skimmed Milk 2.272L, 4 Pints | TESCO | https://www.tesco.com/shop/en-GB/products/254656543 | https://digitalcontent.api.tesco.com/v2/media/ghs/07531d6d-8bf2-41b5-a5ad-e2ae0a71f2b3/17233543-2c5b-4a06-a0ab-cfdbddcd488e\_2028878860.jpeg | GBP | 1.75 | 1.75 | 0.77 | litre | AvailableForSale | true | 4 | 717 |
| 2 | 254656399 | 254656399 | 54550913 | 05000436589341 | Tesco British Whole Milk 2.272L, 4 Pints | TESCO | https://www.tesco.com/shop/en-GB/products/254656399 | https://digitalcontent.api.tesco.com/v2/media/ghs/15b6b16b-0a96-45e1-a644-320962c71594/ade2b509-b8ba-451c-9d6c-807ee202fe98\_1802350944.jpeg | GBP | 1.75 | 1.75 | 0.77 | litre | AvailableForSale | true | 3.7 | 212 |
| 3 | 252207537 | 252207537 | 54169392 | 05000436338826 | Tesco British Semi Skimmed Milk 1.13L, 2 Pints | TESCO | https://www.tesco.com/shop/en-GB/products/252207537 | https://digitalcontent.api.tesco.com/v2/media/ghs/8bb67050-c132-4326-97f2-04be9fdce6c9/93e23843-fc27-4cb7-9448-9820e01e8281\_798947363.jpeg | GBP | 1.3 | 1.3 | 1.15 | litre | AvailableForSale | true | 4.3 | 298 |

Recorded from our API · 3 items shown · 17 datapoints per item GET /v1/tesco/search?query=milk

17 datapoints

### Identity

-   id string
-   name string
-   brand string

### Contact

-   url url

### Reputation

-   image url
-   rating number
-   review\_count integer

### Price

-   currency string
-   price number
-   regular\_price number
-   unit\_price number

### Other

-   tpnc string
-   tpnb string
-   gtin string
-   unit\_of\_measure string
-   availability string
-   is\_for\_sale boolean

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/tesco/search?query=milk" \
  -H "X-API-Key: $API_KEY"
```

Tesco · 8 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/tesco/category`](https://perceptlayer.com/apis/tesco/category) | `facet` +3 optional | `id` `tpnc` `tpnb` `name` `brand` `url` +7 more | 1 credit |
| [GET `/v1/tesco/product`](https://perceptlayer.com/apis/tesco/product) | `tpnc` | `product` | 1 credit |
| [GET `/v1/tesco/reviews`](https://perceptlayer.com/apis/tesco/reviews) | `tpnc` +1 optional | `tpnc` `rating` `review_count` `distribution` `kind` | 1 credit |
| [GET `/v1/tesco/search`](https://perceptlayer.com/apis/tesco/search) | `query` +6 optional | `id` `tpnc` `tpnb` `gtin` `name` `brand` +11 more | 1 credit |
| [GET `/v1/tesco/sitemap`](https://perceptlayer.com/apis/tesco/sitemap) | none +3 optional | `kind` `urls` | 1 credit |
| [GET `/v1/tesco/storestock`](https://perceptlayer.com/apis/tesco/storestock) | `tpnc` | `tpnc` `store_id` | 1 credit |
| [GET `/v1/tesco/suggest`](https://perceptlayer.com/apis/tesco/suggest) | `query` | `text` | 1 credit |
| [GET `/v1/tesco/taxonomy`](https://perceptlayer.com/apis/tesco/taxonomy) | none | `id` `name` `label` | 1 credit |

Overview

## About the Tesco API

## What you can get

The Tesco API returns Tesco grocery data as JSON through 8 endpoints.

-   **Search:** `search` takes a `query`, with `page`, `sort` (relevance, price-ascending or price-descending), `min_price`, `max_price`, `offer` and `category`. `suggest` takes a partial `query`.
-   **Products:** `product` takes a `tpnc`. `storestock` takes a `tpnc` and returns stock status at a store.
-   **Reviews:** `reviews` takes a `tpnc`, with `kind` (stats or items).
-   **Categories:** `taxonomy` lists the top-level categories. `category` takes a `facet` from `taxonomy`, with `page`, `count` and `sort`.
-   **Sitemaps:** `sitemap` takes a `kind` (index, products, taxonomy or promotions), with `limit` and `offset`.

The recorded search for "milk" returns `query`, `page`, `count` (24), `total` (480 in that recording), `page_size`, `offset`, `sort` and `items`. Each item has `id`, `tpnc`, `tpnb`, `gtin`, `name`, `brand`, `url`, `image`, `currency`, `price`, `regular_price`, `unit_price`, `unit_of_measure`, `availability`, `is_for_sale`, `rating` and `review_count`. The first result was Tesco British Semi Skimmed Milk, 4 pints, at £1.75 or £0.77 a litre.

## How a call works

Search, then look up: `GET /v1/tesco/search?query=milk` with your key in the `X-API-Key` header returns each product's `tpnc`. `product` takes it and adds `rating`, `review_count`, `bulk_buy_limit` and `nutrition`; `reviews` returns the rating `distribution` (717 reviews for that milk); `storestock` returned `IN_STOCK` at store 3060. To browse, take a category `id` from `taxonomy` and pass it to `category` as `facet`. Every successful call costs 1 credit; failed calls cost nothing.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

Use cases

### Track Tesco prices and unit prices for a basket of groceries

`Use the Tesco API to track Tesco prices and unit prices for a basket of groceries` 

### List products on offer in a search with \`offer\`

`` Use the Tesco API to list products on offer in a search with `offer` `` 

### Match Tesco products to other retailers by \`gtin\`

`` Use the Tesco API to match Tesco products to other retailers by `gtin` `` 

### Compare nutrition values across products in a category

`Use the Tesco API to compare nutrition values across products in a category` 

FAQ

## Questions

**How much does the Tesco API cost?**

Each successful call costs one credit, and each search or category page is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**What is a \`tpnc\`?**

Tesco's product number, such as \`254656543\`. Search and category items return it, and \`product\`, \`reviews\` and \`storestock\` take it.

**Do I need a Tesco account?**

No. You call this Tesco API with your Perceptlayer key in the \`X-API-Key\` header, with no Tesco login.

**Is this the official Tesco API?**

No. Perceptlayer is an independent service and is not affiliated with Tesco. It returns Tesco data as JSON with a Perceptlayer key, so there is no Tesco developer account, app review or partner approval to get first. It only reads data: if Tesco has an official API and you need to act on your own Tesco account, such as posting, managing orders or reading private data, use that one.

**Should I build a Tesco scraper instead?**

You can, but a Tesco scraper is code you maintain: page changes break it, requests get blocked, and Tesco's terms govern how you collect data. The Tesco API gives you 8 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Tesco API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
