/v1/power
Cable power loss
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/voltagedrop-api/v1/power" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/voltagedrop-api/v1/power", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/voltagedrop-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/voltagedrop-api/v1/power",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"note": "P_loss = N·I²·R with N = 2 (single-phase) or 3 (three-phase) current-carrying conductors.",
"inputs": {
"area": 4,
"length": 30,
"phases": 1,
"current": 20,
"material": "copper"
},
"load_power_w": 5000,
"power_loss_w": 103.2,
"cable_efficiency_percent": 97.9777,
"conductor_resistance_ohm": 0.129
},
"meta": {
"timestamp": "2026-06-04T18:38:26.758Z",
"request_id": "8550d794-e479-497c-9a67-cc75893f0698"
},
"status": "ok",
"message": "Cable power loss",
"success": true
}