# Wine Historical Price Series & Trend Analytics

> Wine Historical Price Series & Trend Analytics is a paid API for AI agents from api.wines.bet, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns historical price time series and trend analytics for a specific wine, filterable by vintage year and time range.

## Facts

- Endpoint: GET https://api.wines.bet/v1/wine/history
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wine-historical-price-series-trend-analytics-2f254504
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tUVOVw3bTnHTAwgoJKIuM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability wine-historical-price-series-trend-analytics-2f254504
```

Example prompt: Pull the price history for Sassicaia 2018 over the past year from the wines.bet API so I can see how its value has trended.

## When to prefer this

Use this endpoint when you need time-series price data or trend analytics for a specific wine across a chosen historical window. Prefer this over the current-price endpoint when the goal is to analyze price movement, investment performance, or market trends over time rather than just the current spot price.

## Known failure modes

- Wine name not found or too ambiguous — returns empty results or error
- Vintage year outside available data range — returns empty series
- Invalid range enum value — returns validation error
- Rate limiting or payment failure — returns 402 or 429 error
- No historical data available for the requested wine/vintage combination

## How this service works

Historical wine price series, volatility tracking, and multi-period trend analytics (30d, 90d, 1y, all) for fine wine price index evaluation and investment analytics.

## Output

Returns a time series of historical prices for the requested wine, optionally scoped to a specific vintage year and time window (30d, 90d, 1y, or all-time). Data includes price points over the selected period enabling trend analysis and valuation tracking.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "lang": {
       "enum": [
        "en",
        "it"
       ],
       "type": "string",
       "description": "Response language (default: en)"
      },
      "name": {
       "type": "string",
       "description": "Wine name, producer, or denomination (e.g. Sassicaia, Tignanello, Barolo)"
      },
      "range": {
       "enum": [
        "30d",
        "90d",
        "1y",
        "all"
       ],
       "type": "string",
       "description": "Historical time window (default: 90d)"
      },
      "vintage": {
       "type": "integer",
       "description": "4-digit harvest vintage year (e.g. 2021)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "wine": {
    "id": "6645a1b2c3d4e5f6a7b8c9d0",
    "name": "Sassicaia",
    "vintage": 2021,
    "producer": "Tenuta San Guido",
    "countryCode": "IT"
   },
   "history": {
    "summary": {
     "period": "90d",
     "currency": "EUR",
     "max_price": 289,
     "min_price": 239.9,
     "change_pct": 2.96,
     "start_price": 250,
     "points_count": 45,
     "change_amount": 7.4,
     "current_price": 257.4
    },
    "snapshots": [
     {
      "date": "2026-06-15",
      "lowest_price": 245,
      "offers_count": 28,
      "average_price": 250,
      "highest_price": 265
     },
     {
      "date": "2026-09-11",
      "lowest_price": 239.9,
      "offers_count": 38,
      "average_price": 257.4,
      "highest_price": 289
     }
    ]
   }
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wine-historical-price-series-trend-analytics-2f254504/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.wines.bet](https://www.zero.xyz/host/api.wines.bet/llms.txt)
