# GridHub Electricity Data – Latest Zone Snapshot

> GridHub Electricity Data – Latest Zone Snapshot 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-16).

Returns the most recent value of every published metric for a single electricity zone, including wholesale price, demand, interchange, generation mix, and carbon intensity with units and timestamps.

## Facts

- Endpoint: GET https://api.grid-hub.app/v1/latest/:zone
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gridhub-electricity-data-latest-zone-snapshot-06273099
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YHujC3s0k3q6A7uFjSCPE

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-electricity-data-latest-zone-snapshot-06273099
```

Example prompt: What are the latest electricity grid metrics for US-CAISO right now — price, demand, generation mix, everything they publish?

## When to prefer this

Use this endpoint when you need the single most recent snapshot of all available metrics for one electricity zone — ideal for real-time dashboards, alerts, or agent decisions based on current grid state. Prefer this over the historical endpoint when you only need current values, not a time series. Choose a different sibling endpoint if you need data across all 25 zones simultaneously or if you need historical data spanning days.

## Known failure modes

- Invalid zone ID returns an error; valid zone IDs must be from the supported enum list
- Payment failure (x402 protocol) returns 402 if USDC micropayment is not provided
- Upstream data source outage may result in stale or missing metric values
- Network timeout if the provider's data feed is temporarily unavailable

## How this service works

Most recent value of every metric one electricity zone publishes (wholesale price, demand, interchange; generation mix for GB and US-CAISO; carbon intensity for GB), each with unit and timestamp. Note European day-ahead prices can carry a timestamp up to ~36h ahead. Zone ids from /v1/zones.

## Output

A JSON object containing the most recent values of all metrics published for the requested electricity zone — including wholesale price (with unit and timestamp), demand, interchange, and where available generation mix (GB and US-CAISO) and carbon intensity (GB). European day-ahead prices may have timestamps up to ~36 hours ahead.

## 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"
    }
   }
  }
 }
}
```

## More

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