# Tesco Groceries Category API Documentation

<p>List public products for a facet id from the taxonomy. Prices are GBP and ids pass unchanged to product. Page 1 can carry extra upstream rows; results are cut to the requested count. 1 credit per successful request with data.</p>

- **Documentation:** [https://scrappa.co/docs/tesco-api/tesco_category](https://scrappa.co/docs/tesco-api/tesco_category)
- **API group:** Tesco Groceries API
- **Endpoint:** `GET https://scrappa.co/api/tesco/category`

## 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 |
| --- | --- | --- | --- |
| `facet` | string | Yes | Facet id from the taxonomy. |
| `page` | integer | No | Page from 1 to 20, default 1. |
| `count` | integer | No | Items per page from 1 to 48, default 24. |
| `sort` | string | No | relevance, price-ascending or price-descending. Price sort order applies to the returned page only. |

## Example response

```json
{
    "data": {
        "page": 1,
        "facet": "b;EXAMPLE",
        "items": [
            {
                "id": "305965589",
                "name": "Kefir Milk Drink",
                "price": 3.5,
                "currency": "GBP"
            }
        ]
    },
    "meta": {
        "credits": 1,
        "endpoint_family": "category"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Filter Not Honoured | The facet id was rejected. |
| 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)
