# tutti.ch Categories API Documentation

Retrieve the tutti.ch category tree with up to two levels: root categories and their sub categories, each with the id for the category filter of the search endpoint and the label in the chosen language. Leaf categories have no children key.

- **Documentation:** [https://scrappa.co/docs/tutti-api/tutti_categories](https://scrappa.co/docs/tutti-api/tutti_categories)
- **API group:** tutti.ch API
- **Endpoint:** `GET https://scrappa.co/api/tutti/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.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `language` | string | No | Label language: de (default), fr or it. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/tutti/categories?language=de"
```

## Example response

```json
{
    "success": true,
    "data": {
        "categories": [
            {
                "id": "antiquesArts",
                "label": "Antiquit\u00e4ten & Kunst"
            },
            {
                "id": "babyChild",
                "label": "Baby & Kind",
                "children": [
                    {
                        "id": "babyCare",
                        "label": "Babypflege"
                    },
                    {
                        "id": "strollersSeats",
                        "label": "Kinderwagen & Sitze"
                    }
                ]
            }
        ]
    },
    "meta": {
        "endpoint_family": "categories",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The language is not de, fr or it. This response is not billable. |
| 502 | Unexpected Upstream Response | tutti.ch answered with an error or an unexpected shape. This response is not billable; retry later. |
| 503 | Upstream Unavailable | tutti.ch is temporarily unreachable or blocked the request. This response is not billable; retry later. |

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