Oil price per litre and gallon
Convert Brent or WTI from dollars per barrel to litres and gallons.
Read the guide →Prices for spot metals and physical commodities, with native units and series definitions.
curl --request GET \
--url "https://api.narwhalapi.com/v1/commodities/palmoil/physical?product=ffb&country=IDN" \
--header "Authorization: Bearer $NARWHAL_API_KEY"{
"series": [
{
"series_id": "id-ri-oil-palm-ffb-smallholder-purchase-agreement",
"product": "ffb",
"observation_type": "age_schedule",
"period_type": "effective",
"country": "IDN",
"area": "ID-RI",
"producer_arrangement": "purchase_agreement",
"price_type": "official_purchase_schedule",
"currency": "IDR",
"unit": "kilogram",
"unit_key": "kilogram",
"coverage_start": "2026-08-19",
"coverage_end": "2026-09-01",
"frequency": "weekly"
}
],
"next_cursor": null
}/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.
/v1/commodities/palmoil/physicalFind admitted Palm oil physical series by product and country.
productoptionalFilter by the physical product.
countryoptionalFilter by country, such as IDN.
areaoptionalUse an area returned by discovery: ISO 3166-2 where applicable, or a Narwhal-defined nwl-* ID such as nwl-mys-north.
price_typeoptionalofficial_purchase_schedule, government_reference or market_average. The value must be compatible with the product.
currencyoptionalFilter the native currency, such as IDR, USD or MYR. This does not convert prices.
producer_typeoptionalApplies to Indonesian FFB purchase schedules; not accepted with product=cpo.
producer_arrangementoptionalpurchase_agreement or supported_scheme. Applies to Indonesian FFB schedules; not accepted with product=cpo.
limitoptionalMaximum series per page. Defaults to 100.
cursoroptionalContinue with the returned next_cursor and every original filter and limit unchanged.
seriesarrayComplete approved series ordered by stable series_id.
series[].series_idstringStable identity used by the history operation.
series[].product / series[].countrystringsProduct and geographic scope.
series[].areastringNational series omit area. Regional IDs may use the nwl-* namespace.
series[].observation_type / series[].period_typeenumsscalar or age_schedule; effective or observation. These define the response variant and date semantics.
series[].price_type / series[].currency / series[].unitstringsThe source-defined price type, currency and native unit.
series[].unit_keystringunit_key is the unit in one standard spelling, such as troy_ounce, barrel or tonne; unit keeps the source's wording. When a price is quoted in cents, price_scale is 0.01: multiply the price by it to get the amount in currency.
series[].producer_arrangementstringPresent only on Indonesian FFB age-schedule series when the source names an arrangement. Omitted otherwise.
series[].frequency / series[].coverage_start / series[].coverage_endstring and datesCadence and accepted history bounds, not a guarantee of uninterrupted coverage.
next_cursorstring or nullContinuation token, or null when there are no more series.
/v1/commodities/palmoil/physical/{series_id}Get the latest accepted Palm oil observation.
series_idrequiredUse an ID returned by discovery.
price_monthoptionalMPOB CPO only. Selects one quoted month; defaults to each report's own month.
series_idstringStable physical-series identity.
currency / unitstringsCurrency and native unit: kilogram for Indonesian FFB schedules, metric_ton for CPO, or one_percent_oer for Malaysian FFB references.
unit_keystringunit_key is the unit in one standard spelling, such as troy_ounce, barrel or tonne; unit keeps the source's wording. When a price is quoted in cents, price_scale is 0.01: multiply the price by it to get the amount in currency.
period_start / period_enddatesEffective prices use inclusive dates. MPOB uses the report date through the next day, with an exclusive end.
revisionintegerRevision of the price or complete schedule.
price or pricesdecimal string or complete arrayA positive decimal-string price, or a complete prices array with tree_age_min_years, tree_age_max_years and price. Both age bounds are inclusive. Malaysian FFB stays in one_percent_oer.
price_monthYYYY-MMRequired for MPOB CPO quotes; identifies the quoted month; period_start and period_end identify the report-day observation interval.
/v1/commodities/palmoil/physical/{series_id}/observationsGet oldest-first Palm oil observations.
series_idrequiredSeries returned by discovery.
startoptionalInclusive range start; supply it with end. Indonesian effective periods are included when they overlap the range. Malaysian daily prices are selected by report date.
endoptionalExclusive upper bound. It must be later than start.
limitoptionalMaximum observations to return. Defaults to 100; age schedules remain complete.
cursoroptionalContinue with every original parameter unchanged, including series_id, dates, limit and price_month. A changed publication can expire the cursor.
price_monthoptionalMPOB CPO only. Selects one quoted month; defaults to each report's own month.
series_idstringStable physical-series identity.
currency / unitstringsCurrency and native unit shared by every observation.
unit_keystringunit_key is the unit in one standard spelling, such as troy_ounce, barrel or tonne; unit keeps the source's wording. When a price is quoted in cents, price_scale is 0.01: multiply the price by it to get the amount in currency.
observationsarrayPeriod, revision, and scalar value or complete schedule ordered oldest first; MPOB CPO rows retain price_month; Malaysian CPO and FFB rows retain their report-day period_start/period_end.
next_cursorstring or nullOpaque continuation token, or null at the end.
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 →Gold, silver, platinum and palladium spot prices, plus WTI, Brent and copper reference prices.
Explore the API →Palm oil, daily oil and gas prices, weekly US retail fuel prices and monthly commodity benchmarks, with units as published.
Explore the API →Current exchange rates, currency conversion and stored rate history.
Explore the API →$10 of free credit a month, then from $2 per 1,000 calls.
See pricing →The live release covers spot metals and physical commodities. Futures are not public.
Yes. Request observations for an admitted palm oil series; the response preserves native units, effective dates, revisions, and source gaps.
Units, price types, geography, and effective periods remain attached to each admitted series. Futures products are not currently public.
$10 of free credit every month for 12 months. No card needed.$10 of free credit a month. No card needed.