# x402stock Energy Price History

> x402stock Energy Price History is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Returns price history for a named energy benchmark (WTI crude, Brent crude, natural gas, or retail gasoline) including latest value, prior reading, change, and recent history.

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/energy/:product?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-energy-price-history-7264c17c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aTDNDjxJ43gWa-Jr6FKyx

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 x402stock-energy-price-history-7264c17c
```

Example prompt: Can you pull the WTI crude oil price history for the last 90 days, including the latest value and how much it's changed from the prior reading?

## When to prefer this

Use this endpoint when you need authoritative, EIA-sourced price data for the four major US energy benchmarks (WTI crude, Brent crude, Henry Hub natural gas, or retail gasoline). Ideal for dashboards, macro analysis, energy cost monitoring, or any agent workflow that needs current and historical commodity prices without scraping. Prefer over generic financial data APIs when you specifically need EIA-official energy benchmark series with consistent units and definitions.

## Known failure modes

- Invalid product slug returns 404 or error — must be one of: wti, brent, natural-gas, gasoline
- limit value out of range (<=0 or >365) returns validation error
- EIA source data unavailable may result in stale or empty history
- Payment not processed (402) if USDC payment is not attached

## How this service works

Price history for one energy benchmark — `wti` (WTI crude, $/bbl), `brent` (Brent crude, $/bbl), `natural-gas` (Henry Hub, $/MMBtu), or `gasoline` (US regular retail, $/gal) — with the latest value, prior reading, change, and recent history. Tune with `?limit=` (default 30, max 365). The catalog's commodities feed. Source: U.S. Energy Information Administration (EIA). From x402stock

## Output

Returns the latest price, prior period price, and the change between them for the selected energy benchmark, along with a time series of recent prices (up to 365 data points). Includes the unit of measurement ($/bbl, $/MMBtu, or $/gal) and the benchmark name. Data sourced from the U.S. Energy Information Administration (EIA).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "product": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 30,
       "maximum": 365,
       "exclusiveMinimum": 0
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-energy-price-history-7264c17c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.x402stock.xyz](https://www.zero.xyz/host/agents.x402stock.xyz/llms.txt)
