Frequently asked questions
What Soap-protocol versions are permitted?
As from 20 November 2019 the Riksbank's API only permits Soap 1.2. Version Soap 1.1 is no longer permitted.
Example of a http request:
POST http://swea.riksbank.se:80/sweaWS/services/SweaWebServiceHttpSoap12Endpoint HTTP/1.1
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://swea.riksbank.se/xsd">
Parameters for getInterestAndExchangeRates
<!--1 or more repetitions:-->
What communication protocol (TLS) versions are used to extract the API / web services
The old versions of the encrypted communication protocol, TLS1.0 and TLS1.1, are approaching End-of-Life. The Riksbank therefore closed down these versions as from 16.00 hours on 4 April 2019. Since then, only version TLS1.2 has been permitted. We are also working on introducing TLS1.3 in the near future.
Does one have to state the source if one distributes the statistics?
Yes, you must always state that Sveriges Riksbank is the source ("Source: Sveriges Riksbank").
If one has processed statistics taken from the Riksbank's website, does one still have to state the source?
No, in that case you should not state Sveriges Riksbank as the source.
May I use the API for commercial purposes?
Yes, you may. The Riksbank's statistical database is freely available without charge and may be freely adapted and used without any particular permission or agreement being required.
Is there anything I cannot do with the API?
You may not use the API to spread harmful codes. Nor may you present the service you have developed as an "official cooperation" or "partnership" with the Riksbank.
Why do you have no FTP or SFTP?
We do not use these protocols because the web services are more general and do not require any specific configuration of the subscription.
Which technical interface does the Riksbank provide to enable recovery of exchange rates, for instance?
We use the web service tool SoapUI.
How do I receive notification of new version of the API?
New versions are notified on riksbank.se/en-gb/statistics/search-interest--exchange-rates/web-services/
Why does my search show "n/a" for some series?
N/a stands for not available and means that one or more observations for the selected time period are unavailable. Check the period of validity for the series by clicking on the link Series information. The date in brackets after the series name shows the period during which there are observations for this series.
If a series has not yet been updated with the current day's value, this will be reported as n/a (missing). Try to repeat your search a little later in the day.
A series can also be stated as n/a as a result of bank holidays.
Why doesn't my search show observations for all of the selected series?
If a series is excluded from the results this is probably due to that series' period of validity lying outside of the selected time period. Check the period of validity for the series by clicking on the link Series information. The date in brackets after the series name shows the period during which there are observations for this series.
Why does my result show strange values, or values as text instead of figures, in Excel?
If, in an advanced search, you have selected a different decimal separator than the start value suggested when the search page opens, the figures may be indicated wrongly or interpreted as text when the file is opened in Excel. Go back to the search page and select the same decimal separator as that applying to Excel and then click on "Search" again.
Why won't my Excel file open?
This is often because you already have the Excel program open. In this case, switch from your web browser to Excel and check that a new file has opened.
What is the meaning of the date in brackets after a series name?
This date indicates the period during which there are observations for this series. If there is no final date in the brackets, the series is open. This means that it is usually updated with a new listing every day.
How many decimals do interest rate and exchange rate observations have?
The values for interest rates and exchange rates are published with up to 4 decimals.