↑ ↓ to move ↵ to open
Ocado API reference

Ocado Products Search

ocado.products.search

Search Ocado by product or ingredient, such as semi skimmed milk. Each product has its price, unit price, availability and offers.

At a glance

Endpoint ID
ocado.products.search
Price
8 credits per call; failed calls are free
Runs for up to
45 seconds
Request
POST /execute
Run an endpoint
MCP tool when pinned
ocado__products__search
Pin tools
OpenAPI
openapi.json
Download

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.products.search",  "input": {    "query": "semi skimmed milk"  }}'

Input

FieldTypeRequiredWhat it doesExample
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.

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:

results[0].data
{  "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"        }      ]    }  ]}

Fields

FieldTypeWhat it isExample
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

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.