https://bugs.kde.org/show_bug.cgi?id=428464

--- Comment #5 from skrachen <j.chataig...@hotmail.fr> ---
Update, after more research I found more APIs:

- exchangerate-api.com provides a free API with 52  currencies supported
(that's 20 more than the ECB). They have terms of service that seem ok to use
(but I'm not a specialist). They also have rate limitations, which I am not
sure whether they would affect usage in KRunner or not.
- fixer.io explicitly says they support non-profits and we can contact them to
find an agreement. They support 170 currencies.
- the UN seems to have an API
(https://treasury.un.org/operationalrates/OperationalRates.php) but terms say
it is intended for internal use, I am not sure if that allows external use.
- The OECD has data for many countries
(https://stats.oecd.org/Index.aspx?DataSetCode=SNA_TABLE4) but I didn't find a
way to access it via an API, even though a document from 2013 said they should
have one.
- Eurostats has data about most european currencies, plus 4 extra-European
including USD. The database name is teimf200, so the URL will look like
https://ec.europa.eu/eurostat/wdds/rest/data/v2.1/json/en/teimf200 , and
documentation about how to use it is available at
https://ec.europa.eu/eurostat/web/json-and-unicode-web-services/getting-started/rest-request
-  Finally the World Bank has an API that is almost complete, but provides
average over periods of time rather than instant exchange rate (that may not be
a problem in our case). Site: https://datacatalog.worldbank.org, API use
example:
https://api.worldbank.org/v2/en/country/all/indicator/PA.NUS.FCRF?date=2019&format=json&per_page=20000&source=2
 . Also, they only give the country codes, not currency codes. And they also
skip Taiwan's currency, probably because it's not recognised as a country.

It is probably possible to get a little bit of several free APIs, or get an
agreement with fixer.io to access their data.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to