Fer is a free API service that tracks current and historical foreign exchange rates published by the European Central Bank.
A public instance of the API lives at api.fer.ee.
Rates are updated every working day.
Get the latest foreign exchange rates.
GET https://api.fer.ee/latestRates are quoted against the Euro by default. You can quote against a different currency by setting the from or base parameter.
GET https://api.fer.ee/latest?from=USDGET https://api.fer.ee/latest?base=USDRequest specific exchange rates by setting the to or symbols parameter in your request to limits returned rates to specified values.
GET https://api.fer.ee/latest?to=USD,JPYGET https://api.fer.ee/latest?symbols=USD,JPYGet historical rates for any day since 1999.
GET https://api.fer.ee/2000-01-01Get rates for a period.
GET https://api.fer.ee/2010-01-01..2010-01-31Limit results to specific foreign exchange rates with the to or symbols parameter.
GET https://api.fer.ee/2000-01-01?to=USD,JPYGET https://api.fer.ee/2000-01-01?symbols=USD,JPYQuote the historical rates against a different currency with the from or base parameter.
GET https://api.fer.ee/2000-01-01..2010-01-01?from=USDGET https://api.fer.ee/2000-01-01..2010-01-01?base=USDFer returns all data points for up to 90 days. Beyond this period, it starts sampling by week or month based on the breadth of the date range.
You can convert any value between currencies using the above endpoints in combination with the amount parameter.
GET https://api.fer.ee/latest?amount=100&from=USD&to=CNYGet a list of available currency symbols and their full names.
GET https://api.fer.ee/currencies