# AgentFund US Energy Markets Data (Crude & Natural Gas)

> AgentFund US Energy Markets Data (Crude & Natural Gas) is a paid API for AI agents from x402.agentfund.net, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns current and historical US energy market data for crude oil and natural gas, including prices, inventories, and production figures.

## Facts

- Endpoint: POST https://x402.agentfund.net/x402/macro_energy
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfund-us-energy-markets-data-crude-natural-gas-d91a6366
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7eiKsrFPWYBTOna0j-GkJ

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 agentfund-us-energy-markets-data-crude-natural-gas-d91a6366 -d '<json body>'
```

Example prompt: Pull the latest US energy market data for crude oil and natural gas — I need current prices and inventory figures.

## When to prefer this

Choose this endpoint when you need structured, machine-readable US crude oil and natural gas market data — including prices, inventories, and production — delivered programmatically for use in trading agents, macro research pipelines, or economic dashboards. It is part of a suite of US economic data endpoints and is ideal when you want energy data alongside other macro signals like CPI, PCE, or jobs data from the same provider.

## Known failure modes

- Service unavailable or timeout returning a 5xx error
- Payment failure via x402 protocol if USDC balance is insufficient
- Empty or stale data if upstream EIA data source is delayed
- Malformed request body returning a 400 validation error

## How this service works

US Energy Markets (Crude & Natural Gas)

## Output

Structured JSON containing US energy market data including crude oil and natural gas prices, inventory/storage levels, production figures, and related EIA-sourced indicators for the US market.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asOf": "2026-08-07",
  "wtiSpotUsdPerBbl": 84.77,
  "crudeStocksWowPercent": -1.2,
  "naturalGasStorageWowPercent": 0.8
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfund-us-energy-markets-data-crude-natural-gas-d91a6366/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentfund.net](https://www.zero.xyz/host/x402.agentfund.net/llms.txt)
