Aller au contenu
GET /v1/tension

Line tension from sag and load

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/slackline-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/slackline-api/v1/tension" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/slackline-api/v1/tension", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/slackline-api/v1/tension");
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/slackline-api/v1/tension",
    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": "A person at mid-span pulls the line into a shallow V; vertical balance gives 2·T·sin(angle) = the body weight, so the flatter the line (smaller sag angle) the more the tension blows up — pulling a slackline drum-tight to kill the sag is exactly what loads the anchors to many times body weight. The anchor's horizontal pull is T·cos(angle), nearly the full tension on a tight line. This is point-load statics, not a self-weight catenary.",
        "inputs": {
            "sag_m": 1.5,
            "load_kg": 80,
            "line_length_m": 25
        },
        "tension_kgf": 335.7,
        "load_force_n": 784.53,
        "sag_angle_deg": 6.843,
        "line_tension_n": 3292.3,
        "anchor_horizontal_n": 3268.9
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:55.966Z",
        "request_id": "1d762a05-0296-4ee3-86fe-3d7ee9c41c50"
    },
    "status": "ok",
    "message": "Line tension",
    "success": true
}