/v1/saron
SARON overnight benchmark
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/snb-api/v1/saron" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/snb-api/v1/saron", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/snb-api/v1/saron");
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/saron",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"date": "2026-05",
"unit": "% per year",
"source": "Schweizerische Nationalbank",
"country": "Switzerland",
"history": [
{
"date": "2025-12",
"rate_pct": -0.079228
},
{
"date": "2026-01",
"rate_pct": -0.074428
},
{
"date": "2026-02",
"rate_pct": -0.076166
},
{
"date": "2026-03",
"rate_pct": -0.066425
},
{
"date": "2026-04",
"rate_pct": -0.046989
},
{
"date": "2026-05",
"rate_pct": -0.055974
}
],
"rate_pct": -0.055974,
"frequency": "monthly",
"indicator": "SARON — Swiss Average Rate Overnight (1 day)"
},
"meta": {
"timestamp": "2026-06-09T11:38:15.643Z",
"request_id": "0f701ea8-dc35-4f98-b8d5-7f602ad46360"
},
"status": "ok",
"message": "SARON retrieved successfully",
"success": true
}