# GridHub Demand — Live Electricity Demand by Zone

> GridHub Demand — Live Electricity Demand by Zone is a paid API for AI agents from api.grid-hub.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns live electricity demand time series for a specified grid zone, covering up to 5000 data points per call across 25 grids in the US, UK, Australia, and Europe.

## Facts

- Endpoint: GET https://api.grid-hub.app/v1/demand/%7Bzone%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gridhub-demand-live-electricity-demand-by-zone-82bcf151
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uoKAwgdnBfLlPre4AaYU1

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 gridhub-demand-live-electricity-demand-by-zone-82bcf151
```

Example prompt: Can you pull the latest electricity demand figures for the GB grid zone from GridHub for the past hour?

## When to prefer this

Use this endpoint when you need live or near-real-time electricity demand data for a specific grid zone across the US, UK, Australia, or Europe. It is especially suited for monitoring applications, energy dashboards, or alerting systems that need sub-hourly demand readings. Prefer this over the historical endpoint when you need current conditions rather than long-run time series analysis. The sample=true parameter allows free exploration without payment credentials.

## Known failure modes

- Invalid zone identifier returns an error — only the 25 enumerated zone IDs are accepted
- Time window producing more than 5000 rows may be truncated or require pagination via start/end/limit parameters
- Missing x402 payment header results in 402 Payment Required response (use sample=true for a free truncated preview)
- Very recent timestamps may have no data yet due to publication lag from grid operators
- Start timestamp after end timestamp returns an empty or error response

## How this service works

Live wholesale electricity prices, demand, and generation mix across 25 grids in the US, UK, Australia, and Europe. Pay-per-call API access from $0.001.

## Output

Returns a JSON object with a data array of timestamped demand readings (Unix seconds timestamp, numeric value, and unit such as GBP/MWh or equivalent), the zone identifier, count of rows returned, metric name ('demand'), license information, and attribution string.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "zone"
     ],
     "properties": {
      "zone": {
       "enum": [
        "US-CAISO",
        "US-ERCOT",
        "US-PJM",
        "US-MISO",
        "US-NYISO",
        "US-ISONE",
        "US-SPP",
        "GB",
        "AU-NSW",
        "AU-QLD",
        "AU-VIC",
        "AU-SA",
        "AU-TAS",
        "DE-LU",
        "FR",
        "ES",
        "IT-NO",
        "NL",
        "BE",
        "PL",
        "SE-3",
        "NO-2",
        "DK-1",
        "AT",
        "CH"
       ],
       "type": "string",
       "description": "Zone id from /v1/zones"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "end": {
       "type": "string",
       "description": "Window end, Unix seconds"
      },
      "limit": {
       "type": "string",
       "description": "Max rows (up to 5000)"
      },
      "start": {
       "type": "string",
       "description": "Window start, Unix seconds"
      },
      "sample": {
       "enum": [
        "true"
       ],
       "type": "string",
       "description": "Free truncated sample, no payment or credentials"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "ts": 1787961600,
    "unit": "GBP/MWh",
    "value": 88.76
   },
   {
    "ts": 1787963400,
    "unit": "GBP/MWh",
    "value": 91.2
   }
  ],
  "zone": "GB",
  "count": 2,
  "metric": "demand",
  "license": "NESO-Open-Licence",
  "attribution": "Supported by National Energy SO Open Data"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gridhub-demand-live-electricity-demand-by-zone-82bcf151/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.grid-hub.app](https://www.zero.xyz/host/api.grid-hub.app/llms.txt)
