Price copper, wheat, coffee and 55 more commodities off World Bank monthly benchmarks.
Commodity Prices returns the World Bank Pink Sheet's monthly average price for 58 agricultural, fertilizer and base metal commodities: copper, aluminum, nickel, zinc, tin, iron ore, wheat, maize, rice, soybeans, coffee, cocoa, sugar, cotton, palm oil, urea and more. Each price comes with the previous month, the monthly change, the year-over-year change and the 12-month range, with monthly history back to 1960.
Try it — live request, no key required
No key required to try it. Get a key to use it in your app.
{
"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"
}
]
}
}
About the Commodity Prices API
A commodity price API built on the World Bank's Commodity Price Data, known as the Pink Sheet: monthly average prices in nominal US dollars for base metals (aluminum, copper, lead, nickel, tin, zinc, iron ore), grains (wheat, maize, rice, barley, sorghum), oils and meals (soybeans, soybean oil and meal, palm oil, rapeseed and sunflower oil), beverages (Arabica and Robusta coffee, cocoa, tea), other food (sugar, bananas, oranges, beef, chicken, lamb, shrimp), raw materials (cotton, rubber, tobacco, logs, sawnwood, plywood) and fertilizers (urea, DAP, TSP, phosphate rock, potash).
Every plan gets the latest month's price for one commodity with the previous month and the monthly change, in its published unit or converted between metric tons, kilograms, pounds and short or long tons. Paid plans add the year-over-year change and 12-month high and low, several commodities or a whole group in one call, any past month back to 1960 and up to 20 years of monthly history. Crude oil, natural gas and coal are in the Energy Prices API; gold, silver and platinum have their own APIs.
How it works
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.
What people use it for
- 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.
Ways to call it
One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.
- JSON
- Default REST response
- XML
- Markup format
- YAML
- Human-readable
- CSV
- Tabular export
- GraphQL
- Query language
- MCP
- For AI agents
Other ways to use Commodity Prices
Same data, same APIVerve account, same credit balance — one key works on all of them.
Which commodities are covered?
Are these live or daily prices?
What does the Free plan include?
Which plan fits 10,000 price lookups a month?
Why is one commodity's month older than the others?
Request parameters — GET /v1/commodityprices
Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them. Anything not listed here is dropped rather than passed through.
Optional
| Parameter | Type | Example | Description |
|---|---|---|---|
commodityOptional | string | copper | 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 | base_metals | 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 | lb | 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 | 2024-06 | Month to look up (YYYY-MM), back to 1960-01. Omit for the latest month. |
historyOptionalPremium | integer | 12 | Months of history to include, ending at the returned month (1-240). range 1-240 |
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"Authentication
Send your key in the x-api-key header. That is the only auth step — no token exchange, and no per-endpoint scope to configure.
| Header | When | Value |
|---|---|---|
x-api-keyRequired | Every request | Your API key. Header names are case-insensitive, so X-API-Key is the same header. |
AuthorizationAlternate | Instead of the above | Bearer <key> — for clients that only expose bearer auth. Resolves to the same account and the same billing. |
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.
Response — GET /v1/commodityprices
Every APIVerve endpoint returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape.
{
"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 |
Response headers
Every response carries your balance, so your own code always knows where it stands without polling anything. All four are exposed to browsers through CORS.
| Header | What it carries |
|---|---|
x-api-remaining-credits | Credits left in the current cycle |
x-api-credits-used | Credits spent in the current cycle |
x-api-max-credits | The allowance for the cycle |
x-api-version | Version of the endpoint that answered |
Errors
Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter that has to change. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted here | A key restriction or an IP allow-list — never a bad key. |
429 | Rate limited, or out of credits | Read error to tell them apart, then back off or top up. |
What a call costs — 2 credits per call
Credits are shared across every APIVerve API — one balance, one key, one bill. Failed requests never count against it, so a rejected input costs nothing.
| Plan | Per month | Credits | Commodity Prices calls | Per 1,000 calls |
|---|---|---|---|---|
| Free | Free | 200 | 100 | Free |
| Starter | $29.99 | 200,000 | 100,000 | $0.30 |
| Pro | $99.99 | 1,000,000 | 500,000 | $0.20 |
| Mega | $299.99 | 4,000,000 | 2,000,000 | $0.15 |
Calls are what the credits buy at this API's rate — spend them here, on any of the other APIs, or across both. Nothing is reserved per endpoint.
Call it from cURL — GET /v1/commodityprices
No SDK to install — this is a plain HTTPS call to /v1/commodityprices with your key in the x-api-key header. Swap in a real key and it runs as-is.
curl "https://api.apiverve.com/v1/commodityprices" \
-H "x-api-key: YOUR_API_KEY"Resources
Call it from Node.js — GET /v1/commodityprices
No SDK to install — this is a plain HTTPS call to /v1/commodityprices with your key in the x-api-key header. Swap in a real key and it runs as-is.
const res = await fetch("https://api.apiverve.com/v1/commodityprices", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);Resources
Call it from Python — GET /v1/commodityprices
No SDK to install — this is a plain HTTPS call to /v1/commodityprices with your key in the x-api-key header. Swap in a real key and it runs as-is.
import requests
res = requests.get(
"https://api.apiverve.com/v1/commodityprices",
headers={"x-api-key": "YOUR_API_KEY"},
)
print(res.json()["data"])Resources
Call it from C# / .NET — GET /v1/commodityprices
No SDK to install — this is a plain HTTPS call to /v1/commodityprices with your key in the x-api-key header. Swap in a real key and it runs as-is.
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var json = await client.GetStringAsync("https://api.apiverve.com/v1/commodityprices");
Console.WriteLine(json);Resources
Call it from Go — GET /v1/commodityprices
No SDK to install — this is a plain HTTPS call to /v1/commodityprices with your key in the x-api-key header. Swap in a real key and it runs as-is.
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/commodityprices", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))Resources
Call it from PHP — GET /v1/commodityprices
No SDK to install — this is a plain HTTPS call to /v1/commodityprices with your key in the x-api-key header. Swap in a real key and it runs as-is.
$ch = curl_init("https://api.apiverve.com/v1/commodityprices");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-api-key: YOUR_API_KEY"]);
$response = curl_exec($ch);
echo $response;Resources
Call it from Ruby — GET /v1/commodityprices
No SDK to install — this is a plain HTTPS call to /v1/commodityprices with your key in the x-api-key header. Swap in a real key and it runs as-is.
require "net/http"
uri = URI("https://api.apiverve.com/v1/commodityprices")
req = Net::HTTP::Get.new(uri)
req["x-api-key"] = "YOUR_API_KEY"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |h| h.request(req) }
puts res.bodyResources
Zero-code embed — one snippet, no backend
Drop an interactive Commodity Prices form onto any page. The widget calls the API for you, so no key ever appears in your markup and there is nothing to deploy.
Changelog — Commodity Prices API
Every change to this endpoint, newest first. Breaking changes ship as a new version and the previous one keeps serving — response fields are added, never removed or retyped in place, so an integration written against v1 keeps working.
Entries are picked up from dated catalog snapshots, so the first one appears after the next snapshot that moves something. A period where nothing changed produces no entry — silence is a valid changelog for the Commodity Prices API.
Finance
- Balance Sheet
- Bank Lookup
- Benchmark Rate
- BIN Lookup
- Bitcoin Price
- Cash Flow Statement
- Commodity Prices
- Company Lookup
- Cost of Living
- CPI Inflation
- Currency Converter
- Currency Rate
- Currency Symbols
- Dividends
- Earnings Report
- Energy Prices
- Ethereum Price
- Exchange Rate
- Financial Ratios
- Funding Rounds
- Gas Prices
- GDP Data
- Global Stock Market
- Gold Price
- I-Bond Rates
- IFSC Lookup
- Income Statement
- Income Tax Brackets
- Income Tax Calculator
- Inflation Rate
- Insider Trading
- Institutional Holdings
- Interest Rate
- Jobs Report
- LEI Lookup
- Loan Calculator
- Minimum Wage
- Mortgage Calculator
- Mortgage Rate
- National Debt
- Palladium Price
- Platinum Price
- Population Data
- Purchasing Power
- Routing Number Lookup
- Sales Tax Calculator
- Sales Tax Lookup
- Sanctions Screening
- SEC Filings
- Silver Price
- Stock Exchange
- Stock Market Open Times
- SWIFT Code Lookup
- Ticker News
- Ticker Symbols
- Trade Balance
- Treasury Yields
- Unemployment Rate
- VAT Rates