---
title: "History of the fourteen-day demand forecast (NDFD, TSDFD)"
method: GET
path: "/forecast/demand/daily/history"
tags: ["Demand Forecast"]
---

# History of the fourteen-day demand forecast (NDFD, TSDFD)

`GET /forecast/demand/daily/history`

## Request

- Base URL: `https://data.elexon.co.uk/bmrs/api/v1`
- URL: `https://data.elexon.co.uk/bmrs/api/v1/forecast/demand/daily/history`
- Auth: none declared

Retrieve historical daily forecast demand data

## Query parameters

- `publishTime` string, date-time, required
- `format` 'json' | 'xml' | 'csv'

## Response `200`

Data retrieved

- InsightsApiModelsResponsesResponseWithMetadata1InsightsApiModelsResponsesDemandForecastDemandForecastDaily
  - `data` InsightsApiModelsResponsesDemandForecastDemandForecastDaily[], nullable
    - `publishTime` string, date-time, nullable
    - `transmissionSystemDemand` integer
    - `nationalDemand` integer, nullable
    - `forecastDate` string, date
  - `metadata` InsightsApiModelsMetadataApiResponseSourceMetadata
    - `datasets` string[], nullable

## Other responses

- `400`: Error with query parameters - see response for details
- `429`: Too many requests
- `500`: Server error - please try again later

---

[API](https://skmtc.dev/elexon/apis/bmrs-insights.md) - [All operations](https://skmtc.dev/elexon/apis/bmrs-insights/llms.txt) - [OpenAPI document](https://skmtc.dev/elexon/apis/bmrs-insights/revisions/d992cbaa9351?raw)
