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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
cube | text | Cube | 3 of 3 |
series_key | text | Series key | 3 of 3 |
dimensions | group of values | Dimensions | 3 of 3 |
unit | text | Unit | 3 of 3 |
frequency | text | Frequency | 3 of 3 |
date | text | Date | 3 of 3 |
value | number | Value | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Cube | Series key | Dimensions | Unit | Frequency | Value | Date |
|---|---|---|---|---|---|---|---|
| 1 | devkum | E•••@SNB.devkum{M0,EUR1} | Monthly average end of month: Monthly average · Currency: Europe - EUR 1 | Rates at 11 am. in CHF | P1M | 0.92732 | 2026-01 |
| 2 | devkum | E•••@SNB.devkum{M0,EUR1} | Monthly average end of month: Monthly average · Currency: Europe - EUR 1 | Rates at 11 am. in CHF | P1M | 0.91406 | 2026-02 |
| 3 | devkum | E•••@SNB.devkum{M0,EUR1} | Monthly average end of month: Monthly average · Currency: Europe - EUR 1 | Rates at 11 am. in CHF | P1M | 0.90912 | 2026-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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.