Ocado Products Search API
Search Ocado by product or ingredient, such as semi skimmed milk. Each product has its price, unit price, availability and offers.
- 10 credits per call
- Failed calls are free
- Updated
- ocado.products.search
{ "returned": 32, "items": [ { "name": "Yeo Valley Organic Fresh Semi Skimmed Milk", "available": true, "brand": "Yeo Valley", "gtin": null, "image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/b84fb9e5-a887-484b-b054-366cf96d3923/300x300.jpg", "pack_size": "2L", "retailer_product_id": "30568011", "url": "https://www.ocado.com/products/yeo-valley-organic-fresh-semi-skimmed-milk/30568011", "price": { "amount": 3.15, "currency": "GBP" }, "unit_price": { "amount": 1.58, "currency": "GBP", "unit": "per_litre" }, "member_prices": [], "promotions": [ { "buy_quantity": 2, "description": "Buy any 2 for £4.50", "end": null, "id": "f42970ca-edc6-446a-b6a2-b292d340c3a6", "start": null, "type": "multibuy", "for_price": { "amount": 4.5, "currency": "GBP" } } ] }, { "name": "Ocado British Semi Skimmed Milk 2 Pints", "available": true, "brand": "Ocado", "gtin": null, "image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/ac18c4f2-751c-41dd-814f-9afb066c2eda/300x300.jpg", "pack_size": "1.136L", "retailer_product_id": "78922011", "url": "https://www.ocado.com/products/ocado-british-semi-skimmed-milk-2-pints/78922011", "price": { "amount": 1.2, "currency": "GBP" }, "unit_price": { "amount": 1.06, "currency": "GBP", "unit": "per_litre" }, "member_prices": [], "promotions": [ { "buy_quantity": null, "description": "Everyday Savers", "end": null, "for_price": null, "id": "54bc071d-831e-41a0-a64d-3fa6d02cd819", "start": null, "type": "offer" } ] } ]}
| # | Product | Brand | Pack | Price | Unit price | Unit currency | Per | Available | Product ID | Image |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Yeo Valley Organic Fresh Semi Skimmed Milk | Yeo Valley | 2L | 3.15 | 1.58 | GBP | per_litre | true | 30568011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
| 2 | Ocado British Semi Skimmed Milk 2 Pints | Ocado | 1.136L | 1.2 | 1.06 | GBP | per_litre | true | 78922011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
| 3 | Ocado Organic British Semi Skimmed Milk 2 Pints | Ocado | 1.136L | 2 | 1.76 | GBP | per_litre | true | 584186011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
| 4 | M&S Organic Semi-Skimmed Milk 4 Pints | M&S | 2.272L | 2.65 | 1.17 | GBP | per_litre | true | 505327011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
| 5 | Ocado British Semi Skimmed Milk 4 Pints | Ocado | 2.272L | 1.65 | 72.6 | GBX | per_litre | true | 78914011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
| 6 | Cravendale Filtered Fresh Semi Skimmed Milk Fresher for Longer | Cravendale | 2L | 2.65 | 1.33 | GBP | per_litre | true | 24581011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
| 7 | M&S Select Farms British Semi Skimmed Milk 2 Pints | M&S | 1.136L | 1.2 | 1.06 | GBP | per_litre | true | 505371011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
| 8 | M&S Organic Semi Skimmed Milk | M&S | 568ml | 1.2 | 2.11 | GBP | per_litre | true | 505800011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
| 9 | Cravendale Filtered Fresh Semi Skimmed Milk 1L Fresher for Long… | Cravendale | 1L | 2 | 2 | GBP | per_litre | true | 42435011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
| 10 | Cravendale Filtered Fresh Semi Skimmed Milk Fresher for Longer | Cravendale | 3L | 3.9 | 1.3 | GBP | per_litre | true | 306136011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
What you send
The input
object of the request, with every field the endpoint accepts.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| query | string | yes | The product or ingredient to search for, such as semi skimmed milk. | semi skimmed milk |
| page_token | string | no | The next page token from the previous response, to read the next page. |
Fields it returns
What each record in the response holds, with the values from the sample above.
| Field | Type | What it is | Example |
|---|---|---|---|
| items[].name | string | The name as Ocado shows it. | Yeo Valley Organic Fresh Semi Skimmed Milk |
| items[].brand | string | The product's brand, such as Ocado or M&S. | Yeo Valley |
| items[].pack_size | string | The pack size, such as 2L. | 2L |
| items[].price.amount | number | The amount, in the currency beside it. | 3.15 |
| items[].unit_price.amount | number | The amount, in the currency beside it. | 1.58 |
| items[].unit_price.currency | string | GBP for pounds, GBX for pence. | GBP |
| items[].unit_price.unit | string | What the unit price is per, such as per_litre. | per_litre |
| items[].available | boolean | Whether Ocado lists the product as available to order; not a stock count. | true |
| items[].retailer_product_id | string | Ocado's product number; the product and review endpoints take it. | 30568011 |
| items[].price | object | The price of one pack. | 2 fields |
| items[].gtin | null | The barcode, when Ocado gives one; usually empty. | null |
| items[].image | string | The product picture. | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092… |
| items[].member_prices | array | Member-only prices, when Ocado shows them. | empty in this sample |
| items[].price.currency | string | GBP for pounds, GBX for pence. | GBP |
| items[].promotions | array | The offers on the product. | 1 records |
| items[].promotions[].buy_quantity | integer | 2 | |
| items[].promotions[].description | string | Buy any 2 for £4.50 | |
| items[].promotions[].end | null | null | |
| items[].promotions[].for_price | object | 2 fields | |
| items[].promotions[].id | string | f42970ca-edc6-446a-b6a2-b292d340c3a6 | |
| items[].promotions[].start | null | null | |
| items[].promotions[].type | string | multibuy | |
| items[].unit_price | object | The price per litre, kilo or item. | 3 fields |
| items[].url | string | The page on ocado.com. | https://www.ocado.com/products/yeo-valley-organic-fresh-semi-sk… |
| items | array | The products on this page. | 32 records |
| returned | integer | How many entries this page holds. | 32 |
Call it from your code, or ask your agent
Set UPSCRAPE_API_KEY to your key and copy a working request.
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": "ocado.products.search", "input": { "query": "semi skimmed milk" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "ocado.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": "ocado.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));
https://data.upscrape.com/mcp
Using Upscrape, search Ocado for semi skimmed milk. Make a table of product, brand, pack size, price and price per litre, converting any unit price given in pence to pounds. Put the offers, such as Buy any 2 for £4.50, in their own column.
More from the Ocado API
The same data from other platforms
Ocado Products Search API FAQ
The short answers. The docs have the long ones.
How much does the Ocado Products Search API cost?
10 credits 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 an Ocado login?
No. It reads public Ocado data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds ocado.products.search, checks its price and runs it with the same credits as the REST API.
Your first Ocado call is free.
Up to 100 free credits to start, no card needed.