Skip to content
GET /v1/swing

Swing circle around the anchor

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

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

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest 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
}