Sainsbury's Products Search API
Search for an ingredient or product name and compare the returned packs, prices and public offers.
{ "count": 29, "has_more": false, "next_page": null, "page": 1, "page_size": 30, "total": 29, "products": [ { "name": "Sainsbury's British Semi Skimmed Milk, SO Organic 2.27L (4 pint)", "available": true, "brand": null, "gtin": null, "image": "https://assets.sainsburys-groceries.co.uk/gol/1208450/image.jpg", "pack_size": "4 pint", "retailer_product_id": "1208450", "url": "https://www.sainsburys.co.uk/gol-ui/product/sainsburys-british-semi-skimmed-milk-so-organic-2-27l-4-pint", "price": { "amount": 2.65, "currency": "GBP" }, "unit_price": { "amount": 1.17, "currency": "GBP", "measure_amount": 1, "unit": "per_litre" }, "member_prices": [], "promotions": [] }, { "name": "Sainsbury's 2L Fresher for Longer Filtered Semi-Skimmed Milk", "available": true, "brand": null, "gtin": "0000000133845", "image": "https://assets.sainsburys-groceries.co.uk/gol/7657802/image.jpg", "pack_size": "2L", "retailer_product_id": "7657802", "url": "https://www.sainsburys.co.uk/gol-ui/product/sainsburys-2l-fresher-for-longer-filtered-semi-skimmed-milk", "price": { "amount": 2.2, "currency": "GBP" }, "unit_price": { "amount": 1.1, "currency": "GBP", "measure_amount": 1, "unit": "per_litre" }, "member_prices": [], "promotions": [] } ]}
| # | Name | Available | Gtin | Image | Pack size | Retailer product id | Url |
|---|---|---|---|---|---|---|---|
| 1 | Sainsbury's British Semi Skimmed Milk, SO Organic 2.27L (4 pint) | true | https://assets.sainsburys-groceries.co.uk/gol/1208450/image.jpg | 4 pint | 1208450 | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-british-… | |
| 2 | Sainsbury's 2L Fresher for Longer Filtered Semi-Skimmed Milk | true | 0000000133845 | https://assets.sainsburys-groceries.co.uk/gol/7657802/image.jpg | 2L | 7657802 | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-2l-fresh… |
| 3 | Sainsbury's British Semi Skimmed Milk 2.27L (4 pint) | true | 0000050181117 | https://assets.sainsburys-groceries.co.uk/gol/357937/image.jpg | 4 pint | 357937 | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-british-… |
| 4 | Sainsbury's British Semi Skimmed Milk 1.13L (2 pint) | true | 5000181013566 | https://assets.sainsburys-groceries.co.uk/gol/1137637/image.jpg | 2 pint | 1137637 | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-british-… |
| 5 | Sainsbury's British Semi Skimmed Milk 3.4L (6 pint) | true | 5000181016574 | https://assets.sainsburys-groceries.co.uk/gol/464390/image.jpg | 6 pint | 464390 | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-british-… |
| 6 | Cravendale Filtered Fresh Semi Skimmed Milk 2L Fresher for Long… | true | 5000181024043 | https://assets.sainsburys-groceries.co.uk/gol/3216620/image.jpg | 2L | 3216620 | https://www.sainsburys.co.uk/gol-ui/product/cravendale-filtered… |
| 7 | Sainsbury's British Semi Skimmed Milk 1 Pint | true | 5000181015614 | https://assets.sainsburys-groceries.co.uk/gol/173759/image.jpg | 1 Pint | 173759 | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-british-… |
| 8 | Sainsbury’s 1L Fresher For longer Filtered Semi Skimmed Milk | true | 0000000514828 | https://assets.sainsburys-groceries.co.uk/gol/8172497/image.jpg | 1L | 8172497 | https://www.sainsburys.co.uk/gol-ui/product/sainsbury-s-1l-fres… |
| 9 | Cravendale Filtered Fresh Semi Skimmed Milk Fresher for Longer … | true | 5000181024029 | https://assets.sainsburys-groceries.co.uk/gol/3216590/image.jpg | 1L | 3216590 | https://www.sainsburys.co.uk/gol-ui/product/cravendale-filtered… |
| 10 | Sainsbury's Everyday Lactose Free Semi Skimmed Dairy Drink 1L | true | 0000000346085 | https://assets.sainsburys-groceries.co.uk/gol/7943123/image.jpg | 1L | 7943123 | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-everyday… |
| 11 | Arla Bob Skimmed Milk Tastes like Semi Skimmed 2L | true | 5000181036312 | https://assets.sainsburys-groceries.co.uk/gol/7787579/image.jpg | 2L | 7787579 | https://www.sainsburys.co.uk/gol-ui/product/arla-bob-skimmed-mi… |
| 12 | Sainsbury's 1L Semi Skimmed British Long Life Milk | true | 0000000394482 | https://assets.sainsburys-groceries.co.uk/gol/8019434/image.jpg | 1L | 8019434 | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-1l-semi-… |
| 13 | Arla Lactofree Semi Skimmed Milk Drink 1L | true | 5000181028133 | https://assets.sainsburys-groceries.co.uk/gol/6372891/image.jpg | 1L | 6372891 | https://www.sainsburys.co.uk/gol-ui/product/arla-lactofree-semi… |
| 14 | Sainsbury's Semi Skimmed Long Life Milk 6x1L | true | 0000001530735 | https://assets.sainsburys-groceries.co.uk/gol/6646953/image.jpg | 6x1L | 6646953 | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-semi-ski… |
| 15 | Sainsbury's British Semi Skimmed Milk, SO Organic 1.13L (2 pint) | true | 0000001219494 | https://assets.sainsburys-groceries.co.uk/gol/6336297/image.jpg | 2 pint | 6336297 | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-british-… |
What you send, what comes back
The input object it accepts, and every field of a record, with the values from the response above.
- Keep the default page size of 30; larger pages do not work reliably yet.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| query | string | yes | Grocery keyword or ingredient. | semi skimmed milk |
| page | integer | no | One-based result page to fetch. From 1 to 1000. Default: 1. |
|
| page_size | integer | no | Number of results per page. From 1 to 90. Default: 30. |
| Field | Type | What it is | Example |
|---|---|---|---|
| products[].name | string | Product or category name as returned; use its identifier to join records. | Sainsbury's British Semi Skimmed Milk, SO Organic 2.27L (4 pint) |
| products[].retailer_product_id | string | Sainsbury’s identifier for matching the same pack. | 1208450 |
| products[].pack_size | string | Size expression where supplied; null stays unknown. | 4 pint |
| products[].price | object | Regular pack amount, separate from member prices. | 2 fields |
| products[].unit_price | object | Retailer’s published unit amount; do not assume Nectar basis. | 4 fields |
| products[].available | boolean | Public catalog flag, not local stock. | true |
| products[].brand | null | Brand where supplied; lists may omit it. | null |
| products[].gtin | null | Barcode where supplied, retained as text. | null |
| products[].url | string | Official product page link. | https://www.sainsburys.co.uk/gol-ui/product/sainsburys-british-… |
| products[].image | string | Product image URL where supplied. | https://assets.sainsburys-groceries.co.uk/gol/1208450/image.jpg |
| products[].member_prices | array | Nectar member prices for the product, if any. | empty in this sample |
| products[].price.amount | number | Regular shelf price in pounds, before any Nectar price. | 2.65 |
| products[].price.currency | string | Currency code supplied with the regular price. | GBP |
| products[].promotions | array | Offers running on the product. | empty in this sample |
| products[].unit_price.amount | number | Price per unit in pounds, such as per litre. | 1.17 |
| products[].unit_price.currency | string | Currency of the unit price, such as GBP. | GBP |
| products[].unit_price.measure_amount | integer | Quantity the unit price is for, such as 1 litre. | 1 |
| products[].unit_price.unit | string | Keep the unit with the amount when comparing packs. | per_litre |
| count | integer | Number of products on this page. | 29 |
| has_more | boolean | Whether more pages of results follow. | false |
| next_page | null | Page number to ask for next, or null on the last page. | null |
| page | integer | Page number of these results. | 1 |
| page_size | integer | Most products returned per page. | 30 |
| products | array | Products matching the search on this page. | 29 records |
| total | integer | How many products match the search in all. | 29 |
Call it from your code
Set UPSCRAPE_API_KEY to your key and copy a working request. No SDK needed.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "sainsburys.products.search", "input": { "query": "semi skimmed milk" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "sainsburys.products.search", "input": { "query": "semi skimmed milk" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "sainsburys.products.search", "input": { "query": "semi skimmed milk" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
{ "count": 29, "has_more": false, "next_page": null, "page": 1, "page_size": 30, "total": 29, "products": [ { "name": "Sainsbury's British Semi Skimmed Milk, SO Organic 2.27L (4 pint)", "available": true, "brand": null, "gtin": null, "image": "https://assets.sainsburys-groceries.co.uk/gol/1208450/image.jpg", "pack_size": "4 pint", "retailer_product_id": "1208450", "url": "https://www.sainsburys.co.uk/gol-ui/product/sainsburys-british-semi-skimmed-milk-so-organic-2-27l-4-pint", "price": { "amount": 2.65, "currency": "GBP" }, "unit_price": { "amount": 1.17, "currency": "GBP", "measure_amount": 1, "unit": "per_litre" }, "member_prices": [], "promotions": [] }, { "name": "Sainsbury's 2L Fresher for Longer Filtered Semi-Skimmed Milk", "available": true, "brand": null, "gtin": "0000000133845", "image": "https://assets.sainsburys-groceries.co.uk/gol/7657802/image.jpg", "pack_size": "2L", "retailer_product_id": "7657802", "url": "https://www.sainsburys.co.uk/gol-ui/product/sainsburys-2l-fresher-for-longer-filtered-semi-skimmed-milk", "price": { "amount": 2.2, "currency": "GBP" }, "unit_price": { "amount": 1.1, "currency": "GBP", "measure_amount": 1, "unit": "per_litre" }, "member_prices": [], "promotions": [] } ]}
More Sainsbury's endpoints
The same API key runs every one of them.
The same data from other platforms
-
Aldi UK List products from a Aldi UK grocery category with published prices and supported listing continuation. Category products1 credit per call
-
Amazon Search Amazon US for products with local prices, ratings and product links. Listings search5 credits per call
-
Apollo Pharmacy Walk a public Apollo Pharmacy brand listing with its total item count and each product's price and MRP. Brand products10 credits per call
-
Asda List paginated products from an exact Asda category, department, or aisle returned by the category taxonomy capability. Category products1 credit per 24 results per call
-
Blinkit List products from a Blinkit shelf, department default shelf or supported category URL for a chosen location. Category products1 credit per 12 results per call
-
Carrefour Browse a Carrefour category in Saudi Arabia, UAE, Egypt or Qatar, with normalized prices, stock, sellers and page metadata. Category productsContact for pricing per call
Sainsbury's Products Search API FAQ
The short answers. The docs have the long ones.
How much does the Sainsbury's Products Search API cost?
1 credit per 30 results per successful call, shown before it runs. You buy credits once, and paid credits never expire.
What do I send?
Send query. The input fields below list every option with its type and limits.
Do I need a Sainsbury's Groceries login?
No. It reads public Sainsbury's Groceries data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds sainsburys.products.search, checks its price and runs it with the same credits as the REST API.