Aller au contenu
GET /v1/large-cable

Single-layer check for ≥4/0 cables

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/cabletray-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/cabletray-api/v1/large-cable" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cabletray-api/v1/large-cable", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cabletray-api/v1/large-cable");
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/cabletray-api/v1/large-cable",
    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": {
        "note": "For multiconductor cables 4/0 and larger, NEC 392.22(A)(1) requires them laid in a single layer with the sum of their diameters not exceeding the tray width — they cannot be stacked or bundled. So a 12-inch tray holds cables whose diameters add up to 12 inches side by side. Mixing these with smaller cables triggers the combination rule in 392.22(A)(1)(c).",
        "inputs": {
            "tray_width_in": 12,
            "sum_of_diameters_in": 10
        },
        "within_code": true,
        "spare_width_in": 2
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:04.553Z",
        "request_id": "d72ed833-b0bd-4760-a9c8-6bc86c3be658"
    },
    "status": "ok",
    "message": "Large cable check",
    "success": true
}