Skip to content
GET /v1/ridgeline

Structural ridgeline length

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/hammock-api

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

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

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