Hi,
Anybody else noticed that the Currency converter scripting block provided as a template when you add a new Scripting App no longer works. The fetch(‘https://api.exchangeratesapi.io/latest?base=USD’) endpoint has changed and also requires an access key.
Their api documentation (Exchange Rates API) now shows that the following endpoint needs to be used:
https://api.exchangeratesapi.io/v1/latest?access_key = API_KEY
This works once you have a valid access key, however, it appears that you can only pull the EUR default base currency on the free plan. When I tried to use ‘&base=USD’ I git the following response:
{“error”:{“code”:“base_currency_access_restricted”,“message”:“An unexpected error ocurred. uTechnical Support: support@apilayer.com]”}}
I am not sure who maintains these example scripts, but this one needs looking at.
Anybody know of an alternative api for currently conversion that would be completely free and allow base currencies to be changed? Only very low call rates needed.
Regards,
Dominic