/v1/length-at-layer
Rope length at a number of layers
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/winch-api/v1/length-at-layer" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/winch-api/v1/length-at-layer", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/winch-api/v1/length-at-layer");
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/winch-api/v1/length-at-layer",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "The rope wound on the drum after a given number of full layers — handy for marking the rope or knowing how much is out: it is the same layer-by-layer sum as the full capacity, stopped at the layers you have spooled. Subtract it from the total length to know how much line is deployed, useful for reach and for staying off the last few drum wraps that must always remain anchored.",
"inputs": {
"layers_wound": 5,
"drum_width_in": 12,
"rope_diameter_in": 0.5,
"barrel_diameter_in": 10
},
"rope_length_ft": 392.7,
"turns_per_layer": 24
},
"meta": {
"timestamp": "2026-06-07T08:17:57.152Z",
"request_id": "9f9254a9-50fd-4418-9aa6-30314aff7e0e"
},
"status": "ok",
"message": "Length at layer",
"success": true
}