GET rates/latest
Return today's currencies rates Rest API
Resource URL
https://v2.api.forex/rates/today.json
Return today's currencies rates Rest API
{format} | Type | Optional | Description |
---|---|---|---|
{source} | string | Optional | Define the currency source. Default api forex mixed source .List of sources Html or Json https://v2.api.forex/rates/2018-10-24.json?source=boc&key=demo |
{beautify} | string | Optional | Formats the JSON files with the chosen indentation level for optimal readability. https://v2.api.forex/rates/2018-10-24.json?beautify=true&key=demo |
{from} | string | Required | Define the currency source. Default base_currency of the selected source. Html.Raw(Transl.Api.Documentation.RequiredIfIp) https://v2.api.forex/rates/2018-10-24.json?from=EUR&key=demo |
{to} | string | Optional | Separated by comma EUR,USD,THB Html.Raw(Transl.Api.Documentation.WeUseKey) https://v2.api.forex/rates/2018-10-24.json?to=EUR,USD,THB&key=demo |
Parameters
{success} | boolean | decription | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{infos} | int | Returns informations about the API request
| ||||||||||||||||||||||||||||
historics | date | The date (yyyy-mm-dd) of the given exchange rate data was collected.
|
Example Request
https://v2.api.forex/rates/2018-10-24.json?beautify=true&key=demo
Example Result
{ "success": true, "infos": { "date": "2000-12-06", "timestamp": "2021-01-23T04:59:22Z", "expire": "2021-01-23T05:00:22Z", "from": "USD", "converted": false, "source": { "id": "apiforex", "name": "Api Forex", "base_currency": "USD", "country": "World" }, "terms": { "privacy": "https://api.forex/privacy", "legacy": "https://api.forex/terms" }, "usage": { "api_count": 19, "pack": "Gold" } }, "rates": { "ATS": 2.536, "BEF": 0.8649, "CLP": 575.25, "DEM": 17.839, "DZD": 73.6145, "ESP": 0.20969, "FIM": 5.868, "FRF": 5.319, "GRD": 0.10249, "IEP": 44.301, "ITL": 0.018019, "JPY": 110.160004, "LUF": 0.8649, "NLG": 15.832, "PTE": 0.17403, "SIT": 0.16407, "SKK": 0.80281, "TND": 1.4347, "XDR": 50.927 } }