# Kieskeurig Price History API Documentation

Scrappa's `GET /api/kieskeurig/price-history` endpoint returns the public price history of one Kieskeurig product as structured JSON. Each point has an EAN, a positive numeric EUR amount and an ISO 8601 date. The summary low and high prices are computed from these points. Pass the `source_url` from a search or product result as `path` to resolve the page in one lookup. Parsed pages are cached, so repeat calls use less traffic. When no dated points with a positive price are public, the endpoint returns HTTP 404 with code `HISTORY_NOT_PUBLIC` and no credit is charged. One request costs one credit. Failed requests are not billed.

- **Documentation:** [https://scrappa.co/docs/kieskeurig-api/kieskeurig_price_history](https://scrappa.co/docs/kieskeurig-api/kieskeurig_price_history)
- **API group:** Kieskeurig API
- **Endpoint:** `GET https://scrappa.co/api/kieskeurig/price-history`

## 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` | integer | Yes | Numeric product id from search or suggestions. Required. |
| `path` | string | No | Optional source_url from a search or product result, or its path part. External hosts are rejected. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/kieskeurig/price-history?id=51284338&path=%2Fbijverwarming%2Fproduct%2F51284338-philips-compacte-verwarming"
```

## Example response

```json
{
    "success": true,
    "id": 51284338,
    "series": [
        {
            "ean": "8710103980001",
            "amount": 39.95,
            "date": "2026-11-22T00:00:00Z",
            "id": 51284338
        }
    ],
    "summary": {
        "lowest_price_ever": 35,
        "highest_price_ever": 49,
        "offer_count": 8,
        "currency": "EUR"
    },
    "meta": {
        "duration_ms": 1240,
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | One or more query parameters failed validation. |
| 422 | Invalid Category | The category slug is not public. Use a slug from the categories endpoint. |
| 422 | Invalid Brand | The brand is not present in the returned category set. Allowed brands are listed in error.brands. Not billed. |
| 404 | No Public Offers | No public shop offers are available for this product. Not billed. |
| 404 | No Public Price History | No public dated price points are available for this product. Not billed. |
| 503 | Upstream Unavailable | Kieskeurig did not return usable public data. Please retry. |

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