Loading
Loading
https://api.apifreaks.com/v1.0/commodity/rates/latest
1. Open the Authorizations dropdown and Verify your API key.
2. Click Run to see the live response here.
$ pip install requestsimport requests
url = "https://api.apifreaks.com/v1.0/commodity/rates/latest"
payload = {}
headers = {
'X-apiKey': ''
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
| Field | Type | Requirement | Description |
|---|---|---|---|
| success | Boolean | Mandatory | API request success indicator. "true" for successful requests. |
| timestamp | Number | Mandatory | Unix timestamp indicating when the response was generated. |
| rates | Map | Mandatory | Map containing rate data for all the requested commodities. |
| metadata | Map | Mandatory | Map containing detailed information for all the requested commodities. |
| metadata.[SYMBOL] | Map | Mandatory | Map containing detailed information for the specified commodity. |
| metadata.[SYMBOL].unit | String | Mandatory | Unit of the respective commodity. |
| metadata.[SYMBOL].quote | String | Mandatory | Quote currency of the respective commodity. |