Cocoa Rates API

Cocoa Rates API

The Cocoa Rates API provides real-time and historical data on cocoa prices, essential for industries like chocolate manufacturing, commodities trading, and agricultural analysis. Developers can integrate this API to access accurate cocoa market insights, optimize supply chain management, and make informed trading decisions, enhancing operational efficiency.

API description

About the API:  

The Cocoa Rates API delivers crucial real-time and historical data on cocoa prices, catering to industries ranging from chocolate manufacturing to commodities trading. Developers can seamlessly integrate this API to access precise insights into cocoa market trends, facilitating informed decision-making in supply chain management, trading strategies, and agricultural analysis. By leveraging this comprehensive dataset, businesses can optimize operations, mitigate risks, and capitalize on opportunities in the dynamic cocoa market landscape, ensuring efficiency and profitability across the value chain.

 

What this API receives and what your API provides (input/output)?

Pass the commodity symbol and receive the latest and historical rates. 

 

What are the most common uses cases of this API?

 

  • Chocolate Production Planning: Integrate the Cocoa Rates API into chocolate manufacturing systems to monitor cocoa prices and forecast production costs. This enables producers to adjust production schedules, optimize ingredient sourcing, and maintain competitive pricing in the chocolate market.

  • Commodities Trading Analysis: Utilize the API within commodities trading platforms to access real-time cocoa price data. Traders can analyze market trends, identify trading opportunities, and execute timely transactions, enhancing profitability in cocoa futures and options markets.

  • Supply Chain Optimization: Incorporate the API into supply chain management systems to monitor cocoa prices and track supplier performance. By analyzing price fluctuations, companies can optimize inventory levels, negotiate favorable contracts, and ensure uninterrupted supply chains for cocoa-based products.

  • Agricultural Research: Integrate the API into agricultural research tools to analyze the correlation between cocoa prices and various factors such as weather patterns, crop yields, and market demand. Researchers can use this data to improve cocoa cultivation techniques, forecast crop production, and support sustainable farming practices.

  • Financial Forecasting: Incorporate the API into financial analysis platforms to provide investors and analysts with insights into the cocoa market. By analyzing historical price data and market trends, users can assess the financial performance of cocoa-related investments, manage risks, and make informed portfolio decisions

 

 

 

Are there any limitations to your plans?

Besides the number of API calls per plan, there are no other limitations.

API Documentation

Endpoints


Check all the available symbols for your queries. This endpoint retrieves all the supported commodities and currencies as well. 



                                                                            
GET https://www.zylalabs.com/api/3899/cocoa+rates+api/4607/supported+symbols
                                                                            
                                                                        

Supported Symbols - Endpoint Features
Object Description
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"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","SMU23":"Soybean Meal Sep 2023...
                                                                                                                                                                                                                    
                                                                                                    

Supported Symbols - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3899/cocoa+rates+api/4607/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



                                                                            
GET https://www.zylalabs.com/api/3899/cocoa+rates+api/4608/latest+rates
                                                                            
                                                                        

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
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"data":{"success":true,"timestamp":1713357120,"date":"2024-04-17","base":"USD","rates":{"SALMON":0.011225864391558,"USD":1},"unit":{"SALMON":"per kg"}}}
                                                                                                                                                                                                                    
                                                                                                    

Latest Rates - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3899/cocoa+rates+api/4608/latest+rates?base=USD&symbols=CLI00' --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



                                                                            
GET https://www.zylalabs.com/api/3899/cocoa+rates+api/4609/historical+rates
                                                                            
                                                                        

Historical Rates - Endpoint Features
Object Description
base [Required] Enter the three-letter currency code or commodity code of your preferred base currency.
symbols [Required] Enter a list of comma-separated currency codes or commodity codes to limit output codes. Check Symbols endpoint
date [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"data":{"success":true,"historical":true,"date":"2024-03-10","base":"USD","rates":{"CLI00":0.00019124115509658,"USD":1},"unit":{}}}
                                                                                                                                                                                                                    
                                                                                                    

Historical Rates - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/3899/cocoa+rates+api/4609/historical+rates?base=USD&symbols=CLI00&date=Required' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

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 Cocoa Rates API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

The Cocoa Rates API is a web service that provides developers with access to real-time and historical data on cocoa prices. It enables users to retrieve current market rates and historical trends for analysis and decision-making purposes.

The API retrieves data from reputable sources such as commodity exchanges, market aggregators, and industry reports. It uses secure protocols to access this information in real-time, ensuring accuracy and reliability in the data provided.

The API typically delivers data in JSON format, making it compatible with a wide range of programming languages and platforms. Users can easily parse and process the data to suit their specific requirements.

Yes, the API usually provides access to historical pricing data. Users can specify the time range and granularity of the data they require when making API requests to retrieve past market rates.

Yes, the API is designed to be scalable and reliable, capable of handling large volumes of requests with minimal downtime. It may leverage cloud-based infrastructure and distributed systems to ensure high availability and performance.

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. 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 with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected β€” plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

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.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
648ms

Category:


Tags:


Related APIs