REST API for real-time commodity futures prices — gold, silver, crude oil, natural gas, coffee, wheat, and 25+ more. Prices from CME, NYMEX, and CBOT in USD.
Real-time futures prices for 30+ commodities Covers precious metals, energy, agriculture, and livestock Prices sourced from CME, NYMEX, and CBOT exchanges 100 requests/month on free tier Example Response: {
"commodity_name" : " Silver Futures" ,
"exchange" : " CME" ,
"price_usd" : 79.665 ,
"updated_at" : " 2026-02-09T11:45:04+00:00"
} Create an account at omkar.cloud to get your API key, and use it in requests. 100 requests are free every month.
curl -X GET " https://commodity-price-api.omkar.cloud/commodity-price?name=silver" \
-H " API-Key: YOUR_API_KEY" {
"commodity_name" : " Silver Futures" ,
"exchange" : " CME" ,
"price_usd" : 79.665 ,
"updated_at" : " 2026-02-09T11:45:04+00:00"
} import requests response = requests .get (
"https://commodity-price-api.omkar.cloud/commodity-price" ,
params = {"name" : "silver" },
headers = {"API-Key" : "YOUR_API_KEY" }
)
data = response .json ()
print (f"{ data ['commodity_name' ]} : ${ data ['price_usd' ]} ({ data ['exchange' ]} )" )import axios from "axios" ; const response = await axios . get ( "https://commodity-price-api.omkar.cloud/commodity-price" , { params : { name : "silver" } , headers : { "API-Key" : "YOUR_API_KEY" } } ) ; console . log ( `${ response . data . commodity_name } : $${ response . data . price_usd } ` ) ; GET https://commodity-price-api.omkar.cloud/commodity-price
Headers Parameter Required Description nameYes Commodity name (see supported commodities below)
Category Commodities Precious Metals gold, silver, platinum, palladium, micro_gold, micro_silverEnergy crude_oil, brent_crude_oil, natural_gas, gasoline_rbob, heating_oilAgriculture wheat, corn, soybean, soybean_oil, soybean_meal, oat, rough_rice, lumber, coffee, cocoa, sugar, cotton, orange_juiceLivestock live_cattle, feeder_cattle, lean_hogs, class_3_milkMetals copper, aluminum
Field Type Description commodity_namestring Full futures contract name (e.g., "Silver Futures") exchangestring Trading exchange — CME, NYMEX, or CBOT price_usdnumber Current futures price in USD updated_atstring ISO 8601 timestamp of last price update
response = requests .get (
"https://commodity-price-api.omkar.cloud/commodity-price" ,
params = {"name" : "gold" },
headers = {"API-Key" : "YOUR_API_KEY" }
)
gold = response .json ()
print (f"Gold: ${ gold ['price_usd' ]} on { gold ['exchange' ]} " )response = requests .get (
"https://commodity-price-api.omkar.cloud/commodity-price" ,
params = {"name" : "crude_oil" },
headers = {"API-Key" : "YOUR_API_KEY" }
)
oil = response .json ()
print (f"WTI Crude: ${ oil ['price_usd' ]} " )response = requests .get (
"https://commodity-price-api.omkar.cloud/commodity-price" ,
params = {"name" : "natural_gas" },
headers = {"API-Key" : "YOUR_API_KEY" }
)
gas = response .json ()
print (f"Natural Gas: ${ gas ['price_usd' ]} " )response = requests .get (
"https://commodity-price-api.omkar.cloud/commodity-price" ,
params = {"name" : "gold" },
headers = {"API-Key" : "YOUR_API_KEY" }
)
if response .status_code == 200 :
data = response .json ()
elif response .status_code == 401 :
# Invalid API key pass elif response .status_code == 429 :
# Rate limit exceeded pass Plan Price Requests/Month Free $0 100 Starter $16 3,000 Grow $48 15,000 Scale $148 75,000
Questions? We have answers. Reach out anytime. We will solve your query within 1 working day.