With over 15 exchange rate data sources, the Exchangerates API is delivering exchanging rates data for more than 170 world currencies. This API has several endpoints, where each of them serves a different purpose, use case. The endpoints include functionalities like receiving the latest exchange rates information for a specific set, or for all currencies; conversion from one to another currency; receiving data Time-series for multiple or for one currency, and preserving the API daily for the fluctuation data.
Available Endpoints
- /symbols Returns all available currencies.
- /latest Returns exchange rate data in real-time for all available currencies or for a specific set.
- /convert With this endpoint, we have any amount conversion from one currency to another.
- /{date} Endpoint for receiving historical exchange rate information for all available currencies or for a set of currencies.
- /timeseries It returns the daily historical data for exchange rates, between two specified dates. The data can be returned for all available currency or for specified ones.
- /fluctuation This endpoint returns the fluctuation data between specified dates. The data can be for all available currencies or for a specific set.
Supported Symbols
The Fixer API comes with a constantly updated endpoint returning all available currencies. To access this list, make a request to the API's symbols endpoint.
{
"success": true,
"symbols": {
"AED": "United Arab Emirates Dirham",
"AFN": "Afghan Afghani",
"ALL": "Albanian Lek",
"AMD": "Armenian Dram",
[...]
}
}
Tips
To reduce bandwidth you can limit the number of output currencies to a specific set of your choice on most API endpoints. To do so, simply append the Fixer API's symbols parameter to your API request and set it to one or more comma-separated currency codes.
curl --request GET 'https://api.apilayer.com/exchangerates_data/live?base=USD&symbols=EUR,GBP' \
--header 'apikey: YOUR API KEY'
It is also possible to convert currencies using historical exchange rate data. To do this, please also use the API's date parameter and set it to your preferred date. (format YYYY-MM-DD)
curl --request GET 'https://api.apilayer.com/currency_data/convert?base=USD&symbols=EUR,GBP,JPY&amount=5&date=2018-01-01' \
--header 'apikey: YOUR API KEY'