Skip to content
GET /v1/container

Units per container

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/freight-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest 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
}