/v1/counterweight
Counterweight from car and load
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/elevator-api/v1/counterweight" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/elevator-api/v1/counterweight", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/elevator-api/v1/counterweight");
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/elevator-api/v1/counterweight",
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": "The counterweight is set to the empty car plus a fraction of the rated load — the overbalance, typically 40–50 % (45 % is common). At that load the car and counterweight balance and the motor barely works; lighter or heavier loads tip the balance one way and the motor makes up the difference. So a 1,000 kg car rated for 1,000 kg at 45 % overbalance uses a 1,450 kg counterweight, and the machine is sized for the worst-case imbalance, not the full load.",
"inputs": {
"balance_pct": 45,
"car_weight_kg": 1000,
"rated_load_kg": 1000
},
"overbalance_pct": 45,
"counterweight_kg": 1450
},
"meta": {
"timestamp": "2026-06-07T08:17:57.726Z",
"request_id": "e26e6358-9715-4f6d-a38d-c795b253e640"
},
"status": "ok",
"message": "Counterweight",
"success": true
}