Zum Inhalt springen
GET /v1/policy_rate

SNB policy rate

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/snb-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/snb-api/v1/policy_rate" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/snb-api/v1/policy_rate", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/snb-api/v1/policy_rate");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/snb-api/v1/policy_rate",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "date": "2026-04",
        "unit": "% per year",
        "source": "Schweizerische Nationalbank",
        "country": "Switzerland",
        "history": [
            {
                "date": "2025-11",
                "rate_pct": 0
            },
            {
                "date": "2025-12",
                "rate_pct": 0
            },
            {
                "date": "2026-01",
                "rate_pct": 0
            },
            {
                "date": "2026-02",
                "rate_pct": 0
            },
            {
                "date": "2026-03",
                "rate_pct": 0
            },
            {
                "date": "2026-04",
                "rate_pct": 0
            }
        ],
        "rate_pct": 0,
        "frequency": "monthly",
        "indicator": "SNB policy rate"
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:15.006Z",
        "request_id": "4d6fea79-10bb-4941-b58a-07356030a008"
    },
    "status": "ok",
    "message": "Policy rate retrieved successfully",
    "success": true
}