# x402stock Energy Commodities Data

> x402stock Energy Commodities Data is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402 or MPP, $0.02/call, status unknown (last checked 2026-10-12).

Returns current market data for energy commodities including crude oil, natural gas, and gasoline, paid per-request via x402/USDC.

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/energy?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-energy-commodities-data-2906f24a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pcxZhPHs6BxqzBFUWCJWd

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-commodities-data-2906f24a
```

Example prompt: What are the current prices for crude oil and natural gas? I need the latest energy commodity market data right now.

## When to prefer this

Choose this endpoint when you need real-time or recent energy commodity price data (crude oil, natural gas, gasoline) without setting up API keys or accounts — payment is autonomous via x402/USDC at $0.02 per call. Prefer over traditional data APIs when building autonomous AI agents that need on-demand, pay-per-use commodity pricing.

## Known failure modes

- 402 Payment Required if USDC payment is not provided or insufficient
- Invalid properties parameter returns empty or malformed response
- Rate limiting or upstream data unavailability may return 503 or 504
- Unknown commodity identifiers may return empty data sets

## How this service works

Every energy benchmark in one call: WTI and Brent crude oil spot, Henry Hub natural gas spot, and US regular retail gasoline — each with its latest price, prior reading, and change. The catalog's commodities feed (no equity/forex/crypto endpoint carries these). For one benchmark with history use /api/v1/energy/{product}. Source: U.S. Energy Information Administration (EIA). From x402stock

## Output

Returns current market data for energy commodities (crude oil, natural gas, gasoline) including price levels and relevant market metrics, sourced via x402stock's data API and proxied through ZeroClick with payment handled in USDC.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "source",
  "as_of",
  "series",
  "products",
  "attribution"
 ],
 "properties": {
  "as_of": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ]
  },
  "series": {
   "type": "string"
  },
  "source": {
   "type": "string",
   "const": "eia"
  },
  "products": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "product",
     "series_id",
     "name",
     "unit",
     "eia_units",
     "frequency",
     "latest",
     "prior",
     "change",
     "change_percent"
    ],
    "properties": {
     "name": {
      "type": "string"
     },
     "unit": {
      "type": "string"
     },
     "prior": {
      "anyOf": [
       {
        "type": "object",
        "required": [
         "date",
         "value"
        ],
        "properties": {
         "date": {
          "type": "string"
         },
         "value": {
          "type": "number"
         }
        },
        "additionalProperties": false
       },
       {
        "type": "null"
       }
      ]
     },
     "change": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "latest": {
      "anyOf": [
       {
        "type": "object",
        "required": [
         "date",
         "value"
        ],
        "properties": {
         "date": {
          "type": "string"
         },
         "value": {
          "type": "number"
         }
        },
        "additionalProperties": false
       },
       {
        "type": "null"
       }
      ]
     },
     "product": {
      "type": "string"
     },
     "eia_units": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "frequency": {
      "type": "string"
     },
     "series_id": {
      "type": "string"
     },
     "change_percent": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "additionalProperties": false
   }
  },
  "attribution": {
   "type": "string"
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-energy-commodities-data-2906f24a/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)
