/v1/shape
Moment of inertia of a shape
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/momentofinertia-api/v1/shape" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/momentofinertia-api/v1/shape", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/momentofinertia-api/v1/shape");
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/momentofinertia-api/v1/shape",
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": "Moment of inertia in kg·m². Radius of gyration k = √(I/m). Use /v1/parallel-axis to shift to a parallel axis.",
"inputs": {
"r": 0.5,
"mass": 2,
"shape": "solid_sphere"
},
"formula": "I = 2/5·m·r²",
"moment_of_inertia": 0.2,
"radius_of_gyration": 0.316227766
},
"meta": {
"timestamp": "2026-06-05T19:50:31.470Z",
"request_id": "3a9e243d-8d2e-4064-8716-34a45c5bf11b"
},
"status": "ok",
"message": "Moment of inertia of a shape",
"success": true
}