Skip to content
Scrappa Get API key
Knuspr API 1 credit / request

Knuspr Category Products API Documentation

GET https://scrappa.co/api/knuspr/category

Knuspr Category Products API lists public products in one Knuspr category with EUR prices, images and ids. Use a category id from the categories route or from search.

Send id, type normal or sales, a 1-based page, a size and a sort. Page 2 uses a new upstream page. Costs 1 credit per request; empty results and failed requests are free.

Knuspr Category Products API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/knuspr/category
Auth header
x-api-key
Cost
1 credit / request
id = 1234567890
Response preview
200 OK
{
    "data": {
        "page": 1,
        "size": 14,
        "count": 1,
        "items": [
            {
                "id": "1470",
                "name": "Alpro Barista Haferdrink",
                "price": 2.29,
                "currency": "EUR",
                "position": 1
            }
        ],
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

4 optional filters available.

id string Required

Category id, for example 1 or 12.

Example value 1234567890
type string Optional

normal or sales, default normal.

Example value example
page integer Optional

1-based page number, default 1.

Example value 1
size integer Optional

Products per page, 1 to 50, default 14.

Example value 10
sort string Optional

recommended only. Other values return 422.

Example value relevance

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "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

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

The id or a value is invalid. This response is not billable.

{
    "errors": {
        "id": [
            "A category id is required, e.g. id=1."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

The source could not be reached. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "category"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Knuspr could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.