Swiss National Bank Data API

Official Swiss National Bank statistics as one row per series and period: exchange rates, interest rates and other published cubes, each with its labelled dimensions, unit, date and value.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 7 fieldsv1.0

Data from data.snb.ch/api/cube/devkum/data/json/en

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Cube
SNB cube id, for example devkum (monthly CHF exchange rates) or snbgwdzid (policy rate).
Example: devkum
From dateoptional
First period, for example 2026-01 (monthly), 2026-01-15 (daily) or 2026-Q1.
Example: 2026-01
To dateoptional
Last period, same format as from_date.
Example: 2026-11

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/swiss-national-bank-data/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/swiss-national-bank-data/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"cube":"devkum"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

cubetextrequired
SNB cube id, for example devkum (monthly CHF exchange rates) or snbgwdzid (policy rate).
example: devkum
from_datetext
First period, for example 2026-01 (monthly), 2026-01-15 (daily) or 2026-Q1.
example: 2026-01
to_datetext
Last period, same format as from_date.
example: 2026-11

What's in each record

7 fields.

Basics

  • Cube

    The SNB cube id the row comes from.

    Example devkum

  • Series key

    The SNB's key of the series inside the cube.

    Example E•••@SNB.devkum{M0,EUR1}

  • Dimensions

    Labelled dimensions of the series, such as currency or rate type.

    Example Monthly average end of month: Monthly average · Currency: Europe - EUR 1

  • Unit

    Unit of the value, such as Rates at 11 am. in CHF.

    Example Rates at 11 am. in CHF

  • Frequency

    Series frequency as an ISO 8601 duration, such as P1M for monthly.

    Example P1M

  • Value

    The observed value.

    Example 0.92732

Dates

  • Date

    Period of the value, as the SNB writes it (2026-11, 2026-11-05 or 2026-Q3).

    Example 2026-01

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
cubetextCube3 of 3
series_keytextSeries key3 of 3
dimensionsgroup of valuesDimensions3 of 3
unittextUnit3 of 3
frequencytextFrequency3 of 3
datetextDate3 of 3
valuenumberValue3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordCubeSeries keyDimensionsUnitFrequencyValueDate
1devkumE•••@SNB.devkum{M0,EUR1}Monthly average end of month: Monthly average · Currency: Europe - EUR 1Rates at 11 am. in CHFP1M0.927322026-01
2devkumE•••@SNB.devkum{M0,EUR1}Monthly average end of month: Monthly average · Currency: Europe - EUR 1Rates at 11 am. in CHFP1M0.914062026-02
3devkumE•••@SNB.devkum{M0,EUR1}Monthly average end of month: Monthly average · Currency: Europe - EUR 1Rates at 11 am. in CHFP1M0.909122026-03

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Data are the SNB's own and may be used with a credit to the Swiss National Bank as source; the SNB does not endorse this API.
  • You must name a cube id (for example devkum for monthly CHF exchange rates, snbgwdzid for the policy rate); the list of cubes is on data.snb.ch.
  • One cube can hold dozens of series, so a long period range returns many rows; the run stops at your record limit.
  • Update frequency follows the SNB release calendar (daily to quarterly depending on the cube).

Version history

A run uses the live version unless the request names another one with version.