As I am running some internal spreadsheet to track our cash flow, I had to find out a solid foreign exchange rates and currency conversion API. I have found that Fixer.io provides access without any cost for up to 1000 APIs calls per month which was enough for my needs.
Fetching foreign currency rate for pair EUR/PLN
using this API looks like this
and we will get an output as
Injecting this currency rate directly into Libreoffice Calc spreadsheet will look like as below as we will use WEBSERVICE
but then if you would like to extract for your computational need just the rate you might need to use regex
where using \d{1,5}
you specify amount of decimal places you are interested in of number 4.405059