---
title: "Ocado API: UK grocery search, product lookups as JSON"
description: "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."
url: https://perceptlayer.com/apis/ocado
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / Ocado

from 9 credits per call 2 endpoints 14 datapoints 

# 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.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Ocado

GET /v1/ocado/search?query=milk 

```
{
  "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
  }
}
```

200 OK JSON X-Credits-Used: 9

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | id string | product\_uuid string | name string | brand string | size string | url url | image url | currency string | price number | unit\_price number | availability boolean | rating number | review\_count integer | guaranteed\_product\_life object |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 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} |

Recorded from our API · 3 items shown · 14 datapoints per item GET /v1/ocado/search?query=milk

14 datapoints

### Identity

-   id string
-   product\_uuid string
-   name string
-   brand string

### Contact

-   url url

### Reputation

-   image url
-   rating number
-   review\_count integer

### Price

-   currency string
-   price number
-   unit\_price number

### Other

-   size string
-   availability boolean
-   guaranteed\_product\_life object

Playground

## Run this API

cURL shell 

```
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`](https://perceptlayer.com/apis/ocado/product) | `id` | `product` | 12 credits |
| [GET `/v1/ocado/search`](https://perceptlayer.com/apis/ocado/search) | `query` | `id` `product_uuid` `name` `brand` `size` `url` +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:** `search` takes a `query`.
-   **Products:** `product` takes an `id`.

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.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

Use cases

### Track Ocado prices for a basket of groceries

`Use the Ocado API to track Ocado prices for a basket of groceries` 

### Compare unit prices across brands for one product type

`Use the Ocado API to compare unit prices across brands for one product type` 

### Check 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 list` 

### Compare guaranteed shelf life between products

`Use the Ocado API to compare guaranteed shelf life between products` 

FAQ

## 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.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
