currency converter

JSON REST API Xurrency

What is API Xurrency?

Xurrency provides developers with direct access to exchange rate information. Now you can integrate the data into your site directly from Xurrency or allow people to query the exchange rate. The API is based in JSON, a simple machine-readable data-interchange format.

Format

http://xurrency.com/api/{base}/{target}/{amount}

Examples

Example 1

Call

http://xurrency.com/api/eur/gbp/1.5

Result

{"result":{"value":1.30425,"target":"gbp","base":"eur"},"status":"ok"}

Example 2

Call

http://xurrency.com/api/eur/xxx/1.5

Result

{"message":"The currencies are not valid","status":"fail"}

Example 3

Call

http://xurrency.com/api/eur/gbp/1000000000000

Result

{"message":"The amount should be between 0 and 999999999","status":"fail"}