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

Currency Conversion

Endpoint
Parameters
Examples


Endpoint

The endpoint for converting amounts is http://jsonrates.com/convert/


Parameters

base Defines the base currency for which the amount will be converted.
from Defines the from-currency for which the amount will be converted.
to Defines the to-currency for which the amount will be converted.
amount Defines the amount which will be converted.
inverse If this parameter has the value 'yes', the direction of the conversion will be inverted.
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 convert the amount of 2.99 EUR to all other currencies, make the following call:
http://jsonrates.com/convert/?
    base=EUR
    &amount=2.99

And you will get the following result:
{
  "utctime": "2014-06-27T14:40:02+02:00",
  "base": "EUR",
  "amounts": {
    "AED": "14.963546195",
    "AFN": "231.405540178",
    "ALL": "419.320710108",
    "AMD": "1662.6977035",
    "ANG": "7.2925338746",
    "AOA": "397.544955449",
    --- other converted amounts ---
    "XPF": "357.293407322",
    "XPT": "0.0027662882",
    "YER": "875.531835432",
    "ZAR": "43.2288371294",
    "ZMW": "24.9738730111",
    "ZWL": "1313.28761898"
  }
}
To convert the amount of 2.99 EUR only to USD, make the following call:
http://jsonrates.com/convert/?
    from=EUR
    &to=USD
    &amount=2.99

And you will get the following result:
{
  "utctime": "2014-06-27T14:50:04+02:00",
  "from": "EUR",
  "to": "USD",
  "amount": "4.0742910884"
}