# Knuspr Category Products API Documentation

<p><strong>Knuspr Category Products API</strong> lists public products in one Knuspr category with EUR prices, images and ids. Use a category id from the categories route or from search.</p><p>Send <code>id</code>, <code>type</code> normal or sales, a 1-based <code>page</code>, a <code>size</code> and a <code>sort</code>. Page 2 uses a new upstream page. Costs 1 credit per request; empty results and failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/knuspr-api/knuspr_category](https://scrappa.co/docs/knuspr-api/knuspr_category)
- **API group:** Knuspr API
- **Endpoint:** `GET https://scrappa.co/api/knuspr/category`

## 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 |
| --- | --- | --- | --- |
| `id` | string | Yes | Category id, for example 1 or 12. |
| `type` | string | No | normal or sales, default normal. |
| `page` | integer | No | 1-based page number, default 1. |
| `size` | integer | No | Products per page, 1 to 50, default 14. |
| `sort` | string | No | recommended only. Other values return 422. |

## Example response

```json
{
    "data": {
        "page": 1,
        "size": 14,
        "count": 1,
        "items": [
            {
                "id": "1470",
                "name": "Alpro Barista Haferdrink",
                "price": 2.29,
                "currency": "EUR",
                "position": 1
            }
        ],
        "category": "1",
        "category_type": "normal"
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "category"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The id or 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)
