# Ocado UK Groceries

> Search UK groceries. GTIN/EAN is not available on the measured surfaces.
> ReefAPI engine `ocado` · 2 endpoints · clean JSON, no scraping or browsers to manage.

## How to call
- **Endpoint:** `POST https://api.reefapi.com/ocado/v1/<action>` with a JSON body.
- **Auth:** header `x-api-key: <YOUR_REEFAPI_KEY>` — create one free (1,000 credits, no card): https://reefapi.com/signup
- **Response (every call):** `{ ok: boolean, data: ..., meta: { record_count, credits, ... }, error: { code, message } }` — branch on `ok`. Failed calls are free.
- **One key + one shared credit pool** across every ReefAPI API. Per-call credits are listed on each endpoint below.
- **Use it from an AI agent (MCP):** connect `https://api.reefapi.com/mcp` (remote streamable-http). Clients that add connectors by URL, such as ChatGPT and the Claude app, connect with OAuth 2.1 (the user pastes their key once on a ReefAPI page; discovery at `/.well-known/oauth-protected-resource/mcp`). Config files send the key as `Authorization: Bearer <key>`. `?key=<key>` in the URL also works as a last-resort fallback.

## Endpoints

### POST https://api.reefapi.com/ocado/v1/search — 3 credits
Search UK groceries. GTIN/EAN is not available on the measured surfaces.

**Parameters:**
- `query` (string, required) — Product text up to 50 characters.
- `limit` (integer, optional, default 24) — Requested products per source page, 1–48; source groups can change the returned count.
- `cursor` (string, optional) — Opaque next_cursor returned by the same action and filters; restart without it after five minutes.
- `sort` (enum, optional, default "favorite") — Source ordering within product groups; featured and offer groups are preserved. [one of: favorite, priceAscending, priceDescending, pricePerAscending, pricePerDescending, customerRating]
- `brand` (string, optional) — Exact brand value from the brands facet, e.g. Cravendale.
- `dietary` (enum, optional) — Source dietary/lifestyle facet value. [one of: vegetarian, glutenFree, vegan, celeryFree, eggFree, fatFree, lactoseFree, milkFree, mustardFree, nutFree, oatFree, organic, peanutFree, sesameFree, shellfishFree, soyaFree, sulphitesFree, wheatFree, yeastFree]
- `on_offer` (boolean, optional, default false) — Only products with source promotions when true.
- `new` (boolean, optional, default false) — Only products marked new by the source when true.

**Returns:** Products with GBP current shelf and unit prices, promotions, availability, facets and next_cursor. Search total is unknown except a complete first page.

**Example request body:**
```json
{
  "query": "milk",
  "limit": 24
}
```

### POST https://api.reefapi.com/ocado/v1/product/detail — 2 credits
Full public product and label sheet, including promotion terms.

**Parameters:**
- `id` (string, required) — Retailer id from search or an Ocado product URL; never a barcode.

**Returns:** Product plus description, all named label fields, nutrition table, detailed images and breadcrumbs. No stock quantity or GTIN/EAN on tested surfaces.

**Example request body:**
```json
{
  "id": "24577011"
}
```

## At scale
- **Volume:** 5M+ requests a day, measured at 60 requests a second across the fleet with no
  central bottleneck. Per-key limits are raised for high-volume accounts; volume pricing on request.
- **Missing a source:** tell us a site we do not cover and it becomes an engine. A customer asked
  for bestprice.gr on 21 Sep 2026 and it was in the catalog on 22 Sep.
- **Support:** 2 minute median time from a question in the live chat to the first answer. Setup
  help included, no support tier to buy.
- **One key, one credit pool** across every API. No per-site plans, no separate subscriptions.

## More
- Try it live, no code: https://reefapi.com/playground?engine=ocado
- Human docs page: https://reefapi.com/docs/ocado
- Overview page: https://reefapi.com/ocado-api
- Every ReefAPI API in one file (for your AI): https://reefapi.com/llms-full.txt
