Docs/Sources/Commodity Prices

Commodity Prices

Get Monthly Prices for Metals, Grains and Soft Commodities

OperationalCredits 2 per callp50 237msFinance

Overview

A scheduled collector reads the World Bank's monthly commodity price workbook (CMO Historical Data, Monthly) on the 4th and 8th of each month and stores every monthly price since January 1960. Requests are served from that store, never from the World Bank live. Source: World Bank, Commodity Price Data (The Pink Sheet), licensed under Creative Commons Attribution 4.0 (CC BY 4.0).

`price` is the monthly average in nominal US dollars for `month`; `previousPrice` is the month before it and `change` the difference, with `changePercent` the same as a percent. `yearAgoPrice` and `yearOverYearPercent` compare with the same month a year earlier, and `high12m` and `low12m` are the highest and lowest prices in the 12 months to `month`. Series the World Bank no longer updates keep their last published month.

Metals, grains, oils, sugar, rubber and fertilizers are published per metric ton or per kilogram; `unit` converts between metric_ton, kg, lb (0.45359237 kg), short_ton (907.18474 kg) and long_ton (1016.0469088 kg). Timber is published per cubic meter, iron ore per dry metric ton unit and plywood in US cents per sheet; those keep their published unit.

Live Test Commodity Prices Source →

Formula

One function covers the whole catalog: the first argument names the source, the next are its inputs, and the field after them says which single value lands in the cell. Formulas covers the grammar that applies to all of them.

=VERVE("commodityprices", "count")

Inputs

Required inputs are positional, in the order below, followed by the field. Everything else is passed as a "name", value pair after that — the same shape as SUMIFS. Premium inputs are accepted on every plan but only take effect on plans that include them.

InputTypeWhere it goesDescription
commodityOptionalstring"commodity", valueCommodity id or common name, a comma-separated list (paid plans), or all (paid plans). Metals: aluminum, copper, lead, nickel, tin, zinc, iron_ore. Grains: wheat_hrw, wheat_srw, maize, rice_thai_5, rice_thai_25, rice_thai_a1, rice_vietnam_5, barley, sorghum. Oils and meals: soybeans, soybean_oil, soybean_meal, palm_oil, palm_kernel_oil, coconut_oil, rapeseed_oil, sunflower_oil, groundnuts, groundnut_oil, fish_meal. Beverages: coffee_arabica, coffee_robusta, cocoa, tea, tea_colombo, tea_kolkata, tea_mombasa. Other food: sugar, sugar_us, sugar_eu, banana_us, banana_europe, orange, beef, chicken, lamb, shrimp. Raw materials: cotton, rubber_tsr20, rubber_rss3, tobacco, logs_cameroon, logs_malaysia, sawnwood_cameroon, sawnwood_malaysia, plywood. Fertilizers: urea, dap, tsp, phosphate_rock, potassium_chloride. Common names work too: corn, wheat, rice, coffee, aluminium, potash.
groupOptionalstring"group", valueEvery commodity in a group instead of a commodity list (paid plans): base_metals, grains, oils_and_meals, beverages, other_food, raw_materials, timber or fertilizers.
base_metalsgrainsoils_and_mealsbeveragesother_foodraw_materialstimberfertilizers
unitOptionalstring"unit", valueMass unit to price per: metric_ton, kg, lb, short_ton or long_ton. Applies to commodities published per metric ton or per kilogram; the others keep their published unit. Defaults to each commodity's published unit.
metric_tonkglbshort_tonlong_ton
monthOptionalPremiumstring"month", valueMonth to look up (YYYY-MM), back to 1960-01. Omit for the latest month.
historyOptionalPremiuminteger"history", valueMonths of history to include, ending at the returned month (1-240).
range 1–240

Passing an option

=VERVE("commodityprices", "count", "commodity", "copper")

What lands in your sheet

The field — the argument after the inputs — is what makes the formula resolve to one cell. Its value is a dot-path from the table below, so swapping it is how you pull a different value — one formula per column.

Seeing everything at once

Leave the field out and the formula returns the whole response instead: two columns, field name on the left and value on the right, spilling from the cell you typed in.

=VERVE("commodityprices")
Good for exploring, not for filling down

The second row's table would land on top of the first's, and every cell after the first reads #REF! (#SPILL! in Excel). Keep one per sheet, or name a field, and leave the cells below and to the right empty.

Response fields

Paths are relative to data. Each one is exactly what the field argument accepts, so swapping it is how you pull a different value into a cell. On a plan without a Premium field the cell reads #PREMIUM(field) rather than a value, so a locked field never looks like a real answer.

Use as the fieldTypeExample cell valueDescription
countnumber1Number of commodities returned
monthstring2026-10The requested month, or the most recent month across the returned commodities (YYYY-MM)
pricesarray[1]One entry per commodity
prices.0.commoditystringcopperCommodity id, e.g. copper or wheat_hrw
prices.0.namestringCopperCommodity name as the Pink Sheet describes it
prices.0.groupstringbase_metalsbase_metals, grains, oils_and_meals, beverages, other_food, raw_materials, timber or fertilizers
prices.0.monthstring2026-10Month the price is the average for (YYYY-MM)
prices.0.pricenumber14508Monthly average price
prices.0.currencystringUSDUSD, or USX (US cents) for plywood, which is published in cents per sheet
prices.0.unitstringmetric_tonUnit the prices are quoted per
prices.0.publishedUnitstringmetric_tonUnit the World Bank publishes the commodity in: metric_ton, kg, cubic_meter, dry_metric_ton_unit or sheet
prices.0.previousMonthstring2026-09The month before, with a price (YYYY-MM)
prices.0.previousPricenumber14474Price in the previous month
prices.0.changenumber34Change from the previous month, in currency per unit
prices.0.changePercentnumber0.23Change from the previous month, in percent
prices.0.changeDirectionstringupup, down or unchanged
prices.0.yearAgoPricePremiumnumber10740Price in the same month a year earlier
prices.0.yearOverYearPercentPremiumnumber35.08Change from the same month a year earlier, in percent
prices.0.high12mPremiumnumber14508Highest monthly price in the 12 months to month
prices.0.high12mMonthPremiumstring2026-10Month of the 12-month high
prices.0.low12mPremiumnumber10812Lowest monthly price in the 12 months to month
prices.0.low12mMonthPremiumstring2025-11Month of the 12-month low

When a cell doesn't fill

A failed lookup returns readable text starting with #ERR rather than a spreadsheet error, because Excel cannot show a custom message on a real error — you would get a bare #VALUE! with no reason. The trade-off is that IFERROR() will not catch it; test with LEFT(cell, 4) = "#ERR" instead. Error handling covers the rest.

Cell readsWhat happened
#ERR Not connectedNo API key saved. Open the side panel and connect your account.
#ERR Replace <name> with a cell or valueA preview formula was copied as-is. Swap the placeholder for a cell reference.
#ERR No "x" in commoditypricesAn option name this source does not take. The message lists the ones it does.
#ERR No data point "…"The field path is not in the response. Check it against the table above.
#PREMIUM(field)The field exists but your plan does not include it.
#ERR Out of creditsThe cycle's credits are spent. Usage resets on your billing date.

Before the formula works

The add-in reads the API key you saved once in the side panel — the key never goes in the formula, so a shared sheet does not leak it and a collaborator without access simply sees the last calculated values.

  1. Install the add-in for Google Sheets or Excel.
  2. Open the side panel and sign in, or paste a key from your dashboard.
  3. Type the formula above into any cell.

Use cases

Procurement and Cost Models
Manufacturers index supplier contracts and bill-of-materials costs to the monthly copper, aluminum, nickel or cotton benchmark and its year-over-year change.
Food and Agriculture Dashboards
Agritech and food companies chart wheat, maize, rice, soybeans, sugar and fertilizer prices side by side with a whole group in one call.
Research and Teaching
Analysts and students pull decades of monthly history for any commodity to study cycles, shocks and long-run trends.
Fintech and Market Content
Finance apps add a commodities panel showing the latest monthly price, change and 12-month range for the metals and softs their users follow.

Other ways to use Commodity Prices

Set up Commodity Prices on VerveSheets, or reach the same source a different way. Your VerveSheets account and credits work on all of them — one key, one balance.

Call it as a REST APIOne HTTPS endpoint and an x-api-key header, with SDKs for Node, Python and .NET.APIVerve →Reference →
Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContext →Reference →

More in Finance:

Was this page helpful?