Aller au contenu
GET /v1/meta

Spec

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/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/shaftpower-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/shaftpower-api/v1/meta");
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/meta",
    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": {
        "notes": "SI units: power W, torque N·m, speed rpm, angle rad/s. Mechanical (shaft) power, not electrical — for power factor use a power-factor API.",
        "service": "shaftpower-api",
        "formulae": {
            "power": "P = T·ω,  ω = 2πN/60",
            "horsepower": "1 hp = 745.699872 W, 1 PS = 735.49875 W",
            "tangential_speed": "v = ω·r"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/power": "Give any two of power, torque and rpm; get the third plus hp/PS.",
            "GET /v1/units": "Power unit conversion across W, kW, hp, PS, ft·lbf/s and BTU/h.",
            "GET /v1/angular": "Angular-velocity conversions and tangential speed/centripetal acceleration."
        },
        "description": "Rotational/shaft power calculator: relate power, torque and rpm; convert angular velocity (rpm/rad·s⁻¹/Hz) with tangential speed; and convert power units (W/kW/hp/PS)."
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:06.021Z",
        "request_id": "da324819-76de-4d02-8215-47d10635cd8b"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}