# Kruidvat Search API Documentation

<p>Search Kruidvat NL products by query or numeric category code with sort, facets, price range, page size and page. Cards carry code, EAN, numeric price and currency, original and sale price, stock, rating, review count, promotions and full size images. One credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/kruidvat-api/kruidvat_search](https://scrappa.co/docs/kruidvat-api/kruidvat_search)
- **API group:** Kruidvat API
- **Endpoint:** `GET https://scrappa.co/api/kruidvat/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 keywords; required unless category is given. |
| `category` | string | No | Numeric category code from a search facet, e.g. 30266674; required unless query is given. |
| `sort` | string | No | Optional sort token, e.g. price-desc; read codes from the sorts field. |
| `facets` | string | No | Optional facet filters as code:value. Read codes from the facets field. |
| `min_price` | string | No | Optional minimum sale price in EUR. |
| `max_price` | string | No | Optional maximum sale price in EUR. |
| `page_size` | string | No | Products per page: 20, 50 or 100, default 20. |
| `page` | string | No | Page number 1 to 50, default 1. |

## Example response

```json
{
    "data": {
        "page": 1,
        "items": [
            {
                "ean": "8710400123456",
                "code": "2171380",
                "name": "Tandpasta Colgate",
                "brand": "Colgate",
                "price": 2.39,
                "images": [
                    "https://media.kruidvat.nl/full/2171380.jpg"
                ],
                "rating": 4.5,
                "currency": "EUR",
                "review_count": 68,
                "stock_status": "inStock",
                "original_price": 2.79,
                "discount_amount": 0.4,
                "discount_percent": 14
            }
        ],
        "sorts": [],
        "total": 143,
        "facets": [],
        "has_more": true,
        "page_size": 20,
        "total_pages": 8
    },
    "meta": {
        "billable": true
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A filter or identifier failed validation. No credit is charged. |
| 400 | Unknown Identifier | The category or product identifier is not known. No credit is charged. |
| 503 | Upstream Unavailable | Public data is temporarily unavailable. No credit is charged. |

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