# GridHub Generation Data by Zone

> GridHub Generation Data 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 generation mix time series data for a specified grid zone across 25 supported regions in the US, UK, Australia, and Europe.

## Facts

- Endpoint: GET https://api.grid-hub.app/v1/generation/%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-generation-data-by-zone-5c9c8345
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q67KMPtl4RkA-YCHlFKHa

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-generation-data-by-zone-5c9c8345
```

Example prompt: Can you pull the latest electricity generation data for the GB zone from GridHub for the last 6 hours?

## When to prefer this

Use this endpoint when you need live or near-real-time electricity generation time series data for a specific grid zone. It is best suited for monitoring current grid output, building dashboards, or triggering workflows based on real-time generation levels. Prefer this over the historical price endpoint when recency matters and over the snapshot endpoint when you need multiple data points rather than a single current value.

## Known failure modes

- Invalid or unsupported zone ID returns an error — must match one of the 25 supported enum values
- Missing required zone path parameter causes a 400 or 404 response
- Start/end timestamps out of valid range may return empty data or an error
- Unpaid requests without the 'sample=true' query param will receive a 402 Payment Required response
- Rate limiting or payment failure may block access
- Limit exceeding 5000 rows is rejected

## 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 containing an array of time-series data points, each with a Unix timestamp, generation value, and unit (e.g. GBP/MWh or MW), along with the zone identifier, metric type ('generation'), record count, license type, 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": "generation",
  "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-generation-data-by-zone-5c9c8345/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)
