# AgentRXI US Energy Prices

> AgentRXI US Energy Prices is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-15).

Returns current US energy prices and inventory data including retail gasoline, diesel, WTI crude oil, Henry Hub natural gas, crude oil inventories, and residential electricity prices by state, with latest value and change.

## Facts

- Endpoint: GET https://agentrxi.com/v1/energy?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-us-energy-prices-1c4e535f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g8XvRbutqUWjeI4nAZApC

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 agentrxi-us-energy-prices-1c4e535f
```

Example prompt: What's the latest WTI crude oil price and how much has it changed? Also pull the current Henry Hub natural gas price.

## When to prefer this

Choose this endpoint when you need current or recent US energy price data sourced directly from the EIA, including retail fuel prices, crude benchmarks, natural gas spot prices, inventory levels, or state-level electricity rates. Prefer this over general web search when you need structured, reliable, EIA-sourced energy data with a consistent schema and low latency. Best suited for agents tracking energy costs, monitoring commodity prices, or enriching financial/logistics data with fuel price context.

## Known failure modes

- Invalid indicator value returns an error — must be one of: gasoline, diesel, wti, natural_gas, crude_stocks, electricity
- Invalid or missing state code when querying electricity prices may return national average or error
- EIA data source may have publication lag — prices may not be real-time intraday
- Payment failure (x402) if USDC balance is insufficient
- Rate limiting if too many calls are made in rapid succession

## How this service works

US energy prices from the EIA: retail gasoline and diesel, WTI crude, Henry Hub natural gas, crude oil inventories and residential electricity prices by state, with the latest value and change.

## Output

Returns structured energy price data including the latest value and change for the requested indicator (gasoline, diesel, WTI crude, Henry Hub natural gas, crude oil inventories, or residential electricity). For electricity, data is filterable by US state using a 2-letter state code. Optional 'points' parameter controls the number of historical data points returned.

## 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": {
      "state": {
       "type": "string",
       "description": "2-letter state for electricity"
      },
      "points": {
       "type": "integer"
      },
      "indicator": {
       "type": "string",
       "description": "gasoline | diesel | wti | natural_gas | crude_stocks | electricity"
      }
     }
    }
   },
   "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/agentrxi-us-energy-prices-1c4e535f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
