Retrieving interest rates and exchange rates via API

The Riksbank provides an API (Application Programming Interface) in the form of a SOAP-based web service that allows the automatic collection of information on interest rates and exchange rates. Information on the Riksbank’s web service for interest rates and exchange rates is presented here. The web service only supports SOAP version 1.2. SOAP version 1.1 is no longer supported.


21 December 2022. The Riksbank will launch a new REST-based API with the aim of making it easier for users to integrate their systems to automatically retrieve interest rates and exchange rates from the Riksbank's website.

To give users time to update their existing integrations, the Riksbank will launch a beta version of the new REST-based API in parallel with the existing SOAP-based API.

The beta version is planned to be released in the first quarter of 2023 and the live version in the second quarter of 2023.  The existing API will continue to be available three months after the release of the live version of the new API.

Information on change affecting “getAnnualAverageExchangeRates”

After 30 November 2020, it will not be possible to obtain monthly or annual averages for the current period using the method “getMonthlyAverageExchangeRates”

The Riksbank has adjusted getAnnualAverageExchangeRates. Previously, it was possible to obtain a mean value for a period that had not ended, for example it was possible to obtain annual data on any day of the year. The reason for the adjustment is that API users could not know when a period or a result was established. Consequently, monthly and annual averages for the current period are now calculated on the final banking day of the month at 12.05, which is to say after publication for the day.


The Riksbank’s web service for interest rates and exchange rates has a number of methods you can invoke to search interest rates and exchange rates, cross rates, series names, various aggregates per period (month, quarter, year) and so on. For each period, minimum, maximum, average and ultimo (final banking day of the month) values can also be retrieved.

The web service provides the following methods:

  • getAllCrossNames
  • getAnnualAverageExchangeRates
  • getCrossRates
  • getCalendarDays
  • getInterestAndExchangeNames
  • getInterestAndExchangeGroupNames
  • getInterestAndExchangeRates
  • getLatestInterestAndExchangeRates
  • getMonthlyAverageExchangeRates

The WSDL file can be reached via the address:

Complete technical documentation for the Riksbank’s web service:

To retrieve series for one period, follow these instructions:

  1. Find the series for which you would like retrieve observations in the list Series for the web service and note the group ID and series ID.
    Series for the web service
  2. Invoke the web service with the selected group ID and series ID, as well as other parameters; see the link:


If you have questions on the Riksbank’s API for interest rates and exchange rates, email:


  • The Riksbank disclaims liability for any errors or changes in listings afterwards and for any interruptions in the functioning of the website that may affect access to the statistical database.
  • The Riksbank reserves the right to make updates/changes to the website that may affect the downloading of statistics.


Nasdaq Swedish Foreign Exchange Fixing Rates is provided by Nasdaq Stockholm AB and shall not without Nasdaq Stockholm AB´s prior written consent be used:

  1. As reference for the issuance of a financial instrument;
  2. As reference for the determination of the amount payable under a financial instrument or a financial contract;
  3. As reference by a party to a financial contract;
  4. For measuring the performance of an investment fund for the purpose of tracking the return of Nasdaq Swedish Foreign Exchange Fixing Rates, of defining the asset allocation of a portfolio, or of computing the performance fees;
  5. For any other purpose which may qualify Nasdaq Swedish Foreign Exchange Fixing Rates as a benchmark in accordance with regulation (EU) 2016/1011 of the European Parliament and of the European Council on indices used as benchmarks in financial instruments and financial contracts.
Was this information helpful? After your answear a textbox appears

Thanks for your feedback!

Your comment could not be sent, please try again later

Updated 09/01/2023