/v1/container
Units per container
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}