FAQ
Common questions about futures claims, x402, MCP, official vs indicative metals, and primary-source provenance.
Does commodities.sh sell real-time exchange futures?
No. commodities.sh does not sell real-time CME/ICE/LME exchange futures. It serves government cash, inventories, COT, USDA fundies, USGS minerals, and derived structure (crack, crush, basis) with explicit freshness and quality labels.
What is a primary-source commodities API?
A primary-source commodities API names the upstream agency and series ID on every observation, separates as_of from observed_at, and never silently blends sources under one timestamp. commodities.sh is built for that contract so agents can cite and trust prints.
How do agents pay for commodities.sh?
Agents should use x402: the server returns HTTP 402 with USDC payment requirements on Base; settle and retry with X-PAYMENT. Free discovery stays free. Human operators can instead buy a Pro API key ($19/mo or $180/yr, 3,000 credits/month) at /get-started.
Is there a Pro subscription?
Yes. Pro is $19/month or $180/year for 3,000 credits each UTC month (~60% below typical $50/mo commodities API entry tiers). 1 credit equals $0.01 of list price. Exhausted quota returns HTTP 402 QUOTA_EXCEEDED — or switch that call to x402.
What does freshness_class mean?
freshness_class describes the economic cadence of the print (eod, weekly, monthly, decree, and related classes). Agents should treat weekly EIA stocks differently from monthly metals — the field makes that explicit.
Should agents trust Pink Sheet metals as daily exchange prints?
No. Gold, silver, platinum, and iron ore from the World Bank Pink Sheet ship as monthly indicative. Copper, aluminum, nickel, and zinc are official IMF monthly series, read directly from the IMF. For metals fundamentals prefer /v1/minerals/{mineral}, which joins USGS mine production and reserves by country to UN Comtrade export flows, or /v1/fundamentals/usgs for the raw summaries. Always read quality and license_tag.
Why does my wallet show a security warning before I sign a payment?
x402's exact scheme signs an EIP-3009 transferWithAuthorization, a gasless fund authorization also used by wallet-drainer scams — so wallet security tools flag it by default on domains without an established reputation. It's expected on a newer domain, not a sign of compromise: the signature only authorizes the bounded price shown in the 402 challenge.
What is the best commodities API for AI agents?
It depends on what the agent must do. For breadth of tickers and real-time exchange tape, a subscription market-data vendor fits better. For an agent that must cite where a number came from — the agency, the series ID, and how stale it is — pick a primary-source API. commodities.sh serves EIA inventories and cash, CFTC COT, USDA fundamentals, Federal Reserve FX and USGS minerals, and labels every observation with freshness_class, quality and license_tag so an agent can refuse a stale or indicative print rather than quote it blindly.
What is a commodities MCP server?
An MCP (Model Context Protocol) server exposes commodities data as callable tools, so an assistant like Claude can fetch a price or an inventory print directly instead of scraping a web page. commodities.sh runs one at https://api.commodities.sh/api/mcp with tools for catalog, prices, history, price stats (volatility and change), EIA inventories, CFTC positioning, spreads, FX, USDA and USGS fundamentals, sector snapshots, the release calendar, and decision packs. Discovery tools are free; data tools settle per call.
Is there a free commodities API?
The agencies themselves are free — EIA, CFTC, USDA, the Federal Reserve and USGS all publish open data, and calling them directly is a legitimate choice. What you take on is a different schema per agency, no shared freshness or licensing labels, no derived structure like crack spreads, and your own backfill and staleness handling. commodities.sh charges per call to do that normalisation once. Its discovery routes — catalog, calendar, llms.txt, OpenAPI and the MCP handshake — are free and need no account.
How do I get commodities data into Claude or ChatGPT?
For Claude and other MCP hosts, add https://api.commodities.sh/api/mcp as an MCP server — point your client straight at that URL, with no account and nothing to install. For assistants without MCP, call the REST API and pay per request with x402, or use a Pro key. Release webhooks can also push to an agent when EIA, COT or WASDE data lands, so it does not have to poll.
Does commodities.sh push notifications when new data lands?
Yes, for Pro keys. Register a webhook at https://api.commodities.sh/v1/subscriptions filtered to any of six release events — EIA petroleum (eia-wpsr), EIA natural gas (eia-ng), CFTC COT (cftc-cot), USDA WASDE (usda-wasde), crop progress (usda-crop) and export sales (usda-esr). Payloads are signed with HMAC-SHA256 and carry the surprise summary — week-over-week change and the vs-5-year comparison — so an agent can act without a follow-up call. Delivery is free; retries back off and a repeatedly failing endpoint is paused.