Ocado Homepage Feed
ocado.home.feed.list
See the products Ocado shows a visitor on its homepage, with prices and offers.
At a glance
- Endpoint ID
ocado.home.feed.list- Price
- 5 credits per call; failed calls are free
- Runs for up to
- 45 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
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.home.feed.list", "input": {}}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "ocado.home.feed.list", "input": {}}''')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.home.feed.list", "input": {}}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
This endpoint takes an empty input object.
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "returned": 27, "total_products": 295, "items": [ { "name": "Ocado Cucumber", "available": true, "brand": "Ocado", "gtin": null, "image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/e8d879f9-5f2b-4508-b644-24c3c60280f6/300x300.jpg", "pack_size": null, "retailer_product_id": "240875011", "url": "https://www.ocado.com/products/ocado-cucumber/240875011", "price": { "amount": 0.99, "currency": "GBP" }, "unit_price": { "amount": 99, "currency": "GBX", "unit": "each" }, "member_prices": [], "promotions": [ { "buy_quantity": null, "description": "Everyday Savers", "end": null, "for_price": null, "id": "54bc071d-831e-41a0-a64d-3fa6d02cd819", "start": null, "type": "offer" } ] }, { "name": "Ocado British Semi Skimmed Milk 4 Pints", "available": true, "brand": "Ocado", "gtin": null, "image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/5a1c151c-ad7f-4f6f-b7f6-c5a789cb3b96/300x300.jpg", "pack_size": "2.272L", "retailer_product_id": "78914011", "url": "https://www.ocado.com/products/ocado-british-semi-skimmed-milk-4-pints/78914011", "price": { "amount": 1.65, "currency": "GBP" }, "unit_price": { "amount": 72.6, "currency": "GBX", "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" } ] } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
items[].name |
string | The name as Ocado shows it. | Ocado Cucumber |
items[].brand |
string | The product's brand, such as Ocado or M&S. | Ocado |
items[].pack_size |
null | The pack size, such as 2L. | null |
items[].price.amount |
number | The amount, in the currency beside it. | 0.99 |
items[].unit_price.amount |
integer | The amount, in the currency beside it. | 99 |
items[].unit_price.currency |
string | GBP for pounds, GBX for pence. | GBX |
items[].unit_price.unit |
string | What the unit price is per, such as per_litre. | each |
items[].retailer_product_id |
string | Ocado's product number; the product and review endpoints take it. | 240875011 |
items[].price |
object | The price of one pack. | 2 fields |
items[].available |
boolean | Whether Ocado lists the product as available to order; not a stock count. | true |
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 |
null | null | |
items[].promotions[].description |
string | Everyday Savers | |
items[].promotions[].end |
null | null | |
items[].promotions[].for_price |
null | null | |
items[].promotions[].id |
string | 54bc071d-831e-41a0-a64d-3fa6d02cd819 | |
items[].promotions[].start |
null | null | |
items[].promotions[].type |
string | offer | |
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/ocado-cucumber/240875011 |
items |
array | The products on this page. | 27 records |
returned |
integer | How many entries this page holds. | 27 |
total_products |
integer | How many products there are in total. | 295 |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Ocado endpoints
Something missing or unclear? Ask the team that builds the Ocado endpoints.