Commodity Price
commodity_priceAPI Ninjas live commodity price: current exchange price of a traded commodity or futures contract (exchange, contract month, 24h change). Answers "gold spot price", "silver price today", "lumber price", "live cattle", "heating oil futures", "RBOB gasoline futures". Returns { exchange, name, price, futures_contract, updated }. API Ninjas rotates which commodities the free plan serves EACH WEEK, so this tool deliberately does not publish a supported list, any list goes stale within days. Gold is the dependable one. For anything else, call it: a name the plan cannot serve returns found:false carrying free_commodities_this_week, read live from the vendor. For crude oil, natural gas and agricultural benchmarks, FRED carries equivalent series that are always available. Accepts commodity or symbol as aliases for name. Example: commodity_price({ name: "gold" }).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "gold"
},
"name": "commodity_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Commodity name, e.g. 'gold'. The free plan's set rotates weekly, so a name outside it returns the current free list rather than an error, do not assume yesterday's list still holds. | |
| symbol | No | Alias for name. | |
| _apiKey | No | Optional, your own API Ninjas key for higher limits; omit to use the shared Pipeworx key. | |
| commodity | No | Alias for name. |