{"uid":"cap_75M2VTS5xTrkhfOvyCYEJ","slug":"2s-commodity-prices-api-294ba46a","name":"2s Commodity Prices API","description":"Latest benchmark commodity price with the prior value + % change. Pass commodity for one, or omit for all. Commodities: wti, brent, natural-gas, gasoline, diesel, heating-oil, propane, copper, aluminum, corn, wheat, sugar — i.e. crude oil (WTI + Brent), natural gas, gasoline, diesel, heating oil, propane, gold, copper, aluminum, corn, wheat, sugar. Each result names the FRED series ID + unit ($/barrel, $/gallon, $/troy oz, $/metric ton...). Daily benchmarks report a daily date; global-price series are monthly. Source: EIA / LBMA / IMF via FRED (St. Louis Fed).","url":"https://2s.io/api/econ/commodity","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"properties":{"commodity":{"type":"string","description":"One commodity, or omit for all. One of: wti, brent, natural-gas, gasoline, diesel, heating-oil, propane, copper, aluminum, corn, wheat, sugar."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"commodity":"wti"}}},"response":{"data":{"ok":true,"items":[{"asOf":"2026-06-08","unit":"$/barrel","label":"Crude oil — WTI","price":95,"previous":94.32,"seriesId":"DCOILWTICO","changePct":0.72,"commodity":"wti"}],"total":1,"source":{"url":"https://fred.stlouisfed.org/","license":"FRED® data; many series are public domain (US govt). Attribution to FRED required for redistribution.","provider":"Federal Reserve Bank of St. Louis — FRED"}},"meta":{"cost":{"usd":0.00144,"tier":0},"caller":"x402","version":null,"endpoint":"econ.commodity","settlement":{"txHash":"0x4712669162f6c5f879bb704b2e74f600c0552e491f107f65f95d70458a5b8574","network":"eip155:8453","success":true}}}},"exampleRequest":{"commodity":"wti"},"tags":["x402"],"displayCostAmount":"0.00144","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.00144/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_p9NM5lr2SWVhz0GNuS78A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0036","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current and previous prices for energy and agricultural commodities (WTI, Brent, natural gas, grains, metals, etc.) sourced from FRED","exampleAgentPrompt":"What's the current price of WTI crude oil — and how much has it moved since yesterday?","exampleUseCases":[{"title":"Track energy costs for supply chain","prompt":"Pull the latest natural gas and diesel prices for me, and let me know if there's been any significant movement from last month that might affect our logistics budget."},{"title":"Monitor agricultural commodity trends","prompt":"Can you check the current prices for corn and wheat? I need to see how they've changed recently to help me plan our procurement strategy."},{"title":"Compare metal market movements","prompt":"Get me today's copper and aluminum prices along with the percentage change so I can brief our procurement team on raw material cost shifts."}],"resultDescription":"Returns a JSON array of commodity price objects, each with the commodity name, current price, previous price, percent change, unit (e.g. $/barrel), as-of date, FRED series ID, and source attribution from the Federal Reserve Bank of St. Louis.","failureModes":["Invalid commodity symbol returns an error or empty result","FRED data may lag by one trading day — intraday prices are not available","Network or payment failure returns HTTP 402 or 5xx","Omitting the commodity parameter returns all commodities, which may be larger than expected"],"whenToPreferThis":"Use this endpoint when you need authoritative, FRED-sourced commodity price data for energy (WTI, Brent, natural gas, gasoline, diesel, heating oil, propane), metals (copper, aluminum), or agricultural commodities (corn, wheat, sugar) — especially when you need no API key, pay-per-call via USDC, and ground-truth government-sourced data rather than real-time exchange feeds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:58:32.841Z","isFirstParty":false}