# Ocado Search API Documentation

<p>Search public Ocado grocery products. Each item has name, brand, size, price, unit price, image, availability, the numeric id used by product and its product_uuid. Prices are GBP. One page of results. 9 credits per successful request with data.</p>

- **Documentation:** [https://scrappa.co/docs/ocado-api/ocado_search](https://scrappa.co/docs/ocado-api/ocado_search)
- **API group:** Ocado API
- **Endpoint:** `GET https://scrappa.co/api/ocado/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search text, for example milk. |

## Example response

```json
{
    "data": {
        "page": 1,
        "items": [
            {
                "id": "30567011",
                "name": "Ocado Milk",
                "price": 1.3,
                "currency": "GBP",
                "product_uuid": "590cb3fd-45f7-4827-8711-1af0c2ace8fb"
            }
        ],
        "query": "milk"
    },
    "meta": {
        "credits": 9,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | No products were found for that query. |
| 503 | Source Unavailable | The public source could not be reached. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
