Developer Documentation
Historical Commodity Prices API
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
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
⚙️ Alloys & Metals Commodities List
| Gold | Silver |
| Platinum | Palladium |
| Copper | Aluminum |
| Zinc | Lead |
| Nickel | Tin |
| Iron Ore | Steel |
| Cobalt | Lithium |
| Titanium | Molybdenum |
| Uranium | Tungsten |
| Neodymium | Lanthanum |
| Magnesium | Antimony |
| Bismuth |
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
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
⚡️ Power & Energy Commodities List
| Crude Oil (Light Sweet Crude, Brent Crude) | Natural Gas |
| Gasoline | Heating Oil |
| Diesel | Coal |
| Uranium | Ethanol |
| Propane | Electricity |
| Biofuel | Wind Power (Renewable Energy Certificates) |
| Solar Power (Renewable Energy Certificates) | Geothermal Energy |
| Hydro Power | Biomass |
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
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
🌱 Agricultural Commodities List
| Grains and Cereals | Oilseeds | Spices and Herbs | Fruits and Vegetables | Pulses | Beverages and Stimulants | Nuts | Others |
|---|---|---|---|---|---|---|---|
| Wheat | Soybeans | Pepper (Black, White) | Apples | Dry beans | Coffee | Almonds | Cotton (fiber) |
| Corn (Maize) | Canola (Rapeseed) | Cloves | Oranges | Lentils | Cocoa (Cacao) | Peanuts | Rubber (natural) |
| Rice | Sunflower seeds | Cinnamon | Bananas | Peas | Tea | Walnuts | Tobacco |
| Barley | Cottonseed | Nutmeg | Grapes | Chickpeas | Sugar (Sugarcane and Sugar Beet) | Cashews | Hops (for beer) |
| Oats | Palm oil | Ginger | Tomatoes | Pecans | Hemp (for fiber and seeds) | ||
| Sorghum | Coconut oil | Turmeric | Potatoes | Pistachios | |||
| Rye | Olive oil | Vanilla | Onions | ||||
| Millet | Sesame seeds | Lettuce | |||||
| Quinoa | Carrots | ||||||
| Strawberries | |||||||
| Blueberries | |||||||
| Avocadoes | |||||||
| Peppers |
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
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
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
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
🏭 Industrial Commodities List
| Steel | Copper |
| Aluminum | Zinc |
| Nickel | Lead |
| Tin | Iron Ore |
| Cement | Plywood |
| Rubber | Glass |
| Plastics | Chemicals |
| Asphalt | Coal |
| Natural Gas | Crude Oil |
| Uranium | Silicon |
| Manganese | Chromium |
| Titanium | Molybdenum |
| Tungsten |
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
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",
}
[
}