Μετάβαση στο περιεχόμενο
GET /v1/counterweight

Counterweight from car and load

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/elevator-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
}