Oil price per litre and gallon
Convert Brent or WTI from dollars per barrel to litres and gallons.
Read the guide →Get gold, silver, platinum and palladium spot prices, plus WTI, Brent and copper reference prices derived from futures markets, not physical spot cargo prices.
curl --request GET \
--url "https://api.narwhalapi.com/v1/commodities/spot/XAU/USD" \
--header "Authorization: Bearer $NARWHAL_API_KEY"{
"symbol": "XAU-USD",
"commodity_key": "gold",
"price": "3550.6320",
"currency": "USD",
"unit": "troy_ounce",
"unit_key": "troy_ounce",
"timestamp": "2026-11-20T05:54:00Z",
"stale": false
}/v1/commodities/spot/{commodity}/{currency}Get a spot price or a futures-based reference price.
commodityrequiredXAU, XAG, XPT, XPD, WTI (WTI crude oil), BRENT (Brent crude oil) or XCU (copper).
currencyrequiredThe quote currency in capitals. Gold has 31 currencies. The others are quoted in USD only.
symbolstringThe commodity and quote currency, such as XAU-USD.
currencystringThe quote currency.
unitstringtroy_ounce for precious metals, barrel for WTI and BRENT, and pound for XCU.
pricestringOne positive indicative price as a decimal string.
timestampdate-timeThe quote time in UTC.
stalebooleanWhether the quote is stale. A closed market never makes a quote stale.
/v1/commodities/spot/{commodity}/{currency}/barsOpen, high, low and close bars for gold, silver, platinum, palladium, copper, WTI and BRENT.
commodityrequiredXAU, XAG, XPT, XPD, WTI (WTI crude oil), BRENT (Brent crude oil) or XCU (copper).
currencyrequiredThe quote currency in capitals. Gold has 31 currencies. The others are quoted in USD only.
intervaloptional1m, 5m, 15m, 1h, 4h or 1d. The default is 1d.
startrequiredThe first bar, as a UTC time on an interval boundary. Inclusive.
endrequiredThe last bar, as a UTC time on an interval boundary. Exclusive.
limitoptionalBars per page. The default is 100 and the most is 500.
cursoroptionalReuse next_cursor from the previous page with the same query.
barsarrayClosed bars from oldest to newest, each with a timestamp and open, high, low and close as decimal strings. Gold in currencies other than USD has close only.
next_cursorstringThe cursor for the next page. Null when no bars remain.
Convert Brent or WTI from dollars per barrel to litres and gallons.
Read the guide →Convert copper from dollars per pound to kilograms and metric tonnes.
Read the guide →Divide gold by silver for matching dates or times.
Read the guide →Send an alert when gold crosses your threshold.
Read the guide →Download daily gold price history to a CSV file.
Read the guide →Get a commodity price in your own currency, such as rupiah per gram.
Read the guide →Move a contract price with a commodity index between two months.
Read the use case →Follow input costs month over month against a base month.
Read the use case →Physical prices for about 120 commodities across metals, battery materials, energy, fertilizer and chemical inputs, and agricultural goods, plus US retail fuel (EIA) and World Bank monthly benchmarks. Includes palm oil. Units as published.
Explore the API →Current exchange rates, currency conversion and stored rate history.
Explore the API →Prepaid credit, $2 per 1,000 calls, no plans or tiers.
See pricing →The unit field is troy_ounce for precious metals, barrel for WTI and BRENT, and pound for XCU. A troy ounce is not an ordinary ounce.
Gold is quoted in 31 currencies; silver, platinum, palladium, WTI, BRENT and XCU in USD only. The coverage list shows every commodity and currency. An unknown commodity returns 404 commodity_not_supported; a known commodity with an unsupported currency returns 404 currency_not_supported.
Keep the quote timestamp visible in your application. A stale quote must not be presented as a fresh market price. The daily 17:00 New York metals pause (21:00 UTC in summer, 22:00 UTC in winter) is not a market closure, and quotes during it can carry stale: true. A closed market never makes a quote stale: from Friday 17:00 to Sunday 17:00 New York time you get the last price with stale: false.
Free $10 credits every month, no card.Free $10 credits a month, no card.