Aller au contenu
GET /v1/swolf

SWOLF efficiency score

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/swimming-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}