# GridHub Capacity Data by Zone

> GridHub Capacity 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 a time-series of electricity capacity values for a specified grid zone, covering up to 5000 data points per call.

## Facts

- Endpoint: GET https://api.grid-hub.app/v1/capacity/%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-capacity-data-by-zone-1f12d741
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zt0WBAjJWYY9e9Io9Ohlb

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-capacity-data-by-zone-1f12d741
```

Example prompt: Pull the capacity time series for the GB electricity zone from GridHub for the last 24 hours — I want timestamps and values in GBP/MWh.

## When to prefer this

Use this endpoint when you need a time-series of capacity data for a specific electricity grid zone, particularly when you want to specify a time window or retrieve a bulk set of historical data points. Prefer this over snapshot endpoints when trend analysis or time-series storage is the goal. If you only need the current latest value, consider the /latest or /snapshot endpoints instead.

## Known failure modes

- Invalid or unsupported zone enum value returns an error — must use one of the 25 supported zone IDs
- Missing required zone path parameter returns a 400 or 404 error
- Payment not provided or insufficient (x402 protocol) returns a 402 Payment Required — use 'sample=true' for a free truncated response
- Start/end timestamps in wrong format or out of range may return empty data or an error
- Requesting more than 5000 rows via limit param may be rejected or silently capped

## 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 an array of timestamped capacity data points for the requested zone, each with a Unix timestamp, numeric value, and unit (e.g. GBP/MWh or MW). Also includes zone identifier, total count, metric name (capacity), license, and data attribution.

## 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": "capacity",
  "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-capacity-data-by-zone-1f12d741/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)
