# DexL Agents – Grid Demand

> DexL Agents – Grid Demand is a paid API for AI agents from agents.dexl.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns recent electricity grid demand data for a US balancing authority over a specified number of hours

## Facts

- Endpoint: POST https://agents.dexl.io/v1/tools/grid-demand
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dexl-agents-grid-demand-938e2ae7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3mggZkiWpKgqs-y-EWM7E

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 dexl-agents-grid-demand-938e2ae7 -d '<json body>'
```

Example prompt: Pull the last 72 hours of electricity grid demand for the CAL balancing authority so I can see how demand has trended over the past three days.

## When to prefer this

Choose this endpoint when you need recent historical electricity grid demand data for a specific US balancing authority without setting up accounts or API keys. It is ideal for agents that need on-demand, pay-per-call energy data across any major US grid region, especially when integrating with other DexL agent network tools or when cost control at the per-request level is important.

## Known failure modes

- Invalid or unrecognized region code returns an error — must use one of the 83 accepted balancing-authority codes
- Hours value outside the 1–168 range will be rejected
- Upstream grid data source unavailable may result in stale or missing data
- Malformed request body returns a 400-level error
- Payment failure via x402 results in the request not being fulfilled

## How this service works

Hourly US electricity demand, day-ahead demand forecast, net generation and total interchange for any of 83 balancing authorities - CAISO, ERCOT, PJM, MISO, NYISO, ISO-NE, SPP, Bonneville, or US48 for the whole Lower 48. Straight from EIA open data, grouped by hour so an agent reads one object per hour instead of four raw series.

## Output

Returns a JSON object containing recent grid demand readings for the specified US balancing authority, covering up to the requested number of hours (max 168). Includes a 'cached' flag indicating whether the response was served from cache and a 'units' field describing the data units, along with the demand output data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hours": {
   "type": "integer",
   "default": 24,
   "maximum": 168,
   "minimum": 1,
   "description": "How many of the most recent hours to return."
  },
  "region": {
   "type": "string",
   "description": "Balancing-authority code: CAL, TEX, NYIS, PJM, MISO, ERCO, ISNE, or US48 for the whole Lower 48. 83 codes accepted."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "units": 1,
  "cached": false,
  "output": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dexl-agents-grid-demand-938e2ae7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.dexl.io](https://www.zero.xyz/host/agents.dexl.io/llms.txt)
