Naar de inhoud
GET /v1/swing

Swing circle around the anchor

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/anchor-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "The boat swings on a circle of radius = the horizontal reach of the rode (√(rode² − vertical²)) plus the boat length. Leave at least this radius to every other boat and hazard — they swing too, and on different rodes they swing differently, so allow generous room and watch the wind shift.",
        "inputs": {
            "rode_ft": 168,
            "depth_ft": 20,
            "bow_height_ft": 4,
            "boat_length_ft": 30
        },
        "swing_radius_ft": 196.3,
        "swing_diameter_ft": 392.6,
        "horizontal_reach_ft": 166.3
    },
    "meta": {
        "timestamp": "2026-06-06T23:54:01.987Z",
        "request_id": "34b7d559-eb27-4861-aca6-01a30c608349"
    },
    "status": "ok",
    "message": "Swing circle",
    "success": true
}