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

Locale Transformation

Endpoint
Parameters
Examples


Endpoint

The endpoint for transforming locales is http://jsonrates.com/locale/


Parameters

base Defines the base locale for which all available exchange rates are returned.
from Defines the from-locale for which the exchange rate wil be calculated.
to Defines the to-locale 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 en_US, make the following call:
http://jsonrates.com/locale/?
    base=en_US

And you will get the following result:
{
  "utctime": "2014-06-30T14:40:03+02:00",
  "base": {
    "locale": "en_US",
    "currency": "USD"
  },
  "rates": {
    "AED": "3.67300000",
    "AFN": "57.15000200",
    "ALL": "102.69500000",
    "AMD": "407.27999900",
    "ANG": "1.79000000",
    "AOA": "97.58000200",
    --- other rates ---
    "XPF": "87.40000200",
    "XPT": "0.00067600",
    "YER": "214.80499300",
    "ZAR": "10.61235000",
    "ZMW": "6.20000000",
    "ZWL": "322.35501100"
  }
}
To get only one exchange rate for two locales, make the following call:
http://jsonrates.com/locale/?
    from=en_GB
    &to=ar_AE

And you will get the following result:
{
  "utctime": "2014-06-30T14:40:03+02:00",
  "from": {
    "locale": "en_GB",
    "currency": "GBP"
  },
  "to": {
    "locale": "ar_AE",
    "currency": "AED"
  },
  "rate": "6.26224360"
}