# Knuspr Categories API Documentation

<p><strong>Knuspr Categories API</strong> lists public category names and ids used by the offers and rescue surfaces. Feed an id into the category or search route.</p><p>Send optional <code>type</code> multipack or last-minute and required comma separated <code>ids</code>, for example 1,12,2431. The source answers 422 when ids are missing. Costs 1 credit per request; empty results and failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/knuspr-api/knuspr_categories](https://scrappa.co/docs/knuspr-api/knuspr_categories)
- **API group:** Knuspr API
- **Endpoint:** `GET https://scrappa.co/api/knuspr/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 |
| --- | --- | --- | --- |
| `type` | string | No | multipack or last-minute, default multipack. |
| `ids` | string | Yes | Required comma separated category ids, for example 1,12,2431. Missing ids return 422. |

## Example response

```json
{
    "data": {
        "type": "last-minute",
        "count": 1,
        "categories": [
            {
                "id": "1",
                "name": "Obst und Gemuese"
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "categories"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A value is invalid. This response is not billable. |
| 503 | Upstream Unavailable | The source could not be reached. This response is not billable. |

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