# idealo Categories API Documentation

Return the idealo.de category tree. Each node has the category ID, the name and its sub categories. is_leaf is true for a category that lists products. Use the IDs with search, deals and shop_products.

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

```json
{
    "meta": {
        "duration_ms": 40,
        "upstream_calls": 0
    },
    "success": true,
    "categories": [
        {
            "id": "30311",
            "url": "https://www.idealo.de/preisvergleich/SubProductCategory/30311.html",
            "name": "Elektroartikel",
            "is_leaf": false,
            "children": [
                {
                    "id": "19194",
                    "name": "Back\u00f6fen",
                    "is_leaf": true,
                    "children": []
                }
            ]
        }
    ]
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | Returned when a required parameter is missing or a value is out of range. No credits are charged. |
| 404 | Not Found | Returned when idealo does not know the product, shop or page. No credits are charged. |
| 503 | Service Unavailable | Returned when idealo could not be read after several attempts. Failed requests are not charged. Try again. |
| 502 | Unexpected Response | Returned when idealo answers with a page this API cannot read. Failed requests are not charged. |

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