# Kelkoo Category Tree API Documentation

`GET /api/kelkoo/categories` Returns the public category tree with numeric ids. Feed an id to the search category filter. Only ids that the source returns are accepted.

## Credits

A successful request costs **1 credit**. Errors, challenges and empty results cost nothing. The response shows the charge in `meta.credits_charged`. Clients are never rate limited.

- **Documentation:** [https://scrappa.co/docs/kelkoo-api/kelkoo_categories](https://scrappa.co/docs/kelkoo-api/kelkoo_categories)
- **API group:** Kelkoo API
- **Endpoint:** `GET https://scrappa.co/api/kelkoo/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/kelkoo/categories"
```

## Example response

```json
{
    "success": true,
    "country": "fr",
    "categories": [],
    "public_ids": [],
    "meta": {
        "endpoint_family": "kelkoo-categories",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The source has no record for that id. Non-billable. |
| 422 | Validation Error | A parameter is missing, unknown, conflicting or invalid. Unknown parameters are rejected. Non-billable. |
| 503 | Source Unavailable | The source could not be reached or changed its response shape. Retryable and never billed. Clients are never rate limited. |

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