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")=VERVE.CALL("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.
| Input | Type | Where it goes | Description |
|---|---|---|---|
commodityOptional | string | "commodity", value | Commodity 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. |
groupOptional | string | "group", value | Every 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 |
unitOptional | string | "unit", value | Mass 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 |
monthOptionalPremium | string | "month", value | Month to look up (YYYY-MM), back to 1960-01. Omit for the latest month. |
historyOptionalPremium | integer | "history", value | Months of history to include, ending at the returned month (1-240). range 1–240 |
Passing an option
=VERVE("commodityprices", "count", "commodity", "copper")=VERVE.CALL("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")=VERVE.CALL("commodityprices")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 field | Type | Example cell value | Description |
|---|---|---|---|
count | number | 1 | Number of commodities returned |
month | string | 2026-10 | The requested month, or the most recent month across the returned commodities (YYYY-MM) |
prices | array[1] | One entry per commodity | |
prices.0.commodity | string | copper | Commodity id, e.g. copper or wheat_hrw |
prices.0.name | string | Copper | Commodity name as the Pink Sheet describes it |
prices.0.group | string | base_metals | base_metals, grains, oils_and_meals, beverages, other_food, raw_materials, timber or fertilizers |
prices.0.month | string | 2026-10 | Month the price is the average for (YYYY-MM) |
prices.0.price | number | 14508 | Monthly average price |
prices.0.currency | string | USD | USD, or USX (US cents) for plywood, which is published in cents per sheet |
prices.0.unit | string | metric_ton | Unit the prices are quoted per |
prices.0.publishedUnit | string | metric_ton | Unit the World Bank publishes the commodity in: metric_ton, kg, cubic_meter, dry_metric_ton_unit or sheet |
prices.0.previousMonth | string | 2026-09 | The month before, with a price (YYYY-MM) |
prices.0.previousPrice | number | 14474 | Price in the previous month |
prices.0.change | number | 34 | Change from the previous month, in currency per unit |
prices.0.changePercent | number | 0.23 | Change from the previous month, in percent |
prices.0.changeDirection | string | up | up, down or unchanged |
prices.0.yearAgoPricePremium | number | 10740 | Price in the same month a year earlier |
prices.0.yearOverYearPercentPremium | number | 35.08 | Change from the same month a year earlier, in percent |
prices.0.high12mPremium | number | 14508 | Highest monthly price in the 12 months to month |
prices.0.high12mMonthPremium | string | 2026-10 | Month of the 12-month high |
prices.0.low12mPremium | number | 10812 | Lowest monthly price in the 12 months to month |
prices.0.low12mMonthPremium | string | 2025-11 | Month 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 reads | What happened |
|---|---|
#ERR Not connected | No API key saved. Open the side panel and connect your account. |
#ERR Replace <name> with a cell or value | A preview formula was copied as-is. Swap the placeholder for a cell reference. |
#ERR No "x" in commodityprices | An 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 credits | The 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.
- Install the add-in for Google Sheets or Excel.
- Open the side panel and sign in, or paste a key from your dashboard.
- 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.
Related
More in Finance: