SNB Swiss Rates Scraper avatar

SNB Swiss Rates Scraper

Pricing

from $7.50 / 1,000 results

Go to Apify Store
SNB Swiss Rates Scraper

SNB Swiss Rates Scraper

Query the Swiss National Bank data portal for bond yields, the policy rate, and daily or monthly FX cubes. Each record carries date, rate_type, value, maturity, and currency. Pick a cube and date range. Useful for rates research, CHF currency modeling, and macro dashboards.

Pricing

from $7.50 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

ParseForge Banner

📊 SNB Swiss National Bank Rates Scraper

🚀 Export Swiss National Bank rates data in seconds. Structured records direct from the public data.snb.ch endpoint to CSV, Excel, JSON, or XML.

🕒 Last updated: 2026-05-29 · 📊 9 fields per record · Public REST API · Swiss National Bank rates

The SNB Swiss National Bank Rates Scraper turns the data.snb.ch public REST endpoint into a clean, structured dataset. It calls the endpoint with the parameters you supply, parses the JSON, and flattens each record into one row.

Dataset coverage depends on the upstream source. All field names are clean snake_case / camelCase, numeric strings are auto-cast to numbers, and upstream rate-limit notes are surfaced as a clean error record instead of crashing your pipeline.

🎯 Target Audience💡 Primary Use Cases
📊 AnalystsPull structured records for analysis
🏢 Finance teamsSnapshot data for dashboards and reports
🤖 ML engineersBuild training sets from public sources
📰 JournalistsVerify numbers for stories with one click
👩‍💻 DevelopersMirror upstream data into your own DB without writing client code
🎓 ResearchersRun reproducible studies on public data

📋 What the SNB Swiss National Bank Rates Scraper does

  • Calls the public data.snb.ch endpoint.
  • Parses the JSON response and flattens each record into a clean row.
  • Casts numeric fields to numbers so they import cleanly into Excel and BI tools.
  • Surfaces upstream rate-limit or error notes as a single-row error record instead of crashing.
  • Exports as CSV, Excel, JSON, JSONL, XML, RSS, or HTML.

💡 Why it matters: The raw Swiss National Bank rates JSON is verbose and hard to consume in spreadsheets. This actor normalizes the payload into one row per record so the data drops straight into pandas, BigQuery, or a Google Sheet.

🎬 Full Demo

🚧 Coming soon.

⚙️ Input

FieldTypeRequiredDescription
cubeenumNorendoblid / snbpolizid / devkua / devkum.
dateFromstringNoYYYY-MM-DD.
dateTostringNoYYYY-MM-DD.
maxItemsintegerNoFree users: 10. Paid users: up to 1,000,000. Prefill: 10.

Example 1:

{
"cube": "rendoblid",
"maxItems": 100
}

Example 2:

{
"cube": "snbpolizid",
"dateFrom": "2025-01-01",
"dateTo": "2026-05-29",
"maxItems": 200
}

⚠️ Good to Know: The Swiss National Bank rates API is rate-limited. This actor surfaces rate-limit notes as a clean error record so your downstream pipeline can decide how to retry.

📊 Output

Each record is a flat object. error is always last.

FieldTypeDescription
📅 datestringObservation date.
🧊 cubestringSNB cube ID.
🏷️ rateTypestringType of rate.
📈 valuenumberReported rate.
maturitystringBond maturity if applicable.
💱 currencystringCurrency.
🔗 sourcestringSNB source label.
🕒 scrapedAtstringFetch timestamp.
errorstringSet on upstream error.

Sample record:

{
"date": "2026-05-28",
"cube": "rendoblid",
"rateType": "CHF",
"value": 0.42,
"maturity": "10Y",
"currency": "CHF",
"source": "SNB",
"scrapedAt": "2026-05-29T12:00:00.000Z",
"error": null
}

✨ Why choose this Actor

| 🆓 | Works with the free, public Swiss National Bank rates endpoint. | | 🧹 | Clean snake_case keys ready for BI. | | 🔢 | Auto-casts numeric strings to real numbers. | | 🛟 | Surfaces rate-limit notes as a clean error record. | | 🔌 | Drop-in dataset replacement for the raw API. | | 💾 | Push to dataset → instant CSV / Excel / JSON / XML / RSS / HTML export. |

📈 How it compares to alternatives

ApproachSetup timeClean keys?Numeric casting?Rate-limit handling?
Roll your own fetch30 min +
Generic API client1 hr install + scriptpartialpartialpartial
This Actor5 sec, no install

🚀 How to use

  1. Click Try for free.
  2. Adjust input fields (or leave defaults).
  3. Click Start. Within seconds, your dataset is ready — download as CSV, Excel, JSON, or XML, or pipe to your warehouse.

💼 Business use cases

📊 Analytics & dashboards. Pull Swiss National Bank rates data into a single CSV, feed BI tools, share with stakeholders.

🤖 ML feature engineering. Build clean training sets from Swiss National Bank rates for downstream models.

📰 Newsroom fact-checking. Verify numbers for stories in 30 seconds.

🏢 Treasury / ops. Schedule daily runs and pipe to your dashboard.

🔌 Automating SNB Swiss National Bank Rates Scraper

  • Make / Zapier: trigger this actor on a schedule, push results to Airtable, Google Sheets, or Slack.
  • Cron schedule: native Apify scheduler.
  • Webhooks: POST to your endpoint the moment a run finishes.
  • Pipe to BigQuery / Snowflake / Postgres: native Apify integrations.

🌟 Beyond business use cases

🎓 Education. Teach a class with real Swiss National Bank rates data instead of toy datasets.

🧪 Personal research. Track Swiss National Bank rates signals on your own schedule.

🤝 Non-profit & open data. Build public dashboards without writing client code.

🧰 Tinkering & prototyping. Spin up a feed in 5 seconds to test a new idea.

🤖 Ask an AI assistant about this scraper

Pop this README into ChatGPT, Claude, or any AI assistant and ask it to map your specific workflow to the actor's inputs.

❓ Frequently Asked Questions

❓ Do I need an API key? No. The SNB data API is open.

❓ Which cubes are supported? Bond yields, policy rate, FX daily, FX monthly.

❓ How do I find more cubes? Browse data.snb.ch.

❓ Can I filter by date? Yes. Use dateFrom and dateTo.

❓ What units? Percent for rates, CHF for FX.

❓ What format can I download? CSV, Excel, JSON, JSONL, XML, RSS, or HTML.

🔌 Integrate with any app

Apify ships native integrations with Make, Zapier, Slack, Discord, Google Drive, Google Sheets, Gmail, Airbyte, Keboola, Telegram, GitHub, and any REST API or webhook endpoint.

ActorWhat it does
ParseForge Alpha Vantage ScraperStocks, FX, crypto, indicators.
ParseForge Yahoo Finance ScraperEquities, funds, indices.
ParseForge OurAirports ScraperGlobal airport database.
ParseForge NBA Stats ScraperPlayer and team stats from NBA.com.

💡 Pro Tip: browse the complete ParseForge collection for 900+ production-grade scrapers.


Disclaimer: This actor scrapes only publicly available data. ParseForge is not affiliated with, endorsed by, or sponsored by any of the third-party services referenced. Users are responsible for complying with the target site's terms of service and applicable law. Create a free account w/ $5 credit.