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.
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"const res = await fetch('https://api.apiverve.com/v1/commodityprices?commodity=copper&group=base_metals&unit=lb&month=2024-06&history=12', {
headers: { 'x-api-key': 'your_api_key_here' },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data } = await res.json();
console.log(data);import requests
res = requests.get(
"https://api.apiverve.com/v1/commodityprices?commodity=copper&group=base_metals&unit=lb&month=2024-06&history=12",
headers={"x-api-key": "your_api_key_here"},
timeout=15,
)
res.raise_for_status()
print(res.json()["data"])package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/commodityprices?commodity=copper&group=base_metals&unit=lb&month=2024-06&history=12", nil)
req.Header.Set("x-api-key", "your_api_key_here")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}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.
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.
| Parameter | Type | Description |
|---|---|---|
commodityOptional | string | 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 | 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 | 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 to look up (YYYY-MM), back to 1960-01. Omit for the latest month. |
historyOptionalPremium | integer | Months 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.
{
"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.
| Field | Type | Example | 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 | |
commodity | string | "copper" | Commodity id, e.g. copper or wheat_hrw |
name | string | "Copper" | Commodity name as the Pink Sheet describes it |
group | string | "base_metals" | base_metals, grains, oils_and_meals, beverages, other_food, raw_materials, timber or fertilizers |
month | string | "2026-10" | Month the price is the average for (YYYY-MM) |
price | number | 14508 | Monthly average price |
currency | string | "USD" | USD, or USX (US cents) for plywood, which is published in cents per sheet |
unit | string | "metric_ton" | Unit the prices are quoted per |
publishedUnit | string | "metric_ton" | Unit the World Bank publishes the commodity in: metric_ton, kg, cubic_meter, dry_metric_ton_unit or sheet |
previousMonth | string | "2026-09" | The month before, with a price (YYYY-MM) |
previousPrice | number | 14474 | Price in the previous month |
change | number | 34 | Change from the previous month, in currency per unit |
changePercent | number | 0.23 | Change from the previous month, in percent |
changeDirection | string | "up" | up, down or unchanged |
yearAgoPricePremium | number | 10740 | Price in the same month a year earlier |
yearOverYearPercentPremium | number | 35.08 | Change from the same month a year earlier, in percent |
high12mPremium | number | 14508 | Highest monthly price in the 12 months to month |
high12mMonthPremium | string | "2026-10" | Month of the 12-month high |
low12mPremium | number | 10812 | Lowest monthly price in the 12 months to month |
low12mMonthPremium | string | "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.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted | A key restriction or IP allow-list; see key scoping. |
429 | Rate limited, or out of credits | Read 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.
Related
More in Finance: