{"uid":"cap_onuY7gf0WozyAL-4mt4h9","slug":"commodities-sh-prices-98bca3a2","name":"commodities.sh Prices","description":"commodities.sh prices","url":"https://api.commodities.sh/v1/prices","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"unit":{"type":"string"},"as_of":{"type":"string"},"value":{"type":"number"},"derived":{"type":"boolean"},"quality":{"type":"string"},"instrument":{"type":"string"},"license_tag":{"type":"string"},"observed_at":{"type":"string"},"freshness_class":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AnlDDmDyKK8rl1XOVmCWL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current spot price for a commodity instrument, including value, unit, quality, and freshness metadata.","exampleAgentPrompt":"What is the current spot price of gold? Pull it from commodities.sh and include the unit, quality, and how fresh the data is.","exampleUseCases":[{"title":"Real-time gold price alert","prompt":"Check the current price of gold on commodities.sh and let me know if it has crossed $2,000 per troy ounce — include the freshness class so I know how current the data is."},{"title":"Energy trading dashboard feed","prompt":"Fetch the latest price for crude oil from commodities.sh, including the unit, quality grade, and observed timestamp, so I can update my trading dashboard."},{"title":"Commodity price enrichment for invoices","prompt":"I need to price a shipment of copper — can you look up the current copper spot price on commodities.sh and give me the value, unit, and whether the price is derived or directly observed?"}],"resultDescription":"Returns a JSON object containing the commodity price value (number), unit (e.g. USD/troy oz), instrument name, quality descriptor, as_of and observed_at timestamps, a freshness_class indicating data recency, a license_tag, and a boolean indicating whether the price is derived or directly observed.","failureModes":["Missing or invalid instrument parameter returns an error or empty result","Rate limiting or payment failure (402 Payment Required) if x402 payment is not correctly attached","Stale data if the freshness_class indicates the price has not been recently updated","Unsupported commodity instrument returns no result or an error","Network timeout resulting in no response"],"whenToPreferThis":"Choose this endpoint when you need current commodity spot prices with accompanying metadata such as quality, freshness class, and whether the value is derived — particularly useful for financial agents, trading dashboards, or invoice-pricing workflows that need more than just a raw number. Best suited for per-call, real-time lookups rather than bulk historical data retrieval.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:31:04.982Z","isFirstParty":false}