/v1/ring
Wire length + weight per ring
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}