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}TypeOptionalDescription
{source}stringOptionalDefine 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}stringOptionalFormats 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}stringRequiredDefine 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}stringOptionalSeparated 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}booleandecription
{infos}int

Returns informations about the API request

ParametersDescription
timestampHtml.Raw(Transl.Api.Documentation.NoAdjustment)
fromThe three-letter currency code of the currency you would like to convert from.
toThe three-letter currency code of the currency you would like to convert to.
source

Html.Raw(Transl.Api.Documentation.HigerLatDescription)

ParametersDescription
idThe unique Id for the historic source. List of sources Html or Json
nameThe name of the currencies sources
base_currencyThe base currency used to calculate the currency rates historic
countryCountry
source

Request API usages

Information about the source used for your requestDescription
api_countInteger showing the total of quotes of your request
packThe pack you are using Free, Bronze, Silver, Gold
historicsdate

The date (yyyy-mm-dd) of the given exchange rate data was collected.

ParametersDescription
openOpening prices for the specific time frame
highHighest prices for the specific time frame
lowLowest prices for the specific time frame
closeClosing prices for the specific time frame
dateThe date (format unix format) 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": "2024-04-19T02:21:53Z",
    "expire": "2024-04-19T02:22:53Z",
    "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
  }
}