↑ ↓ to move ↵ to open
Ocado API reference

Ocado Category Products

ocado.category.products.list

List the first page of an Ocado category, about 50 products, with the number of products the category holds.

At a glance

Endpoint ID
ocado.category.products.list
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__category__products__list
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.category.products.list",  "input": {    "category_id": "01f3d930-813f-4038-983b-51bfcc7cb44e"  }}'

Input

FieldTypeRequiredWhat it doesExample
category_id string yes A category ID from the categories endpoint, such as 01f3d930-813f-4038-983b-51bfcc7cb44e for Fresh & Chilled Food. 01f3d930-813f-4038-983b-51bfcc7cb44e
page integer no Leave it out or send 1; use page_token for later pages.
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
{  "next_page_token": "6a007004-e8ad-4bdb-9550-9cf5508391c6",  "returned": 49,  "total_products": 289,  "items": [    {      "name": "Higgidy Nutrient Dense Extra Mature Cheddar & Spinach Mini Muffins",      "available": true,      "brand": "Higgidy",      "gtin": null,      "image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/34d5e055-0905-4d48-a51a-78a6ad9b5fca/300x300.jpg",      "pack_size": "130g",      "retailer_product_id": "703349011",      "url": "https://www.ocado.com/products/higgidy-nutrient-dense-extra-mature-cheddar-spinach-mini-muffins/703349011",      "price": {        "amount": 2.7,        "currency": "GBP"      },      "unit_price": {        "amount": 20.77,        "currency": "GBP",        "unit": "per_kg"      },      "member_prices": [],      "promotions": [        {          "buy_quantity": null,          "description": "Intro Offer: Now £2.70, will be £3.50",          "end": null,          "for_price": null,          "id": "45cd1e4c-f86a-4afa-b14b-047af3b58568",          "start": null,          "type": "offer"        }      ]    },    {      "name": "Oatly Oat Drink Barista Edition",      "available": true,      "brand": "Oatly",      "gtin": null,      "image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/b08a5568-ee9a-48bf-9bca-aa1f54e64c74/300x300.jpg",      "pack_size": "1.5L",      "retailer_product_id": "655008011",      "url": "https://www.ocado.com/products/oatly-oat-drink-barista-edition/655008011",      "price": {        "amount": 2.95,        "currency": "GBP"      },      "unit_price": {        "amount": 1.97,        "currency": "GBP",        "unit": "per_litre"      },      "member_prices": [],      "promotions": [        {          "buy_quantity": 3,          "description": "Buy 3 for £7.20",          "end": null,          "id": "22e88308-5721-4fc9-80a2-e7c421c66ead",          "start": null,          "type": "multibuy",          "for_price": {            "amount": 7.2,            "currency": "GBP"          }        }      ]    }  ]}

Fields

FieldTypeWhat it isExample
items[].name string The name as Ocado shows it. Higgidy Nutrient Dense Extra Mature Cheddar & Spinach Mini Muff…
items[].brand string The product's brand, such as Ocado or M&S. Higgidy
items[].pack_size string The pack size, such as 2L. 130g
items[].price.amount number The amount, in the currency beside it. 2.7
items[].unit_price.amount number The amount, in the currency beside it. 20.77
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_kg
items[].retailer_product_id string Ocado's product number; the product and review endpoints take it. 703349011
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 Intro Offer: Now £2.70, will be £3.50
items[].promotions[].end null null
items[].promotions[].for_price null null
items[].promotions[].id string 45cd1e4c-f86a-4afa-b14b-047af3b58568
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/higgidy-nutrient-dense-extra-mat…
items array The products on this page. 49 records
next_page_token string A token for the next page; the reviews endpoint takes it as page_token. 6a007004-e8ad-4bdb-9550-9cf5508391c6
returned integer How many entries this page holds. 49
total_products integer How many products there are in total. 289

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.