# GridHub Live Electricity Market Data

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

Returns the latest wholesale electricity price, demand, and generation mix for a specified grid zone across 25 markets in the US, UK, Australia, and Europe.

## Facts

- Endpoint: GET https://api.grid-hub.app/v1/latest/%7Bzone%7D
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gridhub-live-electricity-market-data-c74e11a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sXB-_MsOS7XqKPLgDvzNJ

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-live-electricity-market-data-c74e11a0
```

Example prompt: What's the current wholesale electricity price and demand for the GB grid right now?

## When to prefer this

Choose this endpoint when you need the most recent single snapshot of wholesale electricity price and demand for a specific grid zone in real time. Prefer this over the historical endpoint when you only need the current value, not a time series. It covers 25 major grids across the US, UK, Australia, and Europe, making it ideal for live market monitoring, cost optimization triggers, or energy intelligence dashboards.

## Known failure modes

- Invalid zone ID returns an error — must use one of the 25 supported enum values (e.g. US-CAISO, GB, AU-NSW)
- Data may be delayed if the upstream grid operator has not published a new interval yet
- Payment failure (402) if USDC payment is not provided or insufficient — use ?sample=true for a free truncated response
- Network timeout if the grid operator's data feed is temporarily unavailable

## 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

A JSON object containing the zone identifier, license, attribution, and a metrics block with the latest wholesale price (value, unit like GBP/MWh or USD/MWh, timestamp, and resolution) and demand (value in MW, timestamp, and resolution). Generation mix data is included where published by the grid operator.

## 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": {
      "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": {
  "zone": "GB",
  "license": "NESO-Open-Licence",
  "metrics": {
   "price": {
    "ts": 1787961600,
    "unit": "GBP/MWh",
    "value": 88.76,
    "resolution": "30m"
   },
   "demand": {
    "ts": 1788013800,
    "unit": "MW",
    "value": 23655,
    "resolution": "30m"
   }
  },
  "attribution": "Supported by National Energy SO Open Data"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gridhub-live-electricity-market-data-c74e11a0/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)
