JSON API for foreign exchange rates and currency conversion

logo is a free JSON API for current and historical foreign exchange rates. It relies on daily feeds published by the European Central Bank.

View the source code on GitHub.


Get the latest foreign exchange reference rates in JSON format.

curl ""

Get historical rates for any day since 1999.

curl ""

Rates are quoted against the Euro by default. Quote against a different currency by setting the base parameter in your request.

curl ""

Request specific exchange rates by setting the symbols or currencies parameter.

curl ",GBP"

Make cross-domain JSONP requests.

curl ""

An HTTPS endpoint is available.

curl "" works great in the browser with money.js.

$.ajax({ dataType: 'jsonp', url: '', success: function(data) { fx.rates = data.rates; demo(); } }); var demo = function() { var rate = fx(1).from('GBP').to('USD'); var round = Math.round(rate * 100) / 100; alert('£1 equals US$' + round); }

This API comes with no warranty.