Historical Commodities Rates API provides access to historical data on commodity prices and exchange rates. It can be used to track changes in prices of resources and currencies over time, and to build applications that provide financial insights and forecasts.
{"ADA":"Cardano","AED":"United Arab Emirates Dirham","AFN":"Afghan Afghani","ALL":"Albanian Lek","ALU":"Aluminum","AMD":"Armenian Dram","ANG":"Netherlands Antillean Gulden","AOA":"Angolan Kwanza","ARS":"Argentine Peso","AUD":"Australian Dollar","AWG":"Aruban Florin","AZN":"Azerbaijani Manat","BAM":"Bosnia and Herzegovina Convertible Mark","BBD":"Barbadian Dollar","BCH":"Bitcoin Cash","BDT":"Bangladeshi Taka","BEEF":"Beef","BGN":"Bulgarian Lev","BHD":"Bahraini Dinar","BIF":"Burundian Franc","BL2c1":"Milling Wheat N2 Futures","BLKF":"Block Cheese Sep 23","BLKM23":"Block Cheese Jun 23","BLKN23":"Block Cheese Jul 23","BLKQ23":"Block Cheese Aug 23","BLKV23":"Block Cheese Oct 23","BLKZ23":"Block Cheese Dec 23","BMD":"Bermudian Dollar","BND":"Brunei Dollar","BO00":"Soybean Oil Continuous Contract","BOB":"Bolivian Boliviano","BOF24":"Soybean Oil Jan 2024","BOH24":"Soybean Oil Mar 2024","BOK24":"Soybean Oil May 2024","BON23":"Soybean Oil Jul 2023","BON24":"Soybean Oil Jul 2024","BOQ23":"Soybean Oil Aug 2023","BOQ24":"Soybean Oil Aug 2024","BOU23":"Soybean Oil Sep 2023","BOV23":"Soybean Oil Oct 2023","BOZ23":"Soybean Oil Dec 2023","BRENTOIL":"Brent Crude Oil","BRL":"Brazilian Real","BRN00":"Brent Crude Oil Continuous Contract","BSD":"Bahamian Dollar","BTC":"Bitcoin","BTN":"Bhutanese Ngultrum","BUTTER":"Butter","BWP":"Botswana Pula","BYN":"Belarusian Ruble","BYR":"Belarusian Ruble","BZD":"Belize Dollar","C1":"Corn Front Month","CAD":"Canadian Dollar","CANO":"Canola","CARDAMOM":"Cardamom","CDF":"Congolese Franc","CH24":"Corn Mar 2024","CH25":"Corn Mar 2025","CHF":"Swiss Franc","CK23":"Corn May 2023","CK24":"Corn May 2024","CK25":"Corn May 2025","CL1":"Crude Oil WTI (NYM $\/bbl) Front Month","CLF":"Unidad de Fomento","CLI00":"Cocoa Continuous Contract","CLIH24":"Cocoa Mar 2024","CLIH25":"Cocoa Mar 2025","CLIK24":"Cocoa May 2024","CLIK25":"Cocoa May 2025","CLIN24":"Cocoa Jul 2024","CLIN25":"Cocoa Jul 2025","CLIU23":"Cocoa Sep 2023","CLIU24":"Cocoa Sep 2024","CLIZ23":"Cocoa Dec 2023","CLIZ24":"Cocoa Dec 2024","CLP":"Chilean Peso","CN23":"Corn Jul 23","CN24":"Corn Jul 2024","CNH":"Chinese Renminbi Yuan Offshore","CNY":"Chinese Renminbi Yuan","COAL":"Coal","COAL-NCF":"Newcastle Coal Futures","COCOA":"Cocoa","COFFEE":"Arabica Coffee","COP":"Colombian Peso","CORN":"Corn","COTTON":"Cotton","CPO":"Crude Palm Oil","CRC":"Costa Rican Col\u00f3n","CSCF23":"Cheese Jan 23","CSCG23":"Cheese Feb 23","CSCU22":"Cheese","CSCV22":"Cheese Oct 22","CSCX22":"Cheese Nov 22","CSCZ22":"Cheese Dec 22","CU23":"Corn Sep 23","CU24":"Corn Sep 2024","CUC":"Cuban Convertible Peso","CVE":"Cape Verdean Escudo","CZ23":"Corn Dec 23","CZ24":"Corn Dec 2024","CZK":"Czech Koruna","D00":"Robusta Coffee Continuous Contract","DAF24":"Milk Jan 2024","DAG24":"Milk Feb 2024","DAH24":"Milk Mar 2024","DAJ24":"Milk Apr 2024","DAK24":"Milk May 2024","DAM24":"Milk Jun 2024","DAN24":"Milk (Class III) Jul 2024","DAQ24":"Milk (Class III) Aug 2024","DAV23":"Milk Oct 2023","DAX23":"Milk Nov 2023","DAZ23":"Milk Dec 2023","DE-EL":"Electricity Germany","DI_AMMON":"Di-ammonium Phosphate","DJF":"Djiboutian Franc","DK24":"Robusta Coffee May 2024","DKK":"Danish Krone","DLJ23":"Milk Apr '23","DLK23":"Milk May '23","DLM23":"Milk Jun '23","DLN23":"Milk Jul '23","DLQ23":"Milk Aug '23","DLU23":"Milk Sep '23","DLV22":"Milk Oct 22","DLX22":"Milk Nov 22","DN24":"Robusta Coffee Jul 2024","DOP":"Dominican Peso","DU24":"Robusta Coffee Sep 2024","DX24":"Robusta Coffee Nov 2024","DZD":"Algerian Dinar","EEK":"Estonian Kroon","EGGS-CH":"Eggs CH","EGGS-US":"Eggs US","EGP":"Egyptian Pound","ERN":"Eritrean Nakfa","ES-EL":"Electricity Spain","ETB":"Ethiopian Birr","ETH":"Ethereum","ETHANOL":"Ethanol","EU-NG":"Natural Gas Futures Europe","EUR":"Euro","FC00":"Feeder Cattle Continuous Contract","FCc1":"Feeder Cattle Futures - Aug 23","FCc2":"Feeder Cattle Futures - Sep 23","FCc3":"Feeder Cattle Futures - Oct 23","FCF24":"Feeder Cattle Jan 2024","FCH24":"Feeder Cattle Mar 2024","FCJ24":"Feeder Cattle Apr 2024","FCK24":"Feeder Cattle May 2024","FCM23":"Feeder Cattle May 23","FCQ24":"Feeder Cattle Aug 2024","FCU24":"Feeder Cattle Sep 2024","FCV23":"Feeder Cattle Oct 2023","FCX23":"Feeder Cattle Nov 2023","FJD":"Fijian Dollar","FKP":"Falkland Pound","FR-EL":"Electricity France","GBP":"British Pound","GDP":"German DIesel","GEL":"Georgian Lari","GF":"Feeder Cattle","GFU22":"Feeder Cattle","GGP":"Guernsey Pound","GHS":"Ghanaian Cedi","GIP":"Gibraltar Pound","GMD":"Gambian Dalasi","GNF":"Guinean Franc","GTQ":"Guatemalan Quetzal","GUARGUM":"Guar Gum","GUARSEED":"Guar Seed","GYD":"Guyanese Dollar","HKD":"Hong Kong Dollar","HNL":"Honduran Lempira","HOU22":"Heating Oil","HRK":"Croatian Kuna","HRN00":"HRC Steel Futures Continuous Contract","HTG":"Haitian Gourde","HUF":"Hungarian Forint","IDR":"Indonesian Rupiah","ILS":"Israeli New Sheqel","IMP":"Isle of Man Pound","INR":"Indian Rupee","IQD":"Iraqi Dinar","IRD":"Iridium (Troy Ounce)","ISK":"Icelandic Kr\u00f3na","IT-EL":"Electricity Italy","JEERA":"Jeera","JEP":"Jersey Pound","JMD":"Jamaican Dollar","JOD":"Jordanian Dinar","JPY":"Japanese Yen","KC00":"Arabica Coffee Continuous Contract","KCH23":"Arabica Coffee Mar 23","KCH24":"Arabica Coffee Mar 24","KCH25":"Arabica Coffee Mar 2025","KCK23":"Arabica Coffee May 23","KCK24":"Arabica Coffee May 24","KCK25":"Arabica Coffee May 2025","KCN22":"Arabica Coffee Jul 22","KCN23":"Arabica Coffee Jul 23","KCN24":"Arabica Coffee Jul 24","KCN25":"Arabica Coffee Jul 2025","KCU22":"Arabica Coffee Sep 22","KCU23":"Arabica Coffee Sep 23","KCU24":"Arabica Coffee Sep 2024","KCU25":"Arabica Coffee Sep 2025","KCZ22":"Arabica Coffee Dec 22","KCZ23":"Arabica Coffee Dec 23","KCZ24":"Arabica Coffee Dec 2024","KES":"Kenyan Shilling","KGS":"Kyrgyzstani Som","KHR":"Cambodian Riel","KMF":"Comorian Franc","KRAFT-PU":"Kraft Pulp","KRW":"South Korean Won","KWD":"Kuwaiti Dinar","KYD":"Cayman Islands Dollar","KZT":"Kazakhstani Tenge","LAK":"Lao Kip","LBP":"Lebanese Pound","LC00":"Live Cattle Continuous Contract","LCAT":"Live Cattle","LCc1":"Live Cattle Futures - Jun 23","LCc2":"Live Cattle Futures - Aug 23","LCc3":"Live Cattle Futures - Oct 23","LCG24":"Live Cattle Feb 2024","LCG25":"Live Cattle Feb 2025","LCJ24":"Live Cattle Apr 2024","LCJ25":"Live Cattle Apr 2025","LCM23":"Live Cattle Jun 2023","LCM24":"Live Cattle Jun 2024","LCO":"Cobalt (Troy Ounce)","LCQ23":"Live Cattle Aug 2023","LCQ24":"Live Cattle Aug 2024","LCV23":"Live Cattle Oct 2023","LCV24":"Live Cattle Oct 2024","LCZ23":"Live Cattle Dec 2023","LCZ24":"Live Cattle Dec 2024","LGOU22":"London Gas Oil","LHOG":"Lean Hog","LKR":"Sri Lankan Rupee","LRD":"Liberian Dollar","LSL":"Lesotho Loti","LTC":"Litecoin","LTL":"Lithuanian Litas","LUMBER":"Lumber","LVL":"Latvian Lats","LYD":"Libyan Dinar","MAD":"Moroccan Dirham","MAIZE":"Maize","MDL":"Moldovan Leu","MENTHA":"Mentha Oil","METHANOL":"Methanol","MGA":"Malagasy Ariary","MILK":"Milk","MKD":"Macedonian Denar","MMK":"Myanmar Kyat","MNT":"Mongolian T\u00f6gr\u00f6g","MOP":"Macanese Pataca","MRO":"Mauritanian Ouguiya","MTL":"Maltese Lira","MUR":"Mauritian Rupee","MVR":"Maldivian Rufiyaa","MWK":"Malawian Kwacha","MXN":"Mexican Peso","MYR":"Malaysian Ringgit","MZN":"Mozambican Metical","NAD":"Namibian Dollar","NAPHTHA":"Naphtha","NG":"Natural Gas","NG00":"Natural Gas Continuous Contract","NGN":"Nigerian Naira","NI":"Nickel","NIO":"Nicaraguan C\u00f3rdoba","NOK":"Norwegian Krone","NPR":"Nepalese Rupee","NZD":"New Zealand Dollar","OAT":"Oat","OATS":"Oats","OJU22":"Orange Juice","OMR":"Omani Rial","PAB":"Panamanian Balboa","PE":"Polyethylene","PEN":"Peruvian Sol","PGK":"Papua New Guinean Kina","PHP":"Philippine Peso","PKR":"Pakistani Rupee","PLN":"Polish Z\u0142oty","POTATOES":"Potatoes","POULTRY":"Poultry","PP":"POLYPROPYLENE","PRKK23":"Pork Cutout May 23","PRKM23":"Pork Cutout Jun 23","PRKQ23":"Pork Cutout Aug 23","PRKZ23":"Pork Cutout Dec 23","PROPANE":"Propane","PVC":"POLYVINYL","PYG":"Paraguayan Guaran\u00ed","QAR":"Qatari Riyal","RB00":"RBOB Gasoline Continuous Contract","RBF24":"RBOB Gasoline Jan 2024","RBG24":"RBOB Gasoline Feb 2024","RBH24":"RBOB Gasoline Mar 2024","RBJ24":"RBOB Gasoline Apr 2024","RBU22":"RBOB Gasoline","RBX23":"RBOB Gasoline Nov 2023","RBZ23":"RBOB Gasoline Dec 2023","RICE":"Rice","RMF23":"Robusta Coffee Jan 23","RMF24":"Robusta Coffee Jan 24","RMH23":"Robusta Coffee Mar 23","RMH24":"Robusta Coffee Mar 24","RMK23":"Robusta Coffee May 23","RMK24":"Robusta Coffee May 2024","RMN22":"Robusta Coffee Jul 22","RMN23":"Robusta Coffee Jul 23","RMN24":"Robusta Coffee Jul 2024","RMU22":"Robusta Coffee Sep 22","RMU23":"Robusta Coffee Sep 23","RMU24":"Robusta Coffee Sep 2024","RMX22":"Robusta Coffee Nov 22","RMX23":"Robusta Coffee Nov 23","RMX24":"Robusta Coffee Nov 2024","ROBUSTA":"Robusta Coffee","RON":"Romanian Leu","RRK23":"Rough Rice Sep 23","RSD":"Serbian Dinar","RUB":"Russian Ruble","RUBBER":"Rubber","RUTH":"Ruthenium","RWF":"Rwandan Franc","S1":"Soybeans Front Month","SALMON":"Salmon","SAR":"Saudi Riyal","SB1":"Sugar #11 (IFUS $\/lbs) Front Month","SBD":"Solomon Islands Dollar","SBH23":"Sugar Mar 23","SBH24":"Sugar No. 11 World Mar 2024","SBH25":"Sugar No. 11 World Mar 2025","SBK23":"Sugar May 23","SBK24":"Sugar No. 11 World May 2024","SBK25":"Sugar No. 11 World May 2025","SBN22":"Sugar Jul 22","SBN23":"Sugar No. 11 World Jul 23","SBN24":"Sugar No. 11 World Jul 2024","SBN25":"Sugar No. 11 World Jul 2025","SBV22":"Sugar Oct 22","SBV23":"Sugar No. 11 World Oct 23","SBV24":"Sugar No. 11 World Oct 2024","SBV25":"Sugar No. 11 World Oct 2025","SCR":"Seychellois Rupee","SEK":"Swedish Krona","SF24":"Soybeans Jan 2024","SGD":"Singapore Dollar","SH24":"Soybeans Mar 2024","SHP":"Saint Helenian Pound","SK24":"Soybeans May 2024","SLL":"Sierra Leonean Leone","SM00":"Soybean Meal Continuous Contract","SMF24":"Soybean Meal Jan 2024","SMH24":"Soybean Meal Mar 2024","SMK24":"Soybean Meal May 2024","SMN23":"Soybean Meal Jul 2023","SMN24":"Soybean Meal Jul 2024","SMQ23":"Soybean Meal Aug 2023","SMQ24":"Soybean Meal Aug 2024","_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/1021/historical+commodities+rates+api/908/supported+symbols' --header 'Authorization: Bearer YOUR_API_KEY'
{"data":{"success":true,"timestamp":1712852100,"date":"2024-04-11","base":"USD","rates":{"RICE":0.05938242280285,"USD":1},"unit":{"RICE":"per cwt"}}}
curl --location --request GET 'https://zylalabs.com/api/1021/historical+commodities+rates+api/909/latest+rates?base=USD&symbols=RICE' --header 'Authorization: Bearer YOUR_API_KEY'
{"data":{"success":true,"historical":true,"date":"2023-05-01","base":"USD","rates":{"RICE":0.057240984544934,"USD":1},"unit":{"RICE":"per cwt"}}}
curl --location --request GET 'https://zylalabs.com/api/1021/historical+commodities+rates+api/910/historical+rates?base=USD&symbols=COTTON&date=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{"data":{"success":true,"timeseries":true,"start_date":"2023-01-01","end_date":"2023-07-17","base":"USD","rates":{"2023-01-01":{"USD":1,"ZNC":0.00033068783068783},"2023-01-02":{"USD":1,"ZNC":0.00033068783068783},"2023-01-03":{"USD":1,"ZNC":0.00033068783068783},"2023-01-04":{"USD":1,"ZNC":0.00033300033300033},"2023-01-06":{"USD":1,"ZNC":0.00032907185283907},"2023-01-07":{"USD":1,"ZNC":0.00032907185283907},"2023-01-08":{"USD":1,"ZNC":0.00033409618629203},"2023-01-09":{"USD":1,"ZNC":0.00033409618629203},"2023-01-10":{"USD":1,"ZNC":0.00031715826197272},"2023-01-11":{"USD":1,"ZNC":0.00031326848675657},"2023-01-12":{"USD":1,"ZNC":0.00031492591367881},"2023-01-13":{"USD":1,"ZNC":0.00031115328966816},"2023-01-14":{"USD":1,"ZNC":0.00031115328966816},"2023-01-15":{"USD":1,"ZNC":0.00030290179923669},"2023-01-16":{"USD":1,"ZNC":0.00030290179923669},"2023-01-17":{"USD":1,"ZNC":0.00030090119909128},"2023-01-18":{"USD":1,"ZNC":0.00030441400304414},"2023-01-19":{"USD":1,"ZNC":0.00029292441085578},"2023-01-20":{"USD":1,"ZNC":0.00029666107954967},"2023-01-21":{"USD":1,"ZNC":0.00029666107954967},"2023-01-22":{"USD":1,"ZNC":0.00029036004645761},"2023-01-23":{"USD":1,"ZNC":0.00029036004645761},"2023-01-24":{"USD":1,"ZNC":0.00029100644579277},"2023-01-25":{"USD":1,"ZNC":0.00029237628828302},"2023-01-26":{"USD":1,"ZNC":0.00029079488782587},"2023-01-27":{"USD":1,"ZNC":0.00028680002868},"2023-01-28":{"USD":1,"ZNC":0.00028680002868},"2023-01-29":{"USD":1,"ZNC":0.00028499365889109},"2023-01-30":{"USD":1,"ZNC":0.00028499365889109},"2023-01-31":{"USD":1,"ZNC":0.00028995172303811},"2023-02-02":{"USD":1,"ZNC":0.00029074838634646},"2023-02-03":{"USD":1,"ZNC":0.00029858322260872},"2023-02-04":{"USD":1,"ZNC":0.00029858322260872},"2023-02-05":{"USD":1,"ZNC":0.00029754377612806},"2023-02-06":{"USD":1,"ZNC":0.00029754377612806},"2023-02-07":{"USD":1,"ZNC":0.00031261234506151},"2023-02-09":{"USD":1,"ZNC":0.0003124170142306},"2023-02-11":{"USD":1,"ZNC":0.00031454948649796},"2023-02-12":{"USD":1,"ZNC":0.000320651563978},"2023-02-13":{"USD":1,"ZNC":0.000320651563978},"2023-02-14":{"USD":1,"ZNC":0.00032880135466158},"2023-02-16":{"USD":1,"ZNC":0.00032606746335817},"2023-02-18":{"USD":1,"ZNC":0.00032939703872062},"2023-02-19":{"USD":1,"ZNC":0.00032939703872062},"2023-02-20":{"USD":1,"ZNC":0.00032939703872062},"2023-02-21":{"USD":1,"ZNC":0.00032164683177871},"2023-02-22":{"USD":1,"ZNC":0.00031554202230882},"2023-02-23":{"USD":1,"ZNC":0.00032377128796218},"2023-02-24":{"USD":1,"ZNC":0.00032680806562306},"2023-02-25":{"USD":1,"ZNC":0.00033114227527857},"2023-02-26":{"USD":1,"ZNC":0.00033114227527857},"2023-02-28":{"USD":1,"ZNC":0.00032954358213874},"2023-03-02":{"USD":1,"ZNC":0.00032350943029989},"2023-03-03":{"USD":1,"ZNC":0.00032530904359141},"2023-03-04":{"USD":1,"ZNC":0.00032372936225316},"2023-03-06":{"USD":1,"ZNC":0.00032372936225316},"2023-03-07":{"USD":1,"ZNC":0.00033025099075297},"2023-03-08":{"USD":1,"ZNC":0.00033211557622052},"2023-03-09":{"USD":1,"ZNC":0.00033286177914621},"2023-03-11":{"USD":1,"ZNC":0.00034004930714954},"2023-03-12":{"USD":1,"ZNC":0.00034004930714954},"2023-03-13":{"USD":1,"ZNC":0.00034004930714954},"2023-03-14":{"USD":1,"ZNC":0.00034431111952761},"2023-03-15":{"USD":1,"ZNC":0.0003386386725364},"2023-03-18":{"USD":1,"ZNC":0.00034100596760443},"2023-03-19":{"USD":1,"ZNC":0.00034100596760443},"2023-03-20":{"USD":1,"ZNC":0.00034100596760443},"2023-03-21":{"USD":1,"ZNC":0.00034188034188034},"2023-03-22":{"USD":1,"ZNC":0.0003452025475948},"2023-03-23":{"USD":1,"ZNC":0.00034633833792232},"2023-03-24":{"USD":1,"ZNC":0.00034566194262012},"2023-03-25":{"USD":1,"ZNC":0.00034496438242751},"2023-03-26":{"USD":1,"ZNC":0.00034496438242751},"2023-03-27":{"USD":1,"ZNC":0.00034496438242751},"2023-03-28":{"USD":1,"ZNC":0.00034318856495702},"2023-03-30":{"USD":1,"ZNC":0.00033295598321902},"2023-04-02":{"USD":1,"ZNC":0.00034408602150538},"2023-04-03":{"USD":1,"ZNC":0.00034408602150538},"2023-04-05":{"USD":1,"ZNC":0.00034566194262012},"2023-04-06":{"USD":1,"ZNC":0.00035116675153196},"2023-04-07":{"USD":1,"ZNC":0.00035771904031136},"2023-04-08":{"USD":1,"ZNC":0.00035771904031136},"2023-04-09":{"USD":1,"ZNC":0.00035771904031136},"2023-04-10":{"USD":1,"ZNC":0.00035771904031136},"2023-04-11":{"USD":1,"ZNC":0.00035771904031136},"2023-04-12":{"USD":1,"ZNC":0.00035932446999641},"2023-04-13":{"USD":1,"ZNC":0.00036365619942906},"2023-04-14":{"USD":1,"ZNC":0.00035350053908832},"2023-04-15":{"USD":1,"ZNC":0.00034472654566765},"2023-04-16":{"USD":1,"ZNC":0.00034472654566765},"2023-04-18":{"USD":1,"ZNC":0.00035151238202366},"2023-04-19":{"USD":1,"ZNC":0.00035040384042609},"2023-04-20":{"USD":1,"ZNC":0.00036140224069389},"2023-04-21":{"USD":1,"ZNC":0.0003629961703904},"2023-04-22":{"USD":1,"ZNC":0.00036509675063892},"2023-04-23":{"USD":1,"ZNC":0.00036509675063892},"2023-04-24":{"USD":1,"ZNC":0.00036509675063892},"2023-04-26":{"USD":1,"ZNC":0.00038197097020626},"2023-04-28":{"USD":1,"ZNC":0.00038326658107046},"2023-04-29":{"USD":1,"ZNC":0.00037329451070422},"2023-04-30":{"USD":1,"ZNC":0.00037329451070422},"2023-05-01":{"USD":1,"ZNC":0.00037329451070422},"2023-05-03":{"USD":1,"ZNC":0.00038184699390954},"2023-05-05":{"USD":1,"ZNC":0.0003831637833592},"2023-05-06":{"USD":1,"ZNC":0.0003803510640321},"2023-05-10":{"USD":1,"ZNC":0.00037638556937727},"2023-05-11":{"USD":1,"ZNC":0.00038294368813066},"2023-05-13":{"USD":1,"ZNC":0.00039483087419504},"2023-05-15":{"USD":1,"ZNC":0.00039483087419504},"2023-05-16":{"USD":1,"ZNC":0.00039721946375372},"2023-05-17":{"USD":1,"ZNC":0.00040432629131709},"2023-05-18":{"USD":1,"ZNC":0.0003966915921217},"2023-05-19":{"USD":1,"ZNC":0.00040298206729801},"2023-05-21":{"USD":1,"ZNC":0.00040144520272983},"2023-05-22":{"USD":1,"ZNC":0.00040144520272983},"2023-05-28":{"USD":1,"ZNC":0.0004311552805743},"2023-05-30":{"USD":1,"ZNC":0.0004311552805743},"2023-05-31":{"USD":1,"ZNC":0.00043040371868813},"2023-06-01":{"USD":1,"ZNC":0.00044848077138693},"2023-06-03":{"USD":1,"ZNC":0.00043440486533449},"2023-06-04":{"USD":1,"ZNC":0.00043440486533449},"2023-06-12":{"USD":1,"ZNC":0.00041718815185649},"2023-06-14":{"USD":1,"ZNC":0.00041981528127624},"2023-06-20":{"USD":1,"ZNC":0.00041296716911006},"2023-06-25":{"USD":1,"ZNC":0.00042332521959996},"2023-06-28":{"USD":1,"ZNC":0.0004233700254022},"2023-06-29":{"USD":1,"ZNC":0.00042607584149979},"2023-06-30":{"USD":1,"ZNC":0.00042992261392949},"2023-07-04":{"USD":1,"ZNC":0.00042345966546686},"2023-07-06":{"USD":1,"ZNC":0.00042426813746288},"2023-07-10":{"USD":1,"ZNC":0.00042793563847997},"2023-07-12":{"USD":1,"ZNC":0.00042366598174},"2023-07-13":{"USD":1,"ZNC":0.00042384555068133},"2023-07-15":{"USD":1,"ZNC":0.00041459369817579}},"unit":{"ZNC":"per ounce"}}}
curl --location --request GET 'https://zylalabs.com/api/1021/historical+commodities+rates+api/911/time-series' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Historical Commodities Rates API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
The Historical Commodities Rates API is a powerful tool that provides access to a wealth of historical data on commodity prices and exchange rates. This data can be used to track changes in prices of resources and currencies over time, and to build applications that provide financial insights and forecasts. With this API, you can gain insights into how commodity prices and exchange rates have fluctuated over time, and use this information to inform investment decisions or business strategies.
The data provided by the Historical Commodities Rates API can be used for a variety of purposes, such as for financial analysis, investment research, and commodity trading. For example, financial analysts can use the data to identify trends and patterns in commodity prices and exchange rates and use this information to make predictions about future market conditions. Additionally, businesses that rely on commodities as a major part of their operations can use the data to track the prices of the resources they need and make informed decisions about buying and selling.
The API is easy to use and accessible to developers of all skill levels, allowing them to easily integrate the historical commodity data into their applications and systems. The API supports multiple programming languages, such as Java, Python, and C#, and is designed to be highly scalable, enabling it to handle large amounts of data and high levels of traffic.
In summary, the Historical Commodities Rates API is a valuable tool for anyone looking to gain insights into historical commodity prices and exchange rates. It provides access to a wealth of historical data, which can be used to track changes in prices of resources and currencies over time, inform investment decisions and business strategies, and support financial analysis and commodity trading.
Declare the date and the symbol from where you want to get the rates.
Note: All the commodities rates you get need using ANY currency as a base currency (base parameter) need to be divided by 1
We return the values based on the base currency. For example, for 1 USD the return is a number like 0.00055307742 for Gold (XAU).
To get the gold rate per troy ounce in USD: 1/0.00055307742 = 1808.06 USD
Besides API call limitations per month, there are no other limitations.
Each endpoint returns specific data types: "Supported Symbols" provides a list of commodities and currencies; "Latest Rates" gives real-time exchange rates; "Historical Rates" offers past rates for specified dates; "Time-Series" delivers daily rates over a date range; "Fluctuation" shows daily price changes; and "OHLC Price" presents open, high, low, and close prices for a commodity.
Key fields include "success" (indicating request status), "timestamp" (request time), "date" (data date), "base" (base currency), and "rates" (commodity rates). For error responses, fields like "code," "type," and "info" provide details on issues encountered.
Response data is structured in JSON format. Successful responses contain a "data" object with relevant fields, while errors return an "error" object detailing the issue. For example, "Latest Rates" includes "data" with "success," "timestamp," "date," "base," and "rates."
Parameters vary by endpoint. For "Historical Rates," users specify a date in YYYY-MM-DD format and a base currency. "Time-Series" requires start and end dates, while "Fluctuation" and "OHLC Price" need a symbol. All endpoints require a base currency for accurate rate calculations.
Each endpoint provides distinct information: "Supported Symbols" lists available commodities and currencies; "Latest Rates" shows current exchange rates; "Historical Rates" offers past rates; "Time-Series" gives daily rates over a range; "Fluctuation" details daily price changes; and "OHLC Price" presents price metrics for a commodity.
Users can customize requests by selecting specific symbols, dates, and base currencies. For example, in "Historical Rates," users can specify a date and base currency to retrieve historical data for a particular commodity, tailoring the output to their needs.
The Historical Commodities Rates API sources its data from reputable financial markets and exchanges. Data accuracy is maintained through regular updates and validation processes, ensuring users receive reliable historical and real-time information.
Typical use cases include investment analysis, where users identify trends in commodity prices; commodity trading, for informed buy/sell decisions; and financial forecasting, to predict market conditions. Businesses also use the data for procurement strategies and risk management.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund