---
title: "Historical time-series data (daily/weekly/monthly) for trend analysis"
method: POST
path: "/api/gas-storage/historical-data"
tags: ["Gas Storage (AGSI)"]
---

# Historical time-series data (daily/weekly/monthly) for trend analysis

`POST /api/gas-storage/historical-data`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/gas-storage/historical-data`
- Auth: none declared

Retrieve historical gas storage time-series data with flexible aggregation.

**Aggregation levels:**
- daily: Day-by-day granularity
- weekly: Weekly averages
- monthly: Monthly aggregates

**Use cases:**
- Seasonal pattern analysis
- Forecasting models
- Year-over-year comparison
- Anomaly detection

## Query parameters

- `token` string

## Request body

- object
  - `country` string, required: ISO 3166-1 alpha-2 country code
  - `from` string, required: Start date (YYYY-MM-DD)
  - `to` string, required: End date (YYYY-MM-DD)
  - `aggregation` 'daily' | 'weekly' | 'monthly': Data aggregation level
  - `format` 'json' | 'csv' | 'xlsx' | 'xls': Output format. "csv" and "xls"/"xlsx" trigger a file download.
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Historical data retrieved successfully

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
