GET /vessel/track

Track a vessel

Live AIS position, speed and heading for a vessel by IMO or MMSI.

A vessel's latest AIS position. Pure lookup — never consumes a slot. Both imo and mmsi are required. EXTERNAL: this calls a third-party provider, so budget seconds, not milliseconds. Answers are cached for 5 minutes — a repeat of the same imo/mmsi returns cached: true with no upstream call, and costs nothing. Only successes are cached. Shares a per-plan DAILY lookup allowance with /voyage/schedules; see the 429 below.

Request

GET https://traqocontainer.com/api/v1/vessel/track

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.

Parameters

NameInTypeRequiredDescription
imoquerystringYes

IMO number: exactly 7 digits.

mmsiquerystringYes

MMSI number: exactly 9 digits.

Example request

curl "https://traqocontainer.com/api/v1/vessel/track?imo=9811000&mmsi=636022327" \
  -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/vessel/track with a schema-identical reply.

Responses

Example 200 body:

{
  "success": true,
  "data": {
    "lat": 18.416247,
    "lon": -17.618743,
    "speed": 16.5,
    "draught": 9.4,
    "navigation_status": "Underway using engine",
    "course_over_ground": 3.4,
    "true_heading": 5,
    "timestamp": "2026-05-25T10:45:20",
    "origin_port": "Dakar, Senegal",
    "origin_locode": "SNDKR",
    "atd": "2026-05-20T08:00:00",
    "destination_port": "TANGER-MEDITERRANEAN, MA",
    "destination_locode": "MATAN",
    "eta": "2026-05-30T00:01:00"
  }
}
StatusMeaning
200

Vessel position

400

Bad request — check required parameters.

401

Invalid or missing API key.

403

Developer mode not enabled, or the feature is not on your plan.

404

Resource not found.

429

Two separate limits produce a 429 here, and the body says which. rate_limit_exceeded is the shared per-minute API limit (X-RateLimit-*). lookup_limit_exceeded is the per-plan DAILY allowance these two endpoints SHARE (X-Lookup-Limit / X-Lookup-Remaining / X-Lookup-Reset), because each one reaches an external provider. Both send Retry-After and a resetAt timestamp; the daily window is a rolling 24 hours from your first lookup, not midnight. A repeat query served from cache never counts against it.

502

We could not reach the carrier AND hold nothing for this reference — the last resort, not the usual answer. data.error is carrier_unavailable (that SCAC is failing; data.carrier names it) or upstream_unavailable (live tracking as a whole, not one carrier). Retry-After gives the delay in seconds, derived from how many times that carrier has failed in a row: 30, then 120, then 300, capped at 600. When we DO hold a document you get 200 with stale: true instead, and a first lookup during an outage gets 202. A request never hangs waiting for this: we spend at most 8 seconds starting carrier attempts and then answer with what we have.

Error bodies and retry advice: Errors.