Zum Inhalt springen
GET /v1/ring

Wire length + weight per ring

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/chainmaille-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Wire per ring ≈ π × (inner diameter + wire diameter) — the mean-diameter circumference. Weight = wire volume × density. Add a little for cut loss and the kerf of the saw or cutter.",
        "inputs": {
            "material": "steel",
            "density_g_cm3": 7.85,
            "wire_diameter": 1.6,
            "inner_diameter": 6.4
        },
        "wire_per_ring_in": 0.9895,
        "wire_per_ring_mm": 25.133,
        "weight_per_ring_g": 0.3967
    },
    "meta": {
        "timestamp": "2026-06-06T07:13:58.013Z",
        "request_id": "97f74abd-d763-487a-98c8-c7515e7c0f50"
    },
    "status": "ok",
    "message": "Ring math",
    "success": true
}