APIs / Marketplaces / Ocado
from 9 credits per call2 endpoints14 datapointsChecked working 6 Dec 2026
Ocado API
Ocado API for UK grocery search and product lookups: prices, unit prices, pack sizes, stock, ratings and shelf life. 9 to 12 credits per successful call.
{
"success": true,
"data": {
"query": "milk",
"page": 1,
"count": 46,
"total": 46,
"has_next_page": false,
"items": [
{
"id": "30567011",
"product_uuid": "590cb3fd-45f7-4827-8711-1af0c2ace8fb",
"name": "Yeo Valley Organic Fresh Whole Milk",
"brand": "Yeo Valley",
"size": "2L",
"url": "https://www.ocado.com/products/30567011",
"image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/aba0e337-3a35-4512-a444-153e47ef7d2d/300x300.jpg",
"currency": "GBP",
"price": 3.15,
"unit_price": 1.58,
"availability": true,
"rating": 4,
"review_count": 220,
"guaranteed_product_life": {
"quantity": 6,
"unit": "DAY"
}
},
{
"id": "24581011",
"product_uuid": "4b1cb801-6e93-4d96-9f04-7cf9f577bdb2",
"name": "Cravendale Filtered Fresh Semi Skimmed Milk Fresher for Longer",
"brand": "Cravendale",
"size": "2L",
"url": "https://www.ocado.com/products/24581011",
"image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/dd7a478e-89b0-4a45-a008-ddfbe282a123/300x300.jpg",
"currency": "GBP",
"price": 2.65,
"unit_price": 1.33,
"availability": true,
"rating": 4.5,
"review_count": 335,
"guaranteed_product_life": {
"quantity": 2,
"unit": "WEEK"
}
},
{
"id": "30568011",
"product_uuid": "c05873ac-d00c-45db-9703-36d96fe2823e",
"name": "Yeo Valley Organic Fresh Semi Skimmed Milk",
"brand": "Yeo Valley",
"size": "2L",
"url": "https://www.ocado.com/products/30568011",
"image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/b84fb9e5-a887-484b-b054-366cf96d3923/300x300.jpg",
"currency": "GBP",
"price": 3.15,
"unit_price": 1.58,
"availability": true,
"rating": 3.8,
"review_count": 228,
"guaranteed_product_life": {
"quantity": 6,
"unit": "DAY"
}
}
]
},
"meta": {
"endpoint_family": "search",
"request_id": "req_2c2de860eab342a7b3015925f9a446e9",
"credits_charged": 9,
"credits_remaining": 4823
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | idstring | product_uuidstring | namestring | brandstring | sizestring | urlurl | imageurl | currencystring | pricenumber | unit_pricenumber | availabilityboolean | ratingnumber | review_countinteger | guaranteed_product_lifeobject |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 30567011 | 590cb3fd-45f7-4827-8711-1af0c2ace8fb | Yeo Valley Organic Fresh Whole Milk | Yeo Valley | 2L | https://www.ocado.com/products/30567011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/aba0e337-3a35-4512-a444-153e47ef7d2d/300x300.jpg | GBP | 3.15 | 1.58 | true | 4 | 220 | {2 fields} |
| 2 | 24581011 | 4b1cb801-6e93-4d96-9f04-7cf9f577bdb2 | Cravendale Filtered Fresh Semi Skimmed Milk Fresher for Longer | Cravendale | 2L | https://www.ocado.com/products/24581011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/dd7a478e-89b0-4a45-a008-ddfbe282a123/300x300.jpg | GBP | 2.65 | 1.33 | true | 4.5 | 335 | {2 fields} |
| 3 | 30568011 | c05873ac-d00c-45db-9703-36d96fe2823e | Yeo Valley Organic Fresh Semi Skimmed Milk | Yeo Valley | 2L | https://www.ocado.com/products/30568011 | https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/b84fb9e5-a887-484b-b054-366cf96d3923/300x300.jpg | GBP | 3.15 | 1.58 | true | 3.8 | 228 | {2 fields} |
[
{
"id": "30567011",
"product_uuid": "590cb3fd-45f7-4827-8711-1af0c2ace8fb",
"name": "Yeo Valley Organic Fresh Whole Milk",
"brand": "Yeo Valley",
"size": "2L",
"url": "https://www.ocado.com/products/30567011",
"image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/aba0e337-3a35-4512-a444-153e47ef7d2d/300x300.jpg",
"currency": "GBP",
"price": 3.15,
"unit_price": 1.58,
"availability": true,
"rating": 4,
"review_count": 220,
"guaranteed_product_life": {
"quantity": 6,
"unit": "DAY"
}
},
{
"id": "24581011",
"product_uuid": "4b1cb801-6e93-4d96-9f04-7cf9f577bdb2",
"name": "Cravendale Filtered Fresh Semi Skimmed Milk Fresher for Longer",
"brand": "Cravendale",
"size": "2L",
"url": "https://www.ocado.com/products/24581011",
"image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/dd7a478e-89b0-4a45-a008-ddfbe282a123/300x300.jpg",
"currency": "GBP",
"price": 2.65,
"unit_price": 1.33,
"availability": true,
"rating": 4.5,
"review_count": 335,
"guaranteed_product_life": {
"quantity": 2,
"unit": "WEEK"
}
},
{
"id": "30568011",
"product_uuid": "c05873ac-d00c-45db-9703-36d96fe2823e",
"name": "Yeo Valley Organic Fresh Semi Skimmed Milk",
"brand": "Yeo Valley",
"size": "2L",
"url": "https://www.ocado.com/products/30568011",
"image": "https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/b84fb9e5-a887-484b-b054-366cf96d3923/300x300.jpg",
"currency": "GBP",
"price": 3.15,
"unit_price": 1.58,
"availability": true,
"rating": 3.8,
"review_count": 228,
"guaranteed_product_life": {
"quantity": 6,
"unit": "DAY"
}
}
]id,product_uuid,name,brand,size,url,image,currency,price,unit_price,availability,rating,review_count,guaranteed_product_life
30567011,590cb3fd-45f7-4827-8711-1af0c2ace8fb,Yeo Valley Organic Fresh Whole Milk,Yeo Valley,2L,https://www.ocado.com/products/30567011,https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/aba0e337-3a35-4512-a444-153e47ef7d2d/300x300.jpg,GBP,3.15,1.58,true,4,220,"{""quantity"":6,""unit"":""DAY""}"
24581011,4b1cb801-6e93-4d96-9f04-7cf9f577bdb2,Cravendale Filtered Fresh Semi Skimmed Milk Fresher for Longer,Cravendale,2L,https://www.ocado.com/products/24581011,https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/dd7a478e-89b0-4a45-a008-ddfbe282a123/300x300.jpg,GBP,2.65,1.33,true,4.5,335,"{""quantity"":2,""unit"":""WEEK""}"
30568011,c05873ac-d00c-45db-9703-36d96fe2823e,Yeo Valley Organic Fresh Semi Skimmed Milk,Yeo Valley,2L,https://www.ocado.com/products/30568011,https://www.ocado.com/images-v3/eafa5127-d256-497b-9609-4869092accd6/b84fb9e5-a887-484b-b054-366cf96d3923/300x300.jpg,GBP,3.15,1.58,true,3.8,228,"{""quantity"":6,""unit"":""DAY""}"Recorded from our API · 3 items shown · 14 datapoints per itemGET /v1/ocado/search?query=milk
14 datapoints
Identity
- idstring
- product_uuidstring
- namestring
- brandstring
Contact
- urlurl
Reputation
- imageurl
- ratingnumber
- review_countinteger
Price
- currencystring
- pricenumber
- unit_pricenumber
Other
- sizestring
- availabilityboolean
- guaranteed_product_lifeobject
Playground
Run this API
curl "https://api.perceptlayer.com/v1/ocado/search?query=milk" \
-H "X-API-Key: $API_KEY"Ocado · 2 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/ocado/product | id | product | 12 credits |
GET/v1/ocado/search | query | idproduct_uuidnamebrandsizeurl+8 more | 9 credits |
Overview
About the Ocado API
What you can get
The Ocado API returns Ocado grocery data from the UK as JSON through 2 endpoints. Prices are in GBP.
- Search:
searchtakes aquery. - Products:
producttakes anid.
The recorded search for "milk" returns query, page, count, total (46 in that recording), has_next_page and items. Each item has id, product_uuid, name, brand, size, url, image, currency, price, unit_price, availability, rating, review_count and guaranteed_product_life. The first result, Yeo Valley Organic Fresh Whole Milk 2L, was 3.15 GBP with a unit_price of 1.58 and a guaranteed life of 6 days.
How a call works
Search, then look up: GET /v1/ocado/search?query=milk with your key in the X-API-Key header returns each product's id. Pass it to product, for example GET /v1/ocado/product?id=30567011, to refresh its price, availability, rating and review_count. A search costs 9 credits and a product lookup 12; failed calls cost nothing.
More marketplaces APIs
Use cases
Track Ocado prices for a basket of groceries
Use the Ocado API to track Ocado prices for a basket of groceriesCompare unit prices across brands for one product type
Use the Ocado API to compare unit prices across brands for one product typeCheck whether a product is available before adding it to a list
Use the Ocado API to check whether a product is available before adding it to a listCompare guaranteed shelf life between products
Use the Ocado API to compare guaranteed shelf life between productsFAQ
Questions
How much does the Ocado API cost?
`search` costs 9 credits per successful call and `product` costs 12. Failed calls cost nothing. New accounts get free credits to start, and credit packs bring the price down as you scale.
What does the product endpoint return?
`id`, `retailer_product_id`, `name`, `brand`, `image`, `currency`, `price`, `availability`, `rating` and `review_count`. Pack `size`, `unit_price` and `guaranteed_product_life` come from `search` results, not from `product`.
Do I need an Ocado account?
No. You call this Ocado API with your Perceptlayer key in the `X-API-Key` header, with no Ocado login.
Is this the official Ocado API?
No. Perceptlayer is an independent service and is not affiliated with Ocado. It returns Ocado data as JSON with a Perceptlayer key, so there is no Ocado developer account, app review or partner approval to get first. It only reads data: if Ocado has an official API and you need to act on your own Ocado account, such as posting, managing orders or reading private data, use that one.
Should I build an Ocado scraper instead?
You can, but an Ocado scraper is code you maintain: page changes break it, requests get blocked, and Ocado's terms govern how you collect data. The Ocado API gives you 2 endpoints of named JSON fields for 9 credits per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the Ocado API with 100 free credits
No credit card. Failed calls are never billed.