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

Knuspr Filters And Sorting API Documentation

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

Knuspr Filters And Sorting API lists public facet groups with their keys and match counts, or the sort options for search and offers. The keys feed the filter data on the search route.

Send mode search, category, sorting or sale_sorting. A search needs search; a category needs category. Costs 1 credit per request; empty results and failed requests are free.

Knuspr Filters And Sorting API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/knuspr/filters
Auth header
x-api-key
Cost
1 credit / request
mode = example
Response preview
200 OK
{
    "data": {
        "mode": "sorting",
        "sorting": [
            {
                "key": "recommended",
                "label": "Empfohlen"
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "filters"
...

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.

3 optional filters available.

mode string Required

search, category, sorting or sale_sorting.

Example value example
category string Optional

Category id, required for mode=category.

Example value example
category_type string Optional

sales or normal for mode=category, default sales.

Example value example

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": {
        "mode": "sorting",
        "sorting": [
            {
                "key": "recommended",
                "label": "Empfohlen"
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "filters"
    },
    "success": true
}

Errors

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

422

Validation Error

The mode or a required value is invalid. This response is not billable.

{
    "errors": {
        "mode": [
            "Mode is search, category, sorting or sale_sorting."
        ]
    },
    "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": "filters"
    },
    "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.