Formulas for

Commodity Prices

Finance2 credits/cellSheets · Excel58 commoditiesNew
=VERVE("commodityprices", "count")

Track copper, wheat or coffee from a cell. Returns the latest monthly World Bank price and change, in Sheets or Excel.

It's one of 250+ live sources you reach with a single =VERVE() function — served from APIVerve's production data engine, billed at 2 credits per resolved cell, and refreshed on whatever cadence you set. No API keys to wrangle, no scripts, no exports.

A real example — the input you type, and the values you can pull from it. Click any cell to see the formula behind it.

commodityprices.xlsxsample data
A2fx=VERVE("commodityprices", "count")
A
B
1
Count
Month
2
1
2026-10
3
4
click any cell to see its formula2 credits / cell

Live financial model

Drop =VERVE("commodityprices", "count") into a cell and your model reads the latest number every refresh — no more pasting figures from a browser tab into a stale sheet.

Track a whole watchlist

Fill a column beside your list of tickers or currencies and every row updates together, so a hundred-row watchlist stays current on its own.

Dashboards that don't rot

Point a chart at the cell =VERVE("commodityprices", "count") feeds and the chart re-draws as the data moves — a finance dashboard that's live instead of a Monday-morning snapshot.

The same function works in both apps — install once, sign in with your key, and type it into any cell.

Google SheetsAdd-on

Install from the Workspace Marketplace, then drop the formula into a cell. Autocomplete suggests the source and its fields.

=VERVE("commodityprices", "count")
Microsoft ExcelAdd-in

Same source, same arguments, same key — in Excel on desktop, the web, or mobile. Excel namespaces it as VERVE.CALL. Drag to fill a whole column.

=VERVE.CALL("commodityprices", "count")

Tune the result by adding name=value before the field argument — in any order. Leave one out and its default applies.

  • commodity

    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.

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

    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.

    =VERVE("commodityprices", "count", "group", "base_metals")
  • unit

    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.

    =VERVE("commodityprices", "count", "unit", "lb")
  • monthPremium

    Month to look up (YYYY-MM), back to 1960-01. Omit for the latest month.

    =VERVE("commodityprices", "count", "month", "2024-06")
  • historyPremium

    Months of history to include, ending at the returned month (1-240).

    =VERVE("commodityprices", "count", "history", "12")

Add a field name right after the inputs to land just that value in the cell.

  • Count
    =VERVE("commodityprices", "count")
  • Prices
    =VERVE("commodityprices", "prices")
  • Prices › Commodity
    =VERVE("commodityprices", "prices.0.commodity")
  • Prices › Name
    =VERVE("commodityprices", "prices.0.name")
  • Prices › Group
    =VERVE("commodityprices", "prices.0.group")
  • Prices › Month
    =VERVE("commodityprices", "prices.0.month")
  • Prices › Price
    =VERVE("commodityprices", "prices.0.price")
  • Prices › Currency
    =VERVE("commodityprices", "prices.0.currency")
  • Prices › Unit
    =VERVE("commodityprices", "prices.0.unit")
  • Prices › Published Unit
    =VERVE("commodityprices", "prices.0.publishedUnit")
  • Prices › Previous Month
    =VERVE("commodityprices", "prices.0.previousMonth")
  • Prices › Previous Price
    =VERVE("commodityprices", "prices.0.previousPrice")

Premium marks data included on paid plans. On the Free plan a marked field is withheld and a marked input is ignored — either way the cell reads #PREMIUM(name) instead of a value, so a gated answer can never be mistaken for a real one. Everything unmarked works on every plan. Compare plans

Commodity Prices, answered

Everything you need to wire it into a sheet.

How do I pull Commodity Prices into Google Sheets?
Install the VerveSheets add-on, sign in once with your key, and type =VERVE("commodityprices", "count") into any cell. The argument after the inputs names the value you want back, so the cell resolves to a single number or string you can chart, sort, or feed into another formula.
What data can I pull from Commodity Prices?
Commodity Prices returns count, prices, prices.0.commodity, prices.0.name and prices.0.group, plus 7 more — name any one of them after the inputs and that value lands in the cell. Leave the field out and the whole record spills into a two-column table instead.
Can I narrow what Commodity Prices returns?
Yes — Commodity Prices takes "commodity", "group", "unit" and "month", plus 1 more as optional inputs. They go in as "name", value pairs after the inputs and the field, in any order, so =VERVE("commodityprices", "count", "commodity", "copper") shapes the result without changing anything else.
Can I fill a whole column of Commodity Prices at once?
Yes. Reference a range instead of a single cell and one call returns a value for every row, or drag =VERVE("commodityprices") down like any spreadsheet function.
How many credits does each Commodity Prices cell cost?
Each resolved cell costs 2 credits. A cell only re-bills when it actually refreshes, so a sheet you aren't touching doesn't keep charging.
Does Commodity Prices work in Excel as well as Google Sheets?
Yes — same arguments, same key, same fields. Excel namespaces custom functions, so the call is =VERVE.CALL() there and =VERVE() in Google Sheets; nothing else about it changes.
How current is Commodity Prices?
It draws on 58 commodities, served live from APIVerve's production data engine, and a cell looks up again whenever its inputs change.

Put Commodity Prices in your next spreadsheet. Add the extension, paste the formula, and the cell keeps itself current.

Scaling up?

Volume pricing, custom SLAs, and dedicated support for high-traffic teams.

Contact sales