# greeneris-data GB Power Demand

> greeneris-data GB Power Demand is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns real-time and recent Great Britain national electricity demand readings (5-minute intervals) sourced from Elexon BMRS open data

## Facts

- Endpoint: GET https://data.greeneris.io/v1/gb/power-demand
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-data-gb-power-demand-933c6574
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DzalBdt-2hSDmIM5VYoPa

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability greeneris-data-gb-power-demand-933c6574
```

Example prompt: What's the current electricity demand on the GB national grid? Show me the last 5 five-minute readings in megawatts.

## When to prefer this

Choose this endpoint when you need real-time or recent Great Britain national electricity demand data at 5-minute granularity, sourced directly from Elexon BMRS official open data. Prefer this over generic energy APIs when you need authoritative GB-specific grid demand (not generation, not European continental grids), and when operating in a pay-per-call agent workflow using x402/USDC micropayments.

## Known failure modes

- HTTP 402 returned if payment not provided — agent must pay $0.002 USDC via x402 protocol and retry
- Invalid 'last' parameter (outside 1-500 range) may return a 400 error
- No data available if Elexon BMRS source is temporarily unavailable — upstream outage scenario
- Empty records array if no recent readings have been published yet

## How this service works

Near-real-time Great Britain national electricity demand outturn from the Elexon Insights (BMRS) open API: 5-minute MW readings sorted oldest to newest (default: last 24h = 288 points), plus a 'latest' field with the most recent value. ?last=N (1-500) sets how many recent points to return, e.g. ?last=12 = last hour. Upstream updates every ~5 min; served with a 5-min cache.

## Output

A JSON object containing the latest GB national electricity demand reading, an array of recent 5-minute interval records (each with a UTC timestamp and demand in MW), total record count, data resolution ('5min'), and attribution to Elexon Insights (BMRS) as the open data source.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "last": {
       "type": "string",
       "description": "Return only the N most recent 5-min readings (1-500, optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unit": "MW",
  "count": 2,
  "latest": {
   "time": "2026-07-14T05:45:00Z",
   "demand_mw": 21463
  },
  "source": "Elexon Insights (BMRS) national demand outturn, open data, attribution Elexon",
  "records": [
   {
    "time": "2026-07-14T05:40:00Z",
    "demand_mw": 21180
   },
   {
    "time": "2026-07-14T05:45:00Z",
    "demand_mw": 21463
   }
  ],
  "resolution": "5min"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-data-gb-power-demand-933c6574/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
