How to get the latest Forex Exchange Rates via Fixer REST API?

An example of getting the latest foreign exchange rates by requesting the free foreign exchange rates and currency conversion REST API service. The real-time exchange rate API service is provided by Fixer.io. The exchange rates API key is passed as a URL parameter. You can request the free exchange rates API by making HTTP GET requests.
Loading...
Updated: Viewed: 12759 times

How do I request the Forex Exchange Rates API?

To get the current and historical foreign exchange rates via the REST API service, you need to make an HTTP GET request to the forex exchange rates REST API endpoint and provide your free REST API key as an URL parameter. Forex exchange rates are available for 170 world currencies.

http://data.fixer.io/api/latest?access_key={apikey}&base=EUR

Free Fixer accounts are limited to EURO base currency only. Paid accounts can pass the base currency as the second URL parameter.

http://data.fixer.io/api/latest?access_key={apikey}&base=USD

Generate Code Snippets for Exchange Rates API Example

Convert your Exchange Rates API request to the PHP, JavaScript/AJAX, Curl/Bash, Python, Java, C#/.NET code snippets using the ReqBin code generator.