Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/swimming-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/swimming-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/swimming-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/swimming-api/v1/meta");
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/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "notes": "Metres, seconds. SWOLF = strokes + time; CSS = (d1−d2)/(t1−t2); pace/100 = time/distance·100. For running pace use a pace API; for rowing a rowing API.",
        "service": "swimming-api",
        "endpoints": {
            "GET /v1/css": "Critical Swim Speed and threshold pace from two time trials.",
            "GET /v1/meta": "This document.",
            "GET /v1/pace": "Speed and pace per 100 m from a distance and time.",
            "GET /v1/swolf": "SWOLF score (strokes + seconds) for a length, normalized to 25 m."
        },
        "description": "Swimming maths: SWOLF efficiency score, Critical Swim Speed from a two-distance test, and swim pace per 100 m."
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:52.462Z",
        "request_id": "565d1d19-d2b2-412b-978b-051073163556"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}