Developer Documentation

Commodity Objects
Category
Category stands for the commodity type: metals, energy, agriculture and livestock
Name
Name defines the particular commodity selected from its commodity category like gold from metals, etc.
Unit
The measurement of a commodity
Price
The price at which the commodity is traded.
Date
The date on which the commodity is traded.
Day Price Change
The changes in the price of a commodity occuring during the day.
Day Percentage Change
The daily price change of a commodity expressed as a percentage.
Weekly Percentage Change
The accumulative weekly price changes of a commodity expressed as a percentage.
Monthly Percentage Change
The monthly weekly price changes of a commodity expressed as a percentage.
Yearly Percentage Change
The accumulative yearly price changes of a commodity expressed as a percentage.

Historical Commodity Prices API

1
API Request Input

To request the historical price of a specific commodity, include the mandatory parameter “name” in the API URL path.

				
					https://api.commoditic.com/api/v1/commodities_history?key=[API-KEY]&name=gold

				
			

Use the “date_from” and “date_to” parameters to specify the time period.

				
					https://api.commoditic.com/api/v1/commodities_history?key=[API_KEY]&frequency=day&date_from=2017-01-01&date_to=2018-06-01

				
			

Use the “frequency” parameter to specify the interval (can be “daily” or “monthly”).

				
					https://api.commoditic.com/api/v1/commodities_history?key=API_KEY&name=zincs&frequency=month


				
			
2
API Response Output

Your request will return the historical price data of the commodity on the given date(s) in JSON.  Example output with data fields below.

				
					{
  "status": {
    "code": "200",
    "message": "OK",
    "details": ""
  },
  "result": {
    "basics": {
      "frequency": "1day"
    },
    "output": {
      "category": "metals",
      "name": "gold",
      "unit": "USD/t.oz",
      "prices": [
        {
          "price": "1897.47",
          "date": "2023-08-22"
        }
      ]
    }
  }
}
				
			

Alloys & Metals Commodities Price API

GoldSilver
PlatinumPalladium
CopperAluminum
ZincLead
NickelTin
Iron OreSteel
CobaltLithium
TitaniumMolybdenum
UraniumTungsten
NeodymiumLanthanum
MagnesiumAntimony
Bismuth
1
API Request Input

To request the current price of an alloy and metal commodity, include the mandatory parameter “name” in the API URL path.

				
					https://api.commoditic.com/api/v/commodities?key=[API-KEY]&name=gold

				
			
2
API Response Output

Your request will return the current price data of the alloy and metal commodity.  Example output with data fields below.

				
					{
    "status": {
        "message": "Success"
    },
    "results": [
        {
      "Commodity": "Gold",
      "Price": "$1800",
          "High": "$1815",
          "Low": "$1790",
          "Open": "$1795",
          "Close": "$1800",
      "Daily Change": "+$5",
      "Weekly Change": "+$10",
      "Monthly Change": "+$25",
      "Q1 Change": "+$50",
      "Q2 Change": "-$20",
      "Q3 Change": "+$30",
      "Q4 Change": "+$40",
      "Date": "2024-02-07",
      "Time": "16:00 EST",
      "Unit": "Troy Ounce",
      "Currency": "USD",
      "Symbol": "GC"
        }
    [
}
				
			

Power & Energy Commodities Price API

Crude Oil (Light Sweet Crude, Brent Crude)Natural Gas
GasolineHeating Oil
DieselCoal
UraniumEthanol
PropaneElectricity
BiofuelWind Power (Renewable Energy Certificates)
Solar Power (Renewable Energy Certificates)Geothermal Energy
Hydro PowerBiomass
1
API Request Input

To request the current price of a power and energy commodity, include the mandatory parameter “name” in the API URL path

				
					https://api.commoditic.com/api/v1/commodities?key=[API-KEY]&name=crude_oil
				
			
2
API Response Output

Your request will return the current price data of the power and energy commodity.  Example output with data fields below.

				
					{
    "status": {
        "message": "Success"
    },
    "results": [
        {
      "Commodity": "Crude Oil",
      "Price": "$70.00",
          "High": "$71.50",
          "Low": "$69.80",
          "Open": "$70.10",
          "Close": "$70.00",
      "Daily Change": "+$0.20",
      "Weekly Change": "+$1.00",
      "Monthly Change": "+$2.50",
      "Q1 Change": "+$4.00",
      "Q2 Change": "-$3.00",
      "Q3 Change": "+$5.00",
      "Q4 Change": "+$3.50",
      "Date": "2024-02-07",
      "Time": "16:00 EST",
      "Unit": "Barrel",
      "Currency": "USD",
      "Symbol": "CL"
        }
    [
}
				
			

Husbandry & Agricultural Commodities Price API

Grains and CerealsOilseedsSpices and HerbsFruits and VegetablesPulsesBeverages and StimulantsNutsOthers
WheatSoybeansPepper (Black, White)ApplesDry beansCoffeeAlmondsCotton (fiber)
Corn (Maize)Canola (Rapeseed)ClovesOrangesLentilsCocoa (Cacao)PeanutsRubber (natural)
RiceSunflower seedsCinnamonBananasPeasTeaWalnutsTobacco
BarleyCottonseedNutmegGrapesChickpeasSugar (Sugarcane and Sugar Beet)CashewsHops (for beer)
OatsPalm oilGingerTomatoesPecansHemp (for fiber and seeds)
SorghumCoconut oilTurmericPotatoesPistachios
RyeOlive oilVanillaOnions
MilletSesame seedsLettuce
QuinoaCarrots
Strawberries
Blueberries
Avocadoes
Peppers
1
API Request Input

To request the current price of a husbandry and agricultural commodity, include the mandatory parameter “name” in the API URL path.

				
					https://api.commoditic.com/api/v1/commodities?key=[API-KEY]&name=butter
				
			
2
API Response Output

Your request will return the current price data of the husbandry and agricultural commodity.  Example output with data fields below.

				
					{
    "status": {
        "message": "Success"
    },
    "results": [
        {
      "Commodity": "Butter",
      "Price": "$2.50",
          "High": "$2.55",
          "Low": "$2.45",
          "Open": "$2.48",
          "Close": "$2.50",
      "Daily Change": "+$0.02",
      "Weekly Change": "+$0.05",
      "Monthly Change": "+$0.10",
      "Q1 Change": "+$0.20",
      "Q2 Change": "-$0.15",
      "Q3 Change": "+$0.25",
      "Q4 Change": "+$0.30",
      "Date": "2024-02-07",
      "Time": "16:00 EST",
      "Unit": "Pound",
      "Currency": "USD",
        }
    [
}
				
			

Livestock Commodity Prices API

1
API Request Input

To make an API request for the price of a livestock commodity, you have to use the key filtering parameter “name” in the API URL Path. Check below the example.

				
					https://api.commoditic.com/api/v1/commodities?key=[API-KEY]&name=live_cattle
				
			
2
API Response Output

Once you have selected the commodity name, you will get an API response for the price of the respective livestock commodity. Check the detailed output below.

				
					{
    "status": {
        "message": "Success"
    },
    "results": [
        {
            "category": "Livestock",
            "Name": "Live Cattle"
            "Unit": "USD/Lbs"
            "Price": "137.13750"
            "Day Price Change": "1.6500"
            "Day Percentage Change": "1.22%"
            "Weekly Percentage Change": "1.82%"
            "Monthly Percentage Change": "2.61%"
            "Yearly Percentage Change": "13.07%"
            "Date": "2022.07.2022"
        }
    [
}
				
			

Manufacturing & Industrial Commodities Price API

SteelCopper
AluminumZinc
NickelLead
TinIron Ore
CementPlywood
RubberGlass
PlasticsChemicals
AsphaltCoal
Natural GasCrude Oil
UraniumSilicon
ManganeseChromium
TitaniumMolybdenum
Tungsten
1
API Request Input

To request the current price of a manufacturing and industrial commodity, include the mandatory parameter “name” in the API URL path.

				
					https://api.commoditic.com/api/v1/commodities?key=[API-KEY]&name=zinc
				
			
2
API Response Output

Your request will return the current price data of the manufacturing and industrial commodity.  Example output with data fields below.

				
					{
    "status": {
        "message": "Success"
    },
    "results": [
        {
      "Commodity": "Zinc",
      "Price": "$1.20",
          "High": "$1.22",
          "Low": "$1.18",
          "Open": "$1.19",
          "Close": "$1.20",
      "Daily Change": "+$0.01",
      "Weekly Change": "+$0.03",
      "Monthly Change": "+$0.06",
      "Q1 Change": "+$0.10",
      "Q2 Change": "-$0.05",
      "Q3 Change": "+$0.08",
      "Q4 Change": "+$0.12",
      "Date": "2024-02-07",
      "Time": "16:00 EST",
      "Unit": "Pound",
      "Currency": "USD",
        }
    [
}
				
			

Check out our subscription plans