Fixer io. has a free currency JSON api with foreign exchange rates. Depending on the JSON api you choose, you can easily import current and/or historical currency exchange rates. Please have a look at http://fixer.io . Rates are quoted against the Euro by default, to quote against a different currency you can change it by setting the base parameter in your request, for example http://api.fixer.io/latest?base=USD