Docs/APIs/Commodity Prices

Commodity Prices

Get Monthly Prices for Metals, Grains and Soft Commodities

OperationalCredits 2 per callp50 237msFinanceStar

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 API →

Endpoint

One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.

GEThttps://api.apiverve.com/v1/commodityprices
curl "https://api.apiverve.com/v1/commodityprices?commodity=copper&group=base_metals&unit=lb&month=2024-06&history=12" \
  -H "x-api-key: your_api_key_here"

Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.

Authentication

Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.

401 is the only auth verdict

A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.

Parameters

Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.

ParameterTypeDescription
commodityOptionalstringCommodity 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.
groupOptionalstringEvery 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
unitOptionalstringMass 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
monthOptionalPremiumstringMonth to look up (YYYY-MM), back to 1960-01. Omit for the latest month.
historyOptionalPremiumintegerMonths of history to include, ending at the returned month (1-240).
range 1–240

Response

Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.

Sample response
{
  "status": "ok",
  "error": null,
  "data": {
    "count": 1,
    "month": "2026-10",
    "prices": [
      {
        "commodity": "copper",
        "name": "Copper",
        "group": "base_metals",
        "month": "2026-10",
        "price": 14508,
        "currency": "USD",
        "unit": "metric_ton",
        "publishedUnit": "metric_ton",
        "previousMonth": "2026-09",
        "previousPrice": 14474,
        "change": 34,
        "changePercent": 0.23,
        "changeDirection": "up",
        "yearAgoPrice": 10740,
        "yearOverYearPercent": 35.08,
        "high12m": 14508,
        "high12mMonth": "2026-10",
        "low12m": 10812,
        "low12mMonth": "2025-11"
      }
    ]
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
countnumber1Number of commodities returned
monthstring"2026-10"The requested month, or the most recent month across the returned commodities (YYYY-MM)
pricesarray[1]One entry per commodity
commoditystring"copper"Commodity id, e.g. copper or wheat_hrw
namestring"Copper"Commodity name as the Pink Sheet describes it
groupstring"base_metals"base_metals, grains, oils_and_meals, beverages, other_food, raw_materials, timber or fertilizers
monthstring"2026-10"Month the price is the average for (YYYY-MM)
pricenumber14508Monthly average price
currencystring"USD"USD, or USX (US cents) for plywood, which is published in cents per sheet
unitstring"metric_ton"Unit the prices are quoted per
publishedUnitstring"metric_ton"Unit the World Bank publishes the commodity in: metric_ton, kg, cubic_meter, dry_metric_ton_unit or sheet
previousMonthstring"2026-09"The month before, with a price (YYYY-MM)
previousPricenumber14474Price in the previous month
changenumber34Change from the previous month, in currency per unit
changePercentnumber0.23Change from the previous month, in percent
changeDirectionstring"up"up, down or unchanged
yearAgoPricePremiumnumber10740Price in the same month a year earlier
yearOverYearPercentPremiumnumber35.08Change from the same month a year earlier, in percent
high12mPremiumnumber14508Highest monthly price in the 12 months to month
high12mMonthPremiumstring"2026-10"Month of the 12-month high
low12mPremiumnumber10812Lowest monthly price in the 12 months to month
low12mMonthPremiumstring"2025-11"Month of the 12-month low

Errors

Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead error to tell them apart; see rate limits.

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 APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →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?