Fixer.io

JSON API for foreign exchange rates and currency conversion

logo
Availability Throughput Response time

Fixer.io is a free JSON API for current and historical foreign exchange rates published by the European Central Bank.

The rates are updated daily around 4PM CET.

Usage

Get the latest foreign exchange reference rates in JSON format.

http://api.fixer.io/latest

Get historical rates for any day since 1999.

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.

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

Request specific exchange rates by setting the symbols parameter.

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

Make cross-domain JSONP requests.

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

An HTTPS endpoint is available.

https://api.fixer.io/latest

Use money.js in the browser.

var demo = function(data) { fx.rates = data.rates var rate = fx(1).from("GBP").to("USD") alert("£1 = $" + rate.toFixed(4)) } $.getJSON("http://api.fixer.io/latest", demo)
  1. The API runs on Digital Ocean.
  2. The SSL/TLS certificate is provided by Let's Encrypt.
  3. Check out the source code on GitHub.
  4. Fetch the data sets on ECB.
  5. The API comes with no warranty.