All APIs

Historical commodity prices API

A commodity prices API for 70 monthly series from the World Bank Pink Sheet. Read copper price history, fertilizer prices and agricultural benchmarks in USD, with units as published. Source: The World Bank: World Bank Commodity Price Data (The Pink Sheet), CC BY 4.0

Online99.99% uptime, last 30 days375 ms typical response

First request

Find metals series

curl --request GET \
  --url "https://api.narwhalapi.com/v1/commodities/physical/series?category=metals" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
Example response
{
  "series": [
    {
      "series_id": "worldbank-cmo-copper",
      "commodity": "copper",
      "commodity_key": "copper",
      "category": "metals",
      "product": "copper",
      "country": "WLD",
      "price_type": "international_benchmark",
      "basis": "settlement price",
      "currency": "USD",
      "unit": "metric_ton",
      "unit_key": "tonne",
      "unit_quantity": "1",
      "frequency": "monthly",
      "description": "Grade A copper, minimum 99.9935% purity, cathodes and wire bar shapes, exchange settlement price.",
      "attribution": "The World Bank: World Bank Commodity Price Data (The Pink Sheet), CC BY 4.0",
      "coverage_start": "1960-01-01",
      "coverage_end": "2026-09-30"
    }
  ]
}

Endpoints

GETDiscover physical price series/v1/commodities/physical/series

Discover physical commodity price series. Physical prices for about 120 commodities across metals, battery materials, energy, fertilizer and chemical inputs, and agricultural goods, plus US retail fuel (EIA) and World Bank monthly benchmarks..

Parameters

  • commodityoptional

    Filter by commodity, such as gasoline, diesel, copper, urea, rice, crude-oil or coffee. Use the commodity value returned by discovery.

  • categoryoptional

    Covered categories are softs, oils-oilseeds, metals, grains, energy, fertilizers, forestry and livestock-dairy. Fuel series use energy.

  • countryoptional

    Use WLD for world benchmarks or EUU for the European Union. Other values are the three-letter country codes this route returns in the country field, such as USA, CHN, BRA or IDN. US fuel uses USA.

  • price_typeoptional

    Fuel uses retail_average. Daily EIA spot and World Bank series use international_benchmark, except tobacco, which uses import_unit_value. Web-read series use international_benchmark, market_average or wholesale_average.

  • currencyoptional

    Filter by quote currency, such as USD or INR.

  • limitoptional

    Maximum items per page. Defaults to 100.

  • cursoroptional

    Use next_cursor from the previous page with the same filters and limit. Null means there are no more pages.

Response fields

  • seriesarray

    Series with commodity, product, country, area, price basis, currency, unit, frequency, attribution and coverage dates. An empty array means no series matches.

  • series[].series_idstring

    Stable ID returned by series discovery.

  • series[].currencystring

    Quote currency. US fuel, World Bank and most web-read series use USD. National Egg Coordination Committee (NECC) egg prices use INR.

  • series[].unit / series[].unit_quantitystrings

    Published unit and the quantity priced. Fuel uses us_gallon. Monthly benchmarks use metric_ton, kilogram, barrel, cubic_meter, troy_ounce, mmbtu, dry_metric_ton_unit or sheet. Web-read series use tonne, dry_tonne, kilogram, mtu, pound, troy_ounce or egg. The quantity is 1 except for plywood, which uses USD per 100 sheets, CEPEA sugar, which uses a 50 kg bag, and NECC eggs, which use 100 eggs. Values are not converted.

  • series[].unit_keystring

    unit_key is the unit in one standard spelling; unit keeps the source's wording. Mass keys are gram, kilogram, tonne, dry_tonne, wet_tonne, short_ton, pound, troy_ounce, carat, mtu and dry_metric_ton_unit. Volume keys are barrel, gallon, bushel, cubic_meter, standard_cubic_meter and board_foot. Energy keys are mmbtu and terajoule. Count keys are sheet and count. When a price is quoted in cents, price_scale is 0.01: multiply the price by it to get the amount in currency.

  • series[].attributionstring

    Keep the response attribution with the data. Source: U.S. Energy Information Administration. Source: The World Bank: World Bank Commodity Price Data (The Pink Sheet), CC BY 4.0. Web-read series carry the publisher's name.

  • series[].commodity / series[].category / series[].productstrings

    Commodity, category and product definition. Examples include gasoline / energy / regular-gasoline and copper / metals / copper. Discovery returns the values for each series.

  • series[].commodity_keystring

    commodity_key names the commodity the same way on spot, futures, prediction and physical prices, such as gold or crude-oil. Crude oil also carries benchmark (wti, brent, urals or dubai), and futures carry exchange_mic, the exchange's standard code.

  • series[].areastring

    area gives the regional scope and is omitted for national series.

  • series[].countrystring

    WLD means a world benchmark. EUU means the European Union. Countries use ISO alpha-3 codes. US fuel uses USA for the national average. Web-read series use the code of the priced market, such as CHN, BRA, IND, THA or IDN, or WLD.

  • series[].price_typestring

    Fuel uses retail_average. Daily EIA spot and monthly series use international_benchmark, except tobacco, which uses import_unit_value. Web-read series use international_benchmark, market_average or wholesale_average.

  • series[].basisstring

    The basis describes the price definition and is omitted when the source gives none. Grade, delivery term such as CIF or FOB, and origin are written here: the series has no separate low, high, grade or origin fields.


Full reference →
GETGet physical price series details/v1/commodities/physical/series/{series_id}

Read the definition, unit and coverage of one physical price series..

Parameters

  • series_idrequired

    Use a stable ID returned by discovery, such as fuel-eia-usa-regular-gasoline or worldbank-cmo-copper.

Response fields

  • series_idstring

    Stable ID returned by series discovery.

  • currencystring

    Quote currency. US fuel, World Bank and most web-read series use USD. National Egg Coordination Committee (NECC) egg prices use INR.

  • unit / unit_quantitystrings

    Published unit and the quantity priced. Fuel uses us_gallon. Monthly benchmarks use metric_ton, kilogram, barrel, cubic_meter, troy_ounce, mmbtu, dry_metric_ton_unit or sheet. Web-read series use tonne, dry_tonne, kilogram, mtu, pound, troy_ounce or egg. The quantity is 1 except for plywood, which uses USD per 100 sheets, CEPEA sugar, which uses a 50 kg bag, and NECC eggs, which use 100 eggs. Values are not converted.

  • unit_keystring

    unit_key is the unit in one standard spelling; unit keeps the source's wording. Mass keys are gram, kilogram, tonne, dry_tonne, wet_tonne, short_ton, pound, troy_ounce, carat, mtu and dry_metric_ton_unit. Volume keys are barrel, gallon, bushel, cubic_meter, standard_cubic_meter and board_foot. Energy keys are mmbtu and terajoule. Count keys are sheet and count. When a price is quoted in cents, price_scale is 0.01: multiply the price by it to get the amount in currency.

  • attributionstring

    Keep the response attribution with the data. Source: U.S. Energy Information Administration. Source: The World Bank: World Bank Commodity Price Data (The Pink Sheet), CC BY 4.0. Web-read series carry the publisher's name.

  • commodity / category / productstrings

    Commodity, category and product definition. Examples include gasoline / energy / regular-gasoline and copper / metals / copper. Discovery returns the values for each series.

  • commodity_keystring

    commodity_key names the commodity the same way on spot, futures, prediction and physical prices, such as gold or crude-oil. Crude oil also carries benchmark (wti, brent, urals or dubai), and futures carry exchange_mic, the exchange's standard code.

  • areastring

    area gives the regional scope and is omitted for national series.

  • countrystring

    WLD means a world benchmark. EUU means the European Union. Countries use ISO alpha-3 codes. US fuel uses USA for the national average. Web-read series use the code of the priced market, such as CHN, BRA, IND, THA or IDN, or WLD.

  • price_typestring

    Fuel uses retail_average. Daily EIA spot and monthly series use international_benchmark, except tobacco, which uses import_unit_value. Web-read series use international_benchmark, market_average or wholesale_average.

  • basisstring

    The basis describes the price definition and is omitted when the source gives none. Grade, delivery term such as CIF or FOB, and origin are written here: the series has no separate low, high, grade or origin fields.

  • tax_includedboolean

    tax_included is true when the published price includes value-added tax or sales tax, such as 13% VAT on SMM China domestic prices or 7% ICMS on CEPEA sugar, and false when it excludes it. It is omitted when the source does not say.


Full reference →
GETGet the latest physical price/v1/commodities/physical/series/{series_id}/latest

Read the latest available price of one physical series with its observation period..

Parameters

  • series_idrequired

    Use a stable ID returned by discovery, such as fuel-eia-usa-regular-gasoline or worldbank-cmo-copper.

Response fields

  • series_idstring

    Stable ID returned by series discovery.

  • currencystring

    Quote currency. US fuel, World Bank and most web-read series use USD. National Egg Coordination Committee (NECC) egg prices use INR.

  • unit / unit_quantitystrings

    Published unit and the quantity priced. Fuel uses us_gallon. Monthly benchmarks use metric_ton, kilogram, barrel, cubic_meter, troy_ounce, mmbtu, dry_metric_ton_unit or sheet. Web-read series use tonne, dry_tonne, kilogram, mtu, pound, troy_ounce or egg. The quantity is 1 except for plywood, which uses USD per 100 sheets, CEPEA sugar, which uses a 50 kg bag, and NECC eggs, which use 100 eggs. Values are not converted.

  • unit_keystring

    unit_key is the unit in one standard spelling; unit keeps the source's wording. Mass keys are gram, kilogram, tonne, dry_tonne, wet_tonne, short_ton, pound, troy_ounce, carat, mtu and dry_metric_ton_unit. Volume keys are barrel, gallon, bushel, cubic_meter, standard_cubic_meter and board_foot. Energy keys are mmbtu and terajoule. Count keys are sheet and count. When a price is quoted in cents, price_scale is 0.01: multiply the price by it to get the amount in currency.

  • attributionstring

    Keep the response attribution with the data. Source: U.S. Energy Information Administration. Source: The World Bank: World Bank Commodity Price Data (The Pink Sheet), CC BY 4.0. Web-read series carry the publisher's name.

  • period_start / period_enddates

    Inclusive observation dates. Fuel uses the Monday survey date for both. A monthly observation spans the whole month, such as 2026-09-01 to 2026-09-30.

  • pricedecimal string

    Published price in the series currency per unit_quantity units. Read it with the series price type and basis.

  • published_ondate

    Publication date. Omitted when the source gives none.

  • revisioninteger

    Starts at 1 and increases when a later publication changes the value for that period.


Full reference →
GETGet physical price history/v1/commodities/physical/series/{series_id}/observations

Read the price history of one physical series with periods, published units and revisions..

Parameters

  • series_idrequired

    Use a stable ID returned by discovery, such as fuel-eia-usa-regular-gasoline or worldbank-cmo-copper.

  • startoptional

    Inclusive start date. Supply start and end together, or omit both.

  • endoptional

    Exclusive end date, later than start. Observations overlapping the date window are returned.

  • limitoptional

    Maximum items per page. Defaults to 100.

  • cursoroptional

    Use next_cursor from the previous page with the same filters and limit. Null means there are no more pages.

Response fields

  • series_idstring

    Stable ID returned by series discovery.

  • currencystring

    Quote currency. US fuel, World Bank and most web-read series use USD. National Egg Coordination Committee (NECC) egg prices use INR.

  • unit / unit_quantitystrings

    Published unit and the quantity priced. Fuel uses us_gallon. Monthly benchmarks use metric_ton, kilogram, barrel, cubic_meter, troy_ounce, mmbtu, dry_metric_ton_unit or sheet. Web-read series use tonne, dry_tonne, kilogram, mtu, pound, troy_ounce or egg. The quantity is 1 except for plywood, which uses USD per 100 sheets, CEPEA sugar, which uses a 50 kg bag, and NECC eggs, which use 100 eggs. Values are not converted.

  • unit_keystring

    unit_key is the unit in one standard spelling; unit keeps the source's wording. Mass keys are gram, kilogram, tonne, dry_tonne, wet_tonne, short_ton, pound, troy_ounce, carat, mtu and dry_metric_ton_unit. Volume keys are barrel, gallon, bushel, cubic_meter, standard_cubic_meter and board_foot. Energy keys are mmbtu and terajoule. Count keys are sheet and count. When a price is quoted in cents, price_scale is 0.01: multiply the price by it to get the amount in currency.

  • attributionstring

    Keep the response attribution with the data. Source: U.S. Energy Information Administration. Source: The World Bank: World Bank Commodity Price Data (The Pink Sheet), CC BY 4.0. Web-read series carry the publisher's name.

  • observationsarray

    Observations ordered oldest first. Each contains period_start, period_end, a decimal-string price and revision. published_on is optional.

  • observations[].period_start / observations[].period_enddates

    Inclusive observation dates. Fuel uses the Monday survey date for both. A monthly observation spans the whole month, such as 2026-09-01 to 2026-09-30.

  • observations[].pricedecimal string

    Published price in the series currency per unit_quantity units. Read it with the series price type and basis.

  • observations[].published_ondate

    Publication date. Omitted when the source gives none.

  • observations[].revisioninteger

    Starts at 1 and increases when a later publication changes the value for that period.

  • next_cursorstring or null

    Opaque continuation token. Null marks the final page.


Full reference →

Use cases

Prices in your currency

Convert a commodity price into your own currency with an exchange rate.

Read the guide →

Backfill a full history

Page through all the history, save it to a file and resume if it stops.

Read the guide →

A daily data pull

Run a small script once a day and append the result to a CSV.

Read the guide →

Agricultural pricing

Price wheat, rice, sugar and palm oil from daily, weekly and monthly series.

Read the use case →

Coverage

Sources

Related APIs

US fuel prices API

Weekly US gasoline and diesel prices in USD per US gallon.

Explore the API →

Palm oil prices API

Crude Palm Oil and Fresh Fruit Bunch prices from Indonesia and Malaysia.

Explore the API →

Physical commodity prices API

Physical prices for about 120 commodities across metals, battery materials, energy, fertilizer and chemical inputs, and agricultural goods, plus US retail fuel (EIA) and World Bank monthly benchmarks. Includes palm oil. Units as published.

Explore the API →

Spot metals price API

Gold, silver, platinum and palladium spot prices, plus WTI, Brent and copper reference prices.

Explore the API →

Pricing

Prepaid credit, $2 per 1,000 calls, no plans or tiers.

See pricing →

FAQ

How do I get copper price history?

Use worldbank-cmo-copper with the observations endpoint. Pass start and end together to select a date window. Copper prices are monthly decimal strings in USD per metric ton.

Does this commodity API include fertilizer prices and rice prices?

Yes. Use category=fertilizers for fertilizer prices, commodity=urea for the urea price series, or commodity=rice for rice price benchmarks. Discovery returns the series IDs for latest prices and history.

How far back does history go?

The earliest monthly series start in January 1960. Others start later, and some have ended. Read coverage_start and coverage_end for each series.

What units and licence apply?

All prices use USD and the published unit and quantity. No unit conversion is applied. Keep the attribution with the data, which is licensed under CC BY 4.0. Source: The World Bank: World Bank Commodity Price Data (The Pink Sheet), CC BY 4.0

What should I check before using the data?

A new month is added after each monthly publication. Individual series can lag or have ended. Barley and sorghum end in August 2020; Mexican shrimp ends in October 2023. Check coverage_end before treating a value as current. Most series use WLD for a world benchmark. Others identify a country or the European Union. Source: The World Bank: World Bank Commodity Price Data (The Pink Sheet), CC BY 4.0