Pushbuild

Swiss National Bank API: Policy Rate, SARON, CHF FX & CPI

Swiss National Bank statistics from its official data portal: SNB policy rate, SARON and sight deposit rates (daily), Swiss franc exchange rates, CPI, M1/M2/M3 and SNB gold and foreign currency holdings. 16 presets or any data portal cube.

$0.16 per 1,000 observations

Get an API key

What it returns

Swiss monetary and financial statistics from the Swiss National Bank's official data portal, one row per series and date, with the change from the previous observation.

| field | meaning |. |---|---|. | `cube`, `series`, `preset` | data portal cube, series code (dimension items joined by dots) and preset name |. | `title` | the SNB's labels for the series |. | `date`, `value`, `change` | observation (day, month or year) and change from the previous one |. | `publishingDate`, `source` | when the SNB last published the cube, and its page on data.snb.ch |.

Request

POST https://api.pushbuild.com/swiss-national-bank-data/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
presetslist of stringsHeadline Swiss series. Default when nothing is chosen: SNB policy rate, SARON, EUR/CHF and CPI inflation.
cubeslist of stringsAny SNB data portal cube id, for example snboffzisa (official interest rates of major central banks) or zimoma (money market rates). Returns every series in the cube.
lastNintegerMost recent observations per series. Ignored when startDate is set. Default: 24.
startDatestringFirst date to include, as YYYY-MM-DD, YYYY-MM or YYYY to match the series. Optional.
endDatestringLast date to include, same format. Optional.
changesbooleanAdd the change from the previous observation in the same series. Default: true.
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/swiss-national-bank-data/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"presets": ["policy-rate", "saron", "eur-chf", "cpi-yoy"], "maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.16 per 1,000 observations. No charge for errors or empty searches.

Related APIs

Australian Bureau of Statistics API: CPI, Jobs, GDP & Any Dataflow API

Australian Bureau of Statistics data from the official ABS Data API: monthly CPI and trimmed mean, unemployment by state, GDP, wage price index and household spending presets, any ABS dataflow by SDMX key, and dataflow search.

Bank of Canada API: Policy Rate, CORRA, Bonds, CPI & CAD FX API

Bank of Canada statistics from its official Valet API: policy rate, CORRA, prime, T-bills, benchmark bond yields, mortgage and GIC rates, CPI and core CPI, commodity prices and daily CAD exchange rates.

Bank of England API: Bank Rate, SONIA, Gilts & Mortgages API

Bank of England statistics from its official database: Bank Rate, SONIA, gilt yields, implied inflation, mortgage rates and approvals, M4 money, lending and sterling FX.

BLS Data API: Any Bureau of Labor Statistics Series API

Any US Bureau of Labor Statistics time series by id (CPI, payrolls by industry, unemployment, wages, PPI, JOLTS, import prices) plus state unemployment and labor force from plain state codes, with month-over-month and year-over-year changes..

Bundesbank API: German Bund Yields, CPI & Euro FX Rates API

Deutsche Bundesbank statistics from its official time series API: German government bond yields (2, 5, 10 and 30 years, daily), German consumer price index and ECB euro reference rates.

Cboe Put/Call Ratios & VIX Futures Term Structure API

Daily Cboe options statistics: total, equity, index, SPX and VIX put/call ratios with call and put volume and open interest by product, plus the VIX futures curve with settlements, open interest and contango versus spot VIX..

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

(617) 299-8887

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.