Webservice API reference

The Riksbank provides a webservice api with which it is possible to query information about interest and exchange rates.
The database contains about 60 interest rate series and 50 exchange rate series and it is usually updated twice a day,
at around 9.30 a.m. and around 12.30 p.m.


Tha API exposes the methods necessary to retrieve observation values.
The data is arranged in a tree like structure with groups (including sub groups), series and observations:

  • Interest rates and exchange rates
    • Riksbank interest rates (137)
      • Deposit rate
      • Lending rate
      • ...
    • Swedish Market (based) rates
      • STIBOR (Stockholm interbank offered rate)
        • STIBOR T/N (Tomorrow/Next)
        • STIBOR maturity 1 week
        • ...
        • STIBOR maturity 12 months
      • ...
    • Group N
      • Series N1
      • Series N2

The calls getInterestAndExchangeGroupNames and getInterestAndExchangeNames are used to get hold of the names of groups and series (and their group IDs).
These methods return localized descriptions (Swedish or English) about the available groups and their series.

Supported calls

The following table lists supported calls in the API in alphabetical order, and provides a brief description for each. Click a call name to see syntax, usage, and more information for that call.

The calls are defined in the WSDL file referenced below.

Call Description
getAnnualAverageExchangeRates() Retrieves annual averages for exchange rates
getInterestAndExchangeRates() Retrieves interest and/or exchange rates data
getLatestInterestAndExchangeRates() Retrieves the latest observation value(s) for selected series ID(s)
getCalendarDays() Retrieves calendar dates with bank day information.
getCrossRates() Retrieves cross rates series data
getAllCrossNames() Retrieves the available cross rates series
getMonthlyAverageExchangeRates() Retrieves monthly averages for exchange rates
getInterestAndExchangeGroupNames() Retrieves all groups available in the database
getInterestAndExchangeNames() Retrieves all series for a particular group


The WSDL file and matching xsd file can be found here:

File Description
sweaWS.wsdl WSDL file describing the webservice methods and endpoint location.
swea.xsd XSD file defining the data types. Referenced by the WSDL file above.