---
title: "Demand and Surplus Forecast Data (2-14 days ahead) Generating Plant Demand Margin"
method: GET
path: "/gb/elexon/forecasts/ocnmfd2"
tags: ["Elexon"]
---

# Demand and Surplus Forecast Data (2-14 days ahead) Generating Plant Demand Margin

`GET /gb/elexon/forecasts/ocnmfd2`

The Demand and Surplus forecast demand margin data is received hourly from NGESO. It shows the daily peak half hour MW value of Generating Plant Demand Surplus for each day for the 2 to 14 days ahead.

## Query parameters

- `publish_date_from` string, date-time, required
- `publish_date_to` string, date-time, required
- `limit` integer
- `offset` integer
- `timezone` 'UTC' | 'Europe/Berlin' | 'Europe/London' | 'America/New_York' | 'America/Chicago' | 'America/Los_Angeles'

## Response `200`

Success

- object
  - `count` integer, required
  - `next` string, uri, nullable
  - `previous` string, uri, nullable
  - `results` ElexonOCNMFD2[], required
    - `dataset` string
    - `publishTime` string, date-time
    - `forecastDate` string, date
    - `margin` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests

---

[API](https://skmtc.net/modoenergy/apis/modo-energy-api.md) · [All operations](https://skmtc.net/modoenergy/apis/modo-energy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modoenergy/modo-energy-api/versions/6c4b83d3fc12/schema)
