---
title: "Get aggregated data for a forecast variable, up to 120 days"
method: GET
path: "/v2/forecasts/forecast-variables/{externalForecastVariableId}/aggregated-data"
tags: ["Forecast Data"]
---

# Get aggregated data for a forecast variable, up to 120 days

`GET /v2/forecasts/forecast-variables/{externalForecastVariableId}/aggregated-data`

Getting the aggregated data for the given forecast variable. The range between these two dates can not exceed 120 days.

## Path parameters

- `externalForecastVariableId` string, required

## Query parameters

- `externalUnitId` string, required
- `externalSectionId` string
- `startTime` string, date-time, required
- `endTime` string, date-time, required

## Response `200`

OK

- ForecastDataIngestionAggregatedData[]
  - `groupId` integer
  - `forecastVariableId` integer
  - `startTime` string, date-time
  - `endTime` string, date-time
  - `data` number, double
  - `skip` boolean
  - `dataType` 'ACTUAL' | 'PREDICTED' | 'FORECAST'

## Other responses

- `403` — Forbidden to perform this action

## Changes

- **2026-08-13** `70a12bbb88c9` — 1 info
  - the endpoint scheme security `OAuth2ClientCredentials` was added to the API

[Change history](https://skmtc.dev/quinyx/apis/quinyx-api/changes/v2/forecasts/forecast-variables/:externalForecastVariableId/aggregated-data/get.md)

---

[API](https://skmtc.dev/quinyx/apis/quinyx-api.md) · [All operations](https://skmtc.dev/quinyx/apis/quinyx-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/quinyx/quinyx-api/revisions/70a12bbb88c9/schema)
