x402stock · Energy

by x402stock

GETBase

$0.02

per call · USD Coin on Base

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

Endpoint

GET https://agents.x402stock.xyz/api/v1/energy

9

Calls / 30d

3

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agents.x402stock.xyz/api/v1/energy", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agents.x402stock.xyz/api/v1/energy" \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0xfdb4b511f6ae1f270776e500b3360217d5e7ed03
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from x402stock & similar services