# Tweakers Price History API Documentation

GET /api/tweakers/price-history returns the public daily minimum and average price series for a known Tweakers product id. Choose country nl or be. Prices are numbers in EUR and dates are ISO 8601. A temporarily missing series returns a retryable 503 and is not billed.

- **Documentation:** [https://scrappa.co/docs/tweakers-api/tweakers_price_history](https://scrappa.co/docs/tweakers-api/tweakers_price_history)
- **API group:** Tweakers API
- **Endpoint:** `GET https://scrappa.co/api/tweakers/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 |
| --- | --- | --- | --- |
| `product_id` | integer | Yes | Product id from a Tweakers search result. |
| `country` | string | No | History series: nl (default) or be. |
| `days` | integer | No | History window in days, 1 to 3650. Defaults to the full series. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/tweakers/price-history?product_id=1234567&country=nl&days=365"
```

## Example response

```json
{
    "success": true,
    "product_id": "1234567",
    "country": "nl",
    "currency": "EUR",
    "min": 899,
    "max": 1299,
    "first_date": "2025-11-22",
    "last_date": "2026-11-22",
    "history": [
        {
            "date": "2026-11-22",
            "min": 939,
            "avg": 1010.5,
            "price": 939
        }
    ],
    "meta": {
        "duration_ms": 412,
        "history_count": 1,
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | One or more query parameters failed validation. |
| 503 | Source Unavailable | Tweakers returned no usable public data. The request is never billed. |

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