# Knuspr Search API Documentation

<p><strong>Knuspr Search API</strong> searches public grocery products at Knuspr Germany. Each item has the name, brand, EUR price, unit price, promotions, full-size image, categories and a numeric product id.</p><p>Send <code>query</code> or a public <code>category</code> id, never both. <code>page</code> is 1-based and page 2 uses a new upstream offset. <code>sort</code> is recommended only. Other values return 422. Injected cards marked as promoted are removed. Rating and review count are null because the platform publishes no reviews. Costs 1 credit per request; empty results and failed requests are free.</p>

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

## 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 |
| --- | --- | --- | --- |
| `query` | string | No | Search text, 1 to 120 characters, for example milch. |
| `category` | string | No | Category id from the categories route, for example 1. Required unless query is sent. |
| `page` | integer | No | 1-based page number, default 1. |
| `sort` | string | No | recommended only. Other values return 422. |

## Example response

```json
{
    "data": {
        "page": 1,
        "count": 1,
        "items": [
            {
                "id": "1470",
                "name": "Alpro Barista Haferdrink",
                "brand": "Alpro",
                "image": "https://cdn.knuspr.de/image.jpg",
                "price": 2.29,
                "rating": null,
                "currency": "EUR",
                "discount": 0.3,
                "position": 1,
                "review_count": null,
                "regular_price": 2.59,
                "price_per_unit": 2.86
            }
        ],
        "query": "milch",
        "total": 1061,
        "category": null,
        "has_next_page": true
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter 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)
