Aller au contenu
GET /v1/ridgeline

Structural ridgeline length

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/hammock-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/hammock-api/v1/ridgeline" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hammock-api/v1/ridgeline", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hammock-api/v1/ridgeline");
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/hammock-api/v1/ridgeline",
    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 structural ridgeline fixed at about 83 % of the hammock length gives the repeatable ~30° hang and the right amount of sag every time. Shorter ridgeline = tighter/flatter; longer = deeper. Set it once and your lay is consistent on any trees.",
        "inputs": {
            "hammock_length": 132,
            "ridgeline_percent": 83
        },
        "ridgeline_length": 109.56
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:49.112Z",
        "request_id": "bf375a9f-1f39-46cd-8eef-d3a4a893a7a3"
    },
    "status": "ok",
    "message": "Ridgeline length",
    "success": true
}