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.
Check all the available symbols for your queries. This endpoint retrieves all the supported commodities and currencies as well.
Supported Symbols - Endpoint Features
Object | Description |
---|
{"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","BGN":"Bulgarian Lev","BHD":"Bahraini Dinar","BIF":"Burundian Franc","BMD":"Bermudian Dollar","BND":"Brunei Dollar","BOB":"Bolivian Boliviano","BRENTOIL":"Brent Crude Oil","BRL":"Brazilian Real","BSD":"Bahamian Dollar","BTC":"Bitcoin","BTN":"Bhutanese Ngultrum","BWP":"Botswana Pula","BYN":"Belarusian Ruble","BYR":"Belarusian Ruble","BZD":"Belize Dollar","CAD":"Canadian Dollar","CANO":"Canola","CDF":"Congolese Franc","CHF":"Swiss Franc","CLF":"Unidad de Fomento","CLP":"Chilean Peso","CNH":"Chinese Renminbi Yuan Offshore","CNY":"Chinese Renminbi Yuan","COAL":"Coal","COCOA":"Cocoa","COFFEE":"Arabica Coffee","COP":"Colombian Peso","CORN":"Corn","COTTON":"Cotton","CPO":"Crude Palm Oil","CRC":"Costa Rican Col\u00f3n","CUC":"Cuban Convertible Peso","CVE":"Cape Verdean Escudo","CZK":"Czech Koruna","DJF":"Djiboutian Franc","DKK":"Danish Krone","DOP":"Dominican Peso","DZD":"Algerian Dinar","EEK":"Estonian Kroon","EGP":"Egyptian Pound","ERN":"Eritrean Nakfa","ETB":"Ethiopian Birr","ETH":"Ethereum","ETHANOL":"Ethanol","EUR":"Euro","FJD":"Fijian Dollar","FKP":"Falkland Pound","GBP":"British Pound","GEL":"Georgian Lari","GGP":"Guernsey Pound","GHS":"Ghanaian Cedi","GIP":"Gibraltar Pound","GMD":"Gambian Dalasi","GNF":"Guinean Franc","GTQ":"Guatemalan Quetzal","GYD":"Guyanese Dollar","HKD":"Hong Kong Dollar","HNL":"Honduran Lempira","HRK":"Croatian Kuna","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","JEP":"Jersey Pound","JMD":"Jamaican Dollar","JOD":"Jordanian Dinar","JPY":"Japanese Yen","KCH23":"Arabica Coffee Mar 23","KCK23":"Arabica Coffee May 23","KCN22":"Arabica Coffee Jul 22","KCN23":"Arabica Coffee Jul 23","KCU22":"Arabica Coffee Sep 22","KCU23":"Arabica Coffee Sep 23","KCZ22":"Arabica Coffee Dec 22","KES":"Kenyan Shilling","KGS":"Kyrgyzstani Som","KHR":"Cambodian Riel","KMF":"Comorian Franc","KRW":"South Korean Won","KWD":"Kuwaiti Dinar","KYD":"Cayman Islands Dollar","KZT":"Kazakhstani Tenge","LAK":"Lao Kip","LBP":"Lebanese Pound","LCAT":"Live Cattle","LCO":"Cobalt (Troy Ounce)","LHOG":"Lean Hog","LINK":"Chainlink","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","MDL":"Moldovan Leu","MGA":"Malagasy Ariary","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","NG":"Natural Gas","NGN":"Nigerian Naira","NI":"Nickel","NIO":"Nicaraguan C\u00f3rdoba","NOK":"Norwegian Krone","NPR":"Nepalese Rupee","NZD":"New Zealand Dollar","OAT":"Oat","OMR":"Omani Rial","PAB":"Panamanian Balboa","PEN":"Peruvian Sol","PGK":"Papua New Guinean Kina","PHP":"Philippine Peso","PKR":"Pakistani Rupee","PLN":"Polish Z\u0142oty","PYG":"Paraguayan Guaran\u00ed","QAR":"Qatari Riyal","RICE":"Rice","RMF23":"Robusta Coffee Jan 23","RMH23":"Robusta Coffee Mar 23","RMN22":"Robusta Coffee Jul 22","RMU22":"Robusta Coffee Sep 22","RMX22":"Robusta Coffee Nov 22","ROBUSTA":"Robusta Coffee","RON":"Romanian Leu","RSD":"Serbian Dinar","RUB":"Russian Ruble","RUBBER":"Rubber","RUTH":"Ruthenium","RWF":"Rwandan Franc","SAR":"Saudi Riyal","SBD":"Solomon Islands Dollar","SBH23":"Sugar Mar 23","SBK23":"Sugar May 23","SBN22":"Sugar Jul 22","SBV22":"Sugar Oct 22","SCR":"Seychellois Rupee","SEK":"Swedish Krona","SGD":"Singapore Dollar","SHP":"Saint Helenian Pound","SLL":"Sierra Leonean Leone","SOS":"Somali Shilling","SOYBEAN":"Soybeans","SRD":"Surinamese Dollar","SSP":"South Sudanese Pound","STD":"S\u00e3o Tom\u00e9 and Pr\u00edncipe Dobra","SUGAR":"Sugar","SVC":"Salvadoran Col\u00f3n","SZL":"Swazi Lilangeni","THB":"Thai Baht","TIN":"Tin","TJS":"Tajikistani Somoni","TMT":"Turkmenistani Manat","TND":"Tunisian Dinar","TOP":"Tongan Pa\u02bbanga","TRY":"Turkish Lira","TTD":"Trinidad and Tobago Dollar","TWD":"New Taiwan Dollar","TZS":"Tanzanian Shilling","UAH":"Ukrainian Hryvnia","UGX":"Ugandan Shilling","UNI":"Uniswap","USD":"United States Dollar","UYU":"Uruguayan Peso","UZS":"Uzbekistan Som","VEF":"Venezuelan Bol\u00edvar","VES":"Venezuelan Bol\u00edvar Soberano","VND":"Vietnamese \u0110\u1ed3ng","VUV":"Vanuatu Vatu","WHEAT":"Wheat","WST":"Samoan Tala","WTIOIL":"WTI Crude Oil","XAF":"Central African Cfa Franc","XAG":"Silver (Troy Ounce)","XAU":"Gold (Troy Ounce)","XCD":"East Caribbean Dollar","XCU":"Copper","XDR":"Special Drawing Rights","XLM":"Stellar","XOF":"West African Cfa Franc","XPD":"Palladium (Troy Ounce)","XPF":"Cfp Franc","XPT":"Platinum (Troy Ounce)","XRH":"Rhodium (Troy Ounce)","XRP":"Ripple","XRP2":"Ripple","YER":"Yemeni Rial","ZAR":"South African Rand","ZMK":"Zambian Kwacha","ZMW":"Zambian Kwacha","ZNC":"Zinc","ZWL":"Zimbabwean Dollar","ZWN2":"Wheat ZWN2","ZWU2":"Wheat ZWU2"}
curl --location --request GET 'https://zylalabs.com/api/1021/historical+commodities+rates+api/908/supported+symbols' --header 'Authorization: Bearer YOUR_API_KEY'
Check the real-time exchange rate data updated every 60 seconds with this endpoint.
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
Latest Rates - Endpoint Features
Object | Description |
---|---|
base |
[Required] Enter the three-letter currency code or commodity code of your preferred base currency. Check Symbols endpoint |
symbols |
[Required] Enter a list of comma-separated currency codes or commodity codes to limit output codes. Check Symbols endpoint |
{"data":{"success":false,"error":{"code":101,"type":"invalid_access_key","info":"No API Key was specified or an invalid API Key was specified."}}}
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'
Historical rates are available for most symbols all the way back to the year 2021. You can query the API for historical rates by appending a date (format YYYY-MM-DD) to the base URL.
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
Historical Rates - Endpoint Features
Object | Description |
---|---|
base |
[Required] |
symbols |
[Required] |
date |
[Required] |
{"data":{"success":true,"historical":true,"date":"2022-12-23","base":"USD","rates":{"COTTON":1.1764705882353,"USD":1},"unit":"per lb"}}
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'
With this endpoint, you will be provided with daily historical rates between two dates of your choice.
Note: This endpoint has a limitation of 365 days per range, and only can provide one symbol information per request.
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
Time-Series - Endpoint Features
Object | Description |
---|---|
start_date |
[Optional] The start date of your preferred timeframe. |
end_date |
[Optional] The end date of your preferred timeframe. |
base |
[Optional] Enter the three-letter currency code or commodity code of your preferred base currency |
symbols |
[Optional] Enter the three-letter currency code or commodity code of your preferred base currency |
{"data":{"success":false,"error":{"code":501,"type":"invalid_timeframe","info":"No or an invalid timeframe has been specified."}}}
curl --location --request GET 'https://zylalabs.com/api/1021/historical+commodities+rates+api/911/time-series' --header 'Authorization: Bearer YOUR_API_KEY'
Header | Description |
---|---|
Authorization
|
[Required] Should be Bearer access_key . See "Your API Access Key" above when you are subscribed. |
No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.
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.
Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldβs most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]
Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, look at the βX-Zyla-API-Calls-Monthly-Remainingβ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.
To see the maximum number of API requests your plan allows, check the βX-Zyla-RateLimit-Limitβ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.
The βX-Zyla-RateLimit-Resetβ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.
Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]
To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.
After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, itβs important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.
Service Level:
100%
Response Time:
298ms
Service Level:
100%
Response Time:
267ms
Service Level:
100%
Response Time:
342ms
Service Level:
100%
Response Time:
254ms
Service Level:
100%
Response Time:
356ms
Service Level:
100%
Response Time:
264ms
Service Level:
100%
Response Time:
603ms
Service Level:
100%
Response Time:
244ms
Service Level:
100%
Response Time:
513ms
Service Level:
100%
Response Time:
243ms
Service Level:
100%
Response Time:
520ms
Service Level:
100%
Response Time:
384ms
Service Level:
100%
Response Time:
284ms
Service Level:
100%
Response Time:
290ms
Service Level:
100%
Response Time:
728ms
Service Level:
100%
Response Time:
374ms
Service Level:
100%
Response Time:
458ms