Aller au contenu
GET /v1/power

Power / torque / rpm

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/shaftpower-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/shaftpower-api/v1/power" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/shaftpower-api/v1/power", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/shaftpower-api/v1/power");
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/shaftpower-api/v1/power",
    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": {
        "rpm": 3000,
        "note": "P = T·ω with ω = 2πN/60 (N in rpm). 1 hp = 745.6999 W, 1 PS = 735.499 W.",
        "inputs": {
            "given": 2
        },
        "power_w": 31415.926536,
        "power_hp": 42.129451,
        "power_kw": 31.415926536,
        "power_ps": 42.713773,
        "torque_nm": 100,
        "solved_for": "power",
        "angular_velocity_rad_s": 314.159265
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:05.796Z",
        "request_id": "eac3688c-5d23-4546-a96b-8cfb140a3c58"
    },
    "status": "ok",
    "message": "Power/torque/rpm",
    "success": true
}