/v1/friction
Flat-surface friction
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/incline-api/v1/friction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/incline-api/v1/friction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/incline-api/v1/friction");
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/incline-api/v1/friction",
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": {
"formula": "f = μ·N; angle of repose = atan(μ).",
"mass_kg": 5,
"normal_force_n": 49.03325,
"friction_force_n": 19.6133,
"angle_of_repose_deg": 21.801409,
"friction_coefficient": 0.4
},
"meta": {
"timestamp": "2026-06-04T10:18:44.011Z",
"request_id": "d4359e00-cc09-4688-bfbd-50bd4e47960f"
},
"status": "ok",
"message": "Flat-surface friction",
"success": true
}