# GridHub Map Snapshot – All Zones

> GridHub Map Snapshot – All Zones is a paid API for AI agents from api.grid-hub.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns current electricity price, demand, and carbon intensity for all 25 GridHub zones in a single call, refreshed every 5 minutes.

## Facts

- Endpoint: GET https://api.grid-hub.app/v1/map/snapshot
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gridhub-map-snapshot-all-zones-e35c88be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uG-rVqyuqyJcTh3lN2oOv

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-map-snapshot-all-zones-e35c88be
```

Example prompt: Pull the latest GridHub snapshot and tell me which of the 25 zones has the cheapest wholesale electricity price and the lowest carbon intensity right now.

## When to prefer this

Use this endpoint when you need to compare or rank multiple electricity zones simultaneously in a single call. If you only need data for one specific zone with additional context, use /v1/brief/{zone} instead. This endpoint is ideal for dashboards, cross-zone optimization decisions, or any workflow that needs to evaluate all 25 zones at once without making 25 separate requests.

## Known failure modes

- Data temporarily unavailable if GridHub's 5-minute rebuild cycle is interrupted
- Individual zones may omit carbon intensity if the zone does not publish that metric
- Payment failure (x402) if USDC balance is insufficient or wallet is not configured
- Rate limiting if the endpoint is called too frequently within a short window

## How this service works

Current headline values (price, demand, and where published carbon intensity) for all 25 GridHub zones in one call. Use to compare or rank grids right now; rebuilt every 5 minutes. For one zone with context use /v1/brief/{zone}.

## Output

A JSON array covering all 25 GridHub zones, each entry containing the current wholesale electricity price, demand level, and (where published) carbon intensity value, with data no older than 5 minutes.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "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": {
  "zones": {
   "GB": {
    "price": {
     "unit": "GBP/MWh",
     "value": 88.76
    },
    "demand": {
     "unit": "MW",
     "value": 23655
    }
   }
  },
  "updated": 1788017168
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gridhub-map-snapshot-all-zones-e35c88be/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)
