jsonrates + currencylayer  Read more

We're happy to announce that the jsonrates API has been integrated into the currencylayer API.
You can continue using our API for free by signing up here ยป

Important: This documentation has been deprecated and is no longer valid. For detailed reference about API integration, usage guides and language examples please visit: currencylayer.com/documentation

Exchange Rates

Endpoint
Parameters
Examples


Endpoint

The endpoint for getting exchange rates is http://jsonrates.com/get/


Parameters

base Defines the base currency for which all available exchange rates are returned.
from Defines the from-currency for which the exchange rate wil be calculated.
to Defines the to-currency for which the exchange rate wil be calculated.
prettify If this parameter has the value 'yes', the JSON result will be reader-friendly formatted.
apiKey Your API key. Signup and get your key.


Examples

To request all exchange rates for EUR, make the following call:
http://jsonrates.com/get/?
    base=EUR

And you will get the following result:
{
  "utctime": "2014-06-27T14:20:02+02:00",
  "base": "EUR",
  "rates": {
    "AED": "5.00307848",
    "AFN": "77.37070238",
    "ALL": "140.20035062",
    "AMD": "555.92484553",
    "ANG": "2.43826690",
    "AOA": "132.91960258",
    --- other rates ---
    "XPF": "119.46145223",
    "XPT": "0.00092491",
    "YER": "292.73505302",
    "ZAR": "14.44427947",
    "ZMW": "8.35004250",
    "ZWL": "439.09919115"
  }
}
To get only one exchange rate for two currencies, make the following call:
http://jsonrates.com/get/?
    from=XBT
    &to=USD

And you will get the following result:
{
  "utctime": "2014-06-27T14:20:02+02:00",
  "from": "XBT",
  "to": "USD",
  "rate": "584.16674456"
}