/v1/correction
Power-factor correction
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/powerfactor-api/v1/correction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/powerfactor-api/v1/correction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/powerfactor-api/v1/correction");
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/powerfactor-api/v1/correction",
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": "Qc = P·(tanφ1 − tanφ2); C = Qc/(2π·f·V²).",
"voltage_v": 230,
"frequency_hz": 50,
"real_power_w": 8000,
"capacitance_f": 0.000202811364,
"capacitance_uf": 202.811364,
"target_power_factor": 0.95,
"current_power_factor": 0.8,
"reactive_power_after_var": 2629.472841,
"reactive_power_before_var": 6000,
"capacitor_reactive_power_var": 3370.527159
},
"meta": {
"timestamp": "2026-06-04T10:18:40.683Z",
"request_id": "b44fd22c-0f14-4366-9523-74e050165c79"
},
"status": "ok",
"message": "Power-factor correction",
"success": true
}