Skip to content
GET /v1/swolf

SWOLF efficiency score

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/swimming-api

It works. Grab an API key and use it in your project.

Get an API key

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

Example response

A real response from this endpoint, captured by the latest 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
}