Fixer.io

JSON API for foreign exchange rates and currency conversion

logo

Fixer.io is a free JSON API for foreign exchange rates, based on the daily and historical feeds provided by the European Central Bank.

Usage

Get the latest foreign exchange reference rates in JSON format.

curl "http://api.fixer.io/latest"

Get historical rates for any day since 1999.

curl "http://api.fixer.io/2000-01-03"

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

curl "http://api.fixer.io/latest?base=USD"

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

curl "http://api.fixer.io/latest?symbols=USD,GBP"

Make cross-domain JSONP requests.

curl "http://api.fixer.io/latest?callback=?"

An HTTPS endpoint is available.

curl "https://api.fixer.io/latest"

Fixer.io works great in the browser with money.js.

$.ajax({ dataType: 'jsonp', url: 'http://api.fixer.io/latest', success: function(data) { fx.rates = data.rates; demo(); } }); var demo = function() { var rate = fx(1).from('GBP').to('USD'); var rounded = Math.round(rate * 100) / 100; alert('£1 is worth US$' + rounded + ' today.'); }

This API comes with no warranty.