Vai al contenuto
GET /v1/container

Units per container

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/freight-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Axis-aligned stacking (no rotation): units fit along each axis, capped by the payload. Volume utilisation shows the unused cube — palletised or rotated loads may fit more.",
        "inputs": {
            "item_width": 40,
            "item_height": 48,
            "item_length": 48,
            "item_weight": 960,
            "max_payload": 58000,
            "container_width": 92.5,
            "container_height": 102,
            "container_length": 472
        },
        "total_weight": 34560,
        "units_loadable": 36,
        "limiting_factor": "volume",
        "units_by_volume": 36,
        "units_by_weight": 60,
        "volume_utilization_percent": 74.5008
    },
    "meta": {
        "timestamp": "2026-06-05T21:48:47.382Z",
        "request_id": "bfc5d266-3a2c-4359-85fb-0ae911a069ae"
    },
    "status": "ok",
    "message": "Container loading",
    "success": true
}