# Kieskeurig Categories API Documentation

Scrappa's `GET /api/kieskeurig/categories` endpoint returns the public Kieskeurig category tree as structured JSON. Use a category slug with `GET /api/kieskeurig/search`. The result is cached, so it uses few upstream lookups. One request costs one credit. Failed requests are not billed.

- **Documentation:** [https://scrappa.co/docs/kieskeurig-api/kieskeurig_categories](https://scrappa.co/docs/kieskeurig-api/kieskeurig_categories)
- **API group:** Kieskeurig API
- **Endpoint:** `GET https://scrappa.co/api/kieskeurig/categories`

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

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/kieskeurig/categories"
```

## Example response

```json
{
    "success": true,
    "categories": [
        {
            "slug": "koelkast",
            "name": "Koelkasten",
            "count": 4359
        }
    ],
    "total": 1,
    "meta": {
        "duration_ms": 554,
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | One or more query parameters failed validation. |
| 422 | Invalid Category | The category slug is not public. Use a slug from the categories endpoint. |
| 422 | Invalid Brand | The brand is not present in the returned category set. Allowed brands are listed in error.brands. Not billed. |
| 404 | No Public Offers | No public shop offers are available for this product. Not billed. |
| 404 | No Public Price History | No public dated price points are available for this product. Not billed. |
| 503 | Upstream Unavailable | Kieskeurig did not return usable public data. Please retry. |

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