Commodities Historical Rates

Commodities Historical Rates

Powered by 10+ exchange rate data sources for Commodities prices.

API description

Commodities Historical Rates is an API capable of returning commodities prices in a certain period of time. With it, you can understand the market better and provide all of your clients with necessary rates of any commodity needed. You can find a large list of products to check and compare them with each other.

Companies may better understand their consumers and industry trends by using historical data, which gives them more information when deciding how to spend money on advertising or marketing efforts. Our goal is to provide rapid and easy access to this data so that decision-making processes are not slowed down.

Developers are given an API key that allows them to access the API service provider's data sources and, with it, requests are sent and received through endpoints. The endpoints are added by developers to their apps. JSON is used to format the responses.

Every minute, our API collects data on commodity prices from over 15 credible data sources. Among them, there are big and accurate banks and financial data companies. Apart from that, the same API endpoints are used to convert currency and commodity prices, and they may be used to convert any amount from one currency to another, as well as from one commodity to any commodity and any currency to any currency.

Our API returns midpoint data for all commodities and currency rates. The average median rate of Bid and Ask at a given period is used to calculate midpoint rates. We support: Rice, Wheat, Coffee, Corn, Sugar, Brent Crude Oil, WTI Crude Oil, Palm Oil, Soybeans, Natural Gas, Ethanol, Gold, Silver, Rubber and much more. Our API is capable of delivering accurate commodities and exchange rate data for almost any commodity , in 170 world currencies, including Bitcoin and other major cryptocurrencies.

Something to have in mind is that all commodity rates obtained using the US dollar as the base currency must be divided by one. The values are returned in the base currency. For instance, the return on a dollar is 0.000634 for rice (RICE). To calculate rice rates in US dollars, use the following formula: 1577.28 USD = 1/0.000634.

To use it, you need to use different symbols for the commodity and the currency and then make the API call. You can use a variety of commodities in a simple API call, but you can only use one currency.

 

For example:

 

Request: 

https://commodities-api.com/api/2022-06-01

? access_key = API_KEY

& base = USD

& symbols = CORN

 

 

Response:

{

"success": true,

"historical": true,

"date": "2022-06-01",

"base": "USD",

"rates": {

"CORN": 0.13686153846154,

"USD": 1

},

"unit": "per bushel"

}

 

Documentation

Endpoints

Historical:
GET http://zylalabs.com/api/24/commodities+historical+rates/85/historical

API Features

Object Description
base [Required]
symbols [Required]
DATE [Required]

API Access Key & Authentication

After signing up, every user 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 Commodities Historical Rates 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.

Free 100 Requests / Monthly $0.00 / Monthly
Basic 1,000 Requests / Monthly $24.99 / Monthly
Pro 10,000 Requests / Monthly $49.99 / Monthly
ProPlus 100,000 Requests / Monthly $99.99 / Monthly

API Provider: SoftDev

Useful links: