/v1/swolf
SWOLF efficiency score
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/swimming-api/v1/swolf" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/swimming-api/v1/swolf", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/swimming-api/v1/swolf");
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/swimming-api/v1/swolf",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "SWOLF (swim + golf) scores stroke efficiency for one length = the strokes taken plus the seconds taken. Like golf, lower is better: gliding further per stroke or swimming faster both cut the score. A 25 m length in 18 strokes and 30 s is a SWOLF of 48. Compare like with like — it is pool-length and stroke dependent — so the score is normalized to 25 m here; chase a lower SWOLF at the same speed to swim more efficiently, not just harder.",
"swolf": 48,
"inputs": {
"strokes": 18,
"time_seconds": 30,
"pool_length_m": 25
},
"swolf_normalized_25m": 48
},
"meta": {
"timestamp": "2026-06-07T08:17:52.371Z",
"request_id": "71d5dadb-8bd6-4632-a154-90b78bb0374c"
},
"status": "ok",
"message": "SWOLF",
"success": true
}