This document outlines how to connect to the Exchangeratesapi.io API in order to retrieve exchange rates. You will find a list of cURL examples that can be reused with minimal changes required.
Connect to Exchange Rates API
Exchangereatesapi.io provides updated exchange rates between many currencies. This section will outline how to retrieve data from this API.
Exchangeratesapi.io requires users to create an account and retrieve an API Key. That access key is used in the API request to authenticate.
cURL - Latest Exchange Rates
curl -G -X GET "http://api.exchangeratesapi.io/v1/latest" \
--data-urlencode "access_key=[access_key]" \
--data-urlencode "base=EUR" \
--data-urlencode "symbols=USD,GBP,AUD,CAD,PLN,MXN,JPY,CHF,RUB"
Click to copy