# GridHub Electricity Historical Price Series

> GridHub Electricity Historical Price Series 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-ordered historical wholesale electricity price series for a single zone, covering up to 31 days per call.

## Facts

- Endpoint: GET https://api.grid-hub.app/v1/price/:zone
- 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-electricity-historical-price-series-afa9c641
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DOPfAXAQ8WFZA7SNVKz_p

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-historical-price-series-afa9c641
```

Example prompt: Pull the historical electricity wholesale prices for the CAISO zone in California for the last 7 days — I want to see the price trend hour by hour.

## When to prefer this

Use this endpoint when you need a historical time series of electricity prices for trend analysis, backtesting, or charting — up to 31 days of data per call. Prefer /v1/latest or /v1/brief when you only need the current or most recent price snapshot. This endpoint is the right choice when temporal depth matters more than recency.

## Known failure modes

- Invalid or unsupported zone ID returns an error — use /v1/zones to list valid zone IDs
- Date range exceeding 31 days is rejected or truncated
- start/end timestamps provided in wrong format (non-Unix seconds) cause parsing errors
- Payment failure (x402) if USDC not supplied correctly
- Empty result if no data exists for the specified window
- limit value above 5000 is capped or rejected

## How this service works

Historical price time series for one electricity zone, oldest-first, max 31 days per call (start/end are Unix seconds; default last 24h; limit caps rows). Use for trends and backtests; use /v1/latest or /v1/brief for current values. Zone ids from /v1/zones.

## Output

A time-ordered array of price data points for the specified electricity zone, each entry containing a timestamp (Unix seconds) and the wholesale electricity price. Covers up to 31 days per call, oldest entries first, with an optional row cap up to 5000.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gridhub-electricity-historical-price-series-afa9c641/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)
