{"uid":"cap_8Ac4E5M68ZCqTY03INSGS","slug":"x402stock-energy-commodities-price-api-e400df2d","name":"x402stock Energy Commodities Price API","description":"Pay-per-call market and economic data API for AI agents: US stocks, ETFs and options, forex, crypto and on-chain perps, energy commodities, US and global macro (Fed, CPI, jobs, GDP, Treasury, World Bank), SEC filings, congressional trades, and market sentiment. No API keys, no accounts. Pay per request in USDC via x402 on Base.","url":"https://x402stock.xyz/api/v1/energy/%7Bproduct%7D","method":"GET","headers":{},"bodySchema":{"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"},"queryParams":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["limit"],"properties":{"limit":{"type":"integer","default":30,"maximum":365,"exclusiveMinimum":0}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["product","series_id","name","unit","eia_units","frequency","latest","prior","change","change_percent","source","as_of","history","attribution"],"properties":{"name":{"type":"string"},"unit":{"type":"string"},"as_of":{"anyOf":[{"type":"string"},{"type":"null"}]},"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"}]},"source":{"type":"string","const":"eia"},"history":{"type":"array","items":{"type":"object","required":["date","value"],"properties":{"date":{"type":"string"},"value":{"type":"number"}},"additionalProperties":false}},"product":{"type":"string"},"eia_units":{"anyOf":[{"type":"string"},{"type":"null"}]},"frequency":{"type":"string"},"series_id":{"type":"string"},"attribution":{"type":"string"},"change_percent":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false}}}}},"responseSchema":{"type":"json","example":{"name":"WTI Crude Oil — Cushing, OK Spot Price FOB","unit":"usd_per_barrel","as_of":"2026-06-01T00:00:00.000Z","prior":{"date":"2026-05-29","value":91.16},"change":4.8,"latest":{"date":"2026-06-01","value":95.96},"source":"eia","history":[{"date":"2026-06-01","value":95.96},{"date":"2026-05-29","value":91.16}],"product":"wti","eia_units":"$/BBL","frequency":"daily","series_id":"RWTC","attribution":"Source: U.S. Energy Information Administration (EIA)","change_percent":5.27}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_83r_BKoECdUOM3d65AaQR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current and historical spot price data for an energy commodity product (e.g. WTI crude oil, natural gas, heating oil) sourced from the EIA, paid per-call via USDC on Base.","exampleAgentPrompt":"What's the current WTI crude oil spot price and how has it moved over the last 30 days? Pull the data from x402stock using the 'wti' product.","exampleUseCases":null,"resultDescription":"Returns a JSON object with the energy product identifier, EIA series ID, human-readable name, unit (e.g. usd_per_barrel), latest price with date, prior price with date, absolute and percentage change, update frequency, data source, as_of timestamp, an array of historical date-value pairs up to the requested limit, and an EIA attribution string.","failureModes":["Invalid or unsupported product slug returns a 404 or error response","limit parameter out of range (<=0 or >365) causes a validation error","Payment failure or insufficient USDC balance blocks the request via x402 protocol","EIA data unavailable for the requested date range returns empty history array","Network timeout or upstream EIA outage causes 5xx response"],"whenToPreferThis":"Use this endpoint when you need real-time or recent historical energy commodity spot prices (WTI, Brent, natural gas, heating oil, etc.) sourced authoritatively from the EIA, without needing an API key or account — just pay $0.01 USDC per call. Prefer this over generic financial data APIs when EIA provenance and no-registration access are priorities, or when building AI agents that need pay-per-use commodity data on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:05:04.541Z","isFirstParty":false}