GET rates/latest
Return today's currencies rates Rest API
Resource URL
https://v2.api.forex/historics/{date}.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/historics/latest.json?source=boc&key=demo |
{beautify} | string | Optional | Formats the JSON files with the chosen indentation level for optimal readability. https://v2.api.forex/historics/latest.json?beautify=true |
{from} | string | Required | Define the currency source. Default base_currency of the selected source. Html.Raw(Transl.Api.Documentation.RequiredIfIp) https://v2.api.forex/historics/latest.json?from=EUR&key=demo |
{to} | string | Optional | Separated by comma EUR,USD,THB Html.Raw(Transl.Api.Documentation.WeUseKey) https://v2.api.forex/historics/latest.json?to=EUR,USD,THB&key=demo |
Parameters
{format} | type | 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/historics/latest.json?beautify=true&key=demo
Example Result
{ "success": true, "infos": { "date": "1992-05-05", "timestamp": "2025-04-29T00:48:26Z", "expire": "2025-04-29T00:49:26Z", "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_histo": { "ATS": { "close": 2.5 }, "BEF": { "close": 0.8568 }, "DEM": { "close": 17.63 }, "ESP": { "close": 0.2809 }, "FIM": { "close": 6.49 }, "FRF": { "close": 5.23 }, "GRD": { "close": 0.1502 }, "IEP": { "close": 47.04 }, "ITL": { "close": 0.02347 }, "LUF": { "close": 0.8568 }, "NLG": { "close": 15.66 }, "PTE": { "close": 0.2098 }, "XDR": { "close": 39.91 }, "XEU": { "close": 36.2 } } }