---
title: "Gas"
method: GET
path: "/gb/national-grid/system/gas-prices"
tags: ["NESO"]
---

# Gas

`GET /gb/national-grid/system/gas-prices`

## Request

- Base URL: `https://api.modoenergy.com/pub/v1`
- URL: `https://api.modoenergy.com/pub/v1/gb/national-grid/system/gas-prices`
- Auth: one of:
  - API key in header `X-Token`
  - none

Daily and rolling average System Average Price (SAP) of gas traded in Great Britain. The SAP price is the average price for gas traded via the OCM (On-the-day Commodity Market) mechanism.

## Query parameters

- `date_from` string, date, required
- `date_to` string, date, 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` SAPHourlyActual[], required
    - `applicableAt` string, date-time, required
    - `applicableFor` string, date-time, required
    - `dataItem` string, required
    - `value` number, required
    - `generatedTime` string, date-time, required
    - `qualityIndicator` string, required

## Other responses

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

---

[API](https://skmtc.dev/modoenergy/apis/modo-energy-api.md) - [All operations](https://skmtc.dev/modoenergy/apis/modo-energy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/modoenergy/apis/modo-energy-api/revisions/7d9d1bd6ee06?raw)
