APIs / Marketplaces / Tesco
1 credit per call8 endpoints17 datapointsChecked working 6 Dec 2026
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.
{
"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
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | idstring | tpncstring | tpnbstring | gtinstring | namestring | brandstring | urlurl | imageurl | currencystring | pricenumber | regular_pricenumber | unit_pricenumber | unit_of_measurestring | availabilitystring | is_for_saleboolean | ratingnumber | review_countinteger |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
[
{
"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
}
]id,tpnc,tpnb,gtin,name,brand,url,image,currency,price,regular_price,unit_price,unit_of_measure,availability,is_for_sale,rating,review_count 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 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 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 itemGET /v1/tesco/search?query=milk
17 datapoints
Identity
- idstring
- namestring
- brandstring
Contact
- urlurl
Reputation
- imageurl
- ratingnumber
- review_countinteger
Price
- currencystring
- pricenumber
- regular_pricenumber
- unit_pricenumber
Other
- tpncstring
- tpnbstring
- gtinstring
- unit_of_measurestring
- availabilitystring
- is_for_saleboolean
Playground
Run this API
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 | facet+3 optional | idtpnctpnbnamebrandurl+7 more | 1 credit |
GET/v1/tesco/product | tpnc | product | 1 credit |
GET/v1/tesco/reviews | tpnc+1 optional | tpncratingreview_countdistributionkind | 1 credit |
GET/v1/tesco/search | query+6 optional | idtpnctpnbgtinnamebrand+11 more | 1 credit |
GET/v1/tesco/sitemap | none+3 optional | kindurls | 1 credit |
GET/v1/tesco/storestock | tpnc | tpncstore_id | 1 credit |
GET/v1/tesco/suggest | query | text | 1 credit |
GET/v1/tesco/taxonomy | none | idnamelabel | 1 credit |
Overview
About the Tesco API
What you can get
The Tesco API returns Tesco grocery data as JSON through 8 endpoints.
- Search:
searchtakes aquery, withpage,sort(relevance, price-ascending or price-descending),min_price,max_price,offerandcategory.suggesttakes a partialquery. - Products:
producttakes atpnc.storestocktakes atpncand returns stock status at a store. - Reviews:
reviewstakes atpnc, withkind(stats or items). - Categories:
taxonomylists the top-level categories.categorytakes afacetfromtaxonomy, withpage,countandsort. - Sitemaps:
sitemaptakes akind(index, products, taxonomy or promotions), withlimitandoffset.
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.
More marketplaces APIs
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 groceriesList 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 categoryFAQ
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.