GET /ports/congestion

Congestion board

The current reading for every scored port, in one call.

The current congestion reading for every scored port in one call — score / bucket / tier, a 7-day trend, the vessels waiting at the port right now, and when each reading was computed. Readings are not all equally fresh: check computed_at. Reads Traqo analytics; never consumes a slot. Requires port-congestion on your organisation’s plan.

Deprecated: calls_30d carries the same value as vessels_waiting and is kept for one release. It was never a 30-day call volume — read vessels_waiting.

Request

GET https://traqocontainer.com/api/v1/ports/congestion

Authentication.

Your API key as a Bearer token: Authorization: Bearer YOUR_API_KEY.

Rate limit.Each API key gets 120 requests per minute by default; your key's own budget comes back in the X-RateLimit-* headers.Limits by plan.

Example request

curl "https://traqocontainer.com/api/v1/ports/congestion" \
  -H "Authorization: Bearer YOUR_API_KEY"

Run it in the sandbox — no key, no account: the same request answers at https://traqocontainer.com/api/v1/sandbox/ports/congestion with a schema-identical reply.

Responses

Example 200 body:

{
  "success": true,
  "total": 2,
  "data": [
    {
      "locode": "USLAX",
      "name": "Los Angeles",
      "country": "United States",
      "score": 71,
      "bucket": "high",
      "tier": "A",
      "trend_7d": 14,
      "vessels_waiting": 59,
      "calls_30d": 59,
      "computed_at": "2026-11-01T12:00:00.000Z",
      "lat": 33.73,
      "lng": -118.26
    },
    {
      "locode": "INNSA",
      "name": "Nhava Sheva",
      "country": "India",
      "score": 58,
      "bucket": "moderate",
      "tier": "A",
      "trend_7d": 9,
      "vessels_waiting": 63,
      "calls_30d": 63,
      "computed_at": "2026-11-01T12:00:00.000Z",
      "lat": 18.949,
      "lng": 72.951
    }
  ]
}
StatusMeaning
200

All scored ports

401

Invalid or missing API key.

403

Port congestion is unavailable. TWO different causes share this status and data.error distinguishes them: feature_disabled — switched off for the whole deployment, independent of your subscription — or plan_required — on, and your ORGANISATION’s plan is below the configured minimum (the message names it). A teammate is judged by the organisation’s plan, not their own. The sandbox does not reproduce this — it has no account to gate on and always answers 200.

429

Rate limit exceeded — see the Retry-After header. The body names the plan the limit was computed from (plan, always the ORGANISATION’s plan, not the row your key hangs off) and what would raise it: upgrade with next_plan and next_limit_per_min, or contactUrl when there is no plan above yours. Exactly one of the two is present.

Error bodies and retry advice: Errors.