Swiss National Bank Exchange Rate API
Official Swiss National Bank (Switzerland) daily exchange rates as JSON: 26 currencies, history back to 1914. The published CHF rates required for tax, audits, and compliant invoicing.
About Swiss National Bank
The Swiss National Bank publishes official franc exchange rates through its data portal. The SNB publishes monthly averages (no daily official series exists), with history reaching back to 1914 — one of the longest official exchange rate records anywhere.
- Official website: www.snb.ch
- Official rate publication: Exchange rates — SNB data portal
Quick start
One request for the pair you need — EUR to CHF at the official Swiss National Bank rate:
curl "https://allratestoday.com/api/v1/central-bank/snb/latest?source=EUR&target=CHF" \
-H "Authorization: Bearer art_live_your_key" Or the bank's full published table:
curl "https://allratestoday.com/api/v1/central-bank/snb/latest" \
-H "Authorization: Bearer art_live_your_key" On paid plans, any historical date or a daily time series:
curl "https://allratestoday.com/api/v1/central-bank/snb/history?source=EUR&target=CHF&from=2025-01-01" \
-H "Authorization: Bearer art_live_your_key" Latest published rates (2026-07-31)
The most recent table as published by Swiss National Bank — exactly what the /latest endpoint returns right now. Values are CHF per 1 unit of each currency:
| Base | Quote | Type | Rate |
|---|---|---|---|
ARS | CHF | monthly_average | 0.00055 |
AUD | CHF | monthly_average | 0.56415 |
BRL | CHF | monthly_average | 0.1582971 |
CAD | CHF | monthly_average | 0.57392 |
CNY | CHF | monthly_average | 0.1195218 |
CZK | CHF | monthly_average | 0.0382249 |
DKK | CHF | monthly_average | 0.123796 |
EUR | CHF | monthly_average | 0.92538 |
GBP | CHF | monthly_average | 1.08371 |
HKD | CHF | monthly_average | 0.1032988 |
HUF | CHF | monthly_average | 0.0025763 |
JPY | CHF | monthly_average | 0.004987500000000001 |
KRW | CHF | monthly_average | 0.0005437 |
MXN | CHF | monthly_average | 0.0463868 |
MYR | CHF | monthly_average | 0.19841989999999998 |
NOK | CHF | monthly_average | 0.0834064 |
NZD | CHF | monthly_average | 0.46811 |
PLN | CHF | monthly_average | 0.2143088 |
RUB | CHF | monthly_average | 0.0104 |
SEK | CHF | monthly_average | 0.08374480000000001 |
SGD | CHF | monthly_average | 0.62733 |
THB | CHF | monthly_average | 0.0241791 |
TRY | CHF | monthly_average | 0.017201 |
USD | CHF | monthly_average | 0.81002 |
XDR | CHF | monthly_average | 1.1004 |
ZAR | CHF | monthly_average | 0.04922 |
Node.js / TypeScript client
A dedicated zero-dependency npm package wraps these endpoints — snb-exchange-rate:
npm install snb-exchange-rate import { getRate } from 'snb-exchange-rate';
const pair = await getRate('EUR', 'CHF', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date); Zero dependencies, TypeScript types included, and it runs anywhere fetch exists — Node 18+, Bun, Deno, and edge runtimes.
Why use the official Swiss National Bank rate?
Live market rates move continuously, but tax filings, customs declarations, audits, and statutory accounting in Switzerland and beyond typically require the official rate published by Swiss National Bank for a given date — a fixed, citable number that never changes after publication. This API serves those published tables with the bank's own rate_date on every response; weekends and holidays return the most recent published date, which is the rate compliance rules require you to apply.
Pairs the bank doesn't print directly are resolved from its table (inverse or cross via CHF) and explicitly flagged "derived": true — so what the bank printed and what was computed are never confused.
Endpoints
GET /api/v1/central-bank/snb/latest— latest table or single pair (all plans)GET /api/v1/central-bank/snb/{YYYY-MM-DD}— the table for any date (paid plans)GET /api/v1/central-bank/snb/history— daily time series, up to 5,000 rows (paid plans)GET /api/v1/central-bank/snb/availability— publication calendar: the dates the bank actually published (all plans)
Full parameter reference in the API documentation. Every request counts toward your plan's monthly quota — rates change once per business day, so caching a day's table locally makes a small quota go far.
Frequently asked questions
Is there an API for Swiss National Bank exchange rates?
Yes — this one. Official daily CHF rates as clean JSON, latest table on every plan including free.
How often are the rates updated?
Swiss National Bank publishes undefined; the API ingests each new table shortly after publication (latest: 2026-07-31).
Are these the official rates?
Yes — ingested from Swiss National Bank's own published data, served unmodified with the bank's publication date. Anything computed rather than published is flagged derived.
Swiss National Bank rates, one API key
Latest table on every plan. History back to 1914 on paid plans. No credit card to start.
Get Free API Key Read the Docs