Tesco: Search
Search from Tesco as JSON. 1 credit per successful call.
GET /v1/tesco/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Required | Up to 120 characters |
page | integer | Optional | Any |
sort | string | Optional | relevance, price-ascending, price-descending |
min_price | number | Optional | Any |
max_price | number | Optional | Any |
offer | boolean | Optional | Any |
category | string | Optional | Up to 255 characters |
Example request
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 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.items has these 17 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
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 |