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": "1992-05-05", "timestamp": "2025-04-26T05:14:11Z", "expire": "2025-04-26T05:15:11Z", "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": 14, "pack": "Gold" } }, "rates": { "ATS": 2.5, "BEF": 0.8568, "DEM": 17.63, "ESP": 0.2809, "FIM": 6.49, "FRF": 5.23, "GRD": 0.1502, "IEP": 47.04, "ITL": 0.02347, "LUF": 0.8568, "NLG": 15.66, "PTE": 0.2098, "XDR": 39.91, "XEU": 36.2 } }