Naar de inhoud
GET /v1/fill

Allowable fill for ≤4/0 cables

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/cabletray-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/cabletray-api/v1/fill" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cabletray-api/v1/fill", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cabletray-api/v1/fill");
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/fill",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "For multiconductor power/lighting cables no larger than 4/0 in a ladder or ventilated-bottom tray, NEC 392.22(A)(1) Column 1 caps the total cable cross-sectional area at the tray width × 7/6 (e.g. a 12-inch tray allows 14 in²). Sum every cable's csa and keep it under that. Solid-bottom trays and trays mixing large and small cables use the other columns/rows — and remember ampacity must be derated for fill under 392.80.",
        "inputs": {
            "tray_width_in": 12,
            "cable_area_in2": 10
        },
        "fill_pct": 71.4,
        "within_code": true,
        "spare_area_in2": 4,
        "allowable_fill_area_in2": 14
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:04.453Z",
        "request_id": "cb0d3ba9-3063-4100-99aa-a637b6baa361"
    },
    "status": "ok",
    "message": "Cable tray fill",
    "success": true
}