# Trovaprezzi Price History API Documentation

`GET /api/trovaprezzi/price-history` returns a dated EUR price series for a variant slug from a product response. Dates are ISO 8601. A withheld series is returned empty, never invented.

- **Documentation:** [https://scrappa.co/docs/trovaprezzi-api/trovaprezzi_price_history](https://scrappa.co/docs/trovaprezzi-api/trovaprezzi_price_history)
- **API group:** Trovaprezzi API
- **Endpoint:** `GET https://scrappa.co/api/trovaprezzi/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 |
| --- | --- | --- | --- |
| `variant_slug` | string | Yes | Variant slug from a product response, without the trailing -v. |
| `current_price` | number | No | Optional current price shown on the product page. |
| `product_name` | string | No | Optional product name used by the chart. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/trovaprezzi/price-history?variant_slug=apple_airtag"
```

## Example response

```json
{
    "success": true,
    "variant_slug": "apple_airtag",
    "series": [
        {
            "date": "2026-05-22",
            "price": 20.9
        }
    ],
    "count": 1,
    "min": 20.9,
    "max": 20.9,
    "latest": {
        "date": "2026-05-22",
        "price": 20.9
    },
    "meta": {
        "duration_ms": 410,
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | One or more query parameters failed validation. |
| 503 | Upstream Unavailable | Trovaprezzi returned a challenged, empty or malformed response through the approved pool. |

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