TrackingMCP Events API
The Events API from TrackingMCP — 1 operation(s) for events.
The Events API from TrackingMCP — 1 operation(s) for events.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/trackingmcp-com:trackingmcp-com-events-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TrackingMCP REST Events API
version: 1.0.0
description: 'DCSA-aligned ocean container tracking across 227 carriers. Every lookup is cross-checked against 2–4 independent sources (110 direct carrier connectors, fallback providers with automatic failover, 4 fused AIS networks, and sailing schedules). Authenticated endpoints take `Authorization: Bearer ` — create a key at https://trackingmcp.com after signing up (free tier: 5 containers, no card; MCP usage is paid in Navo Tokens). AI agents can use the hosted MCP server at https://mcp.trackingmcp.com/mcp instead (registry name io.github.lxxmng/container-tracking).'
contact:
name: TrackingMCP
url: https://trackingmcp.com
email: hello@trackingmcp.com
servers:
- url: https://api.trackingmcp.com
security:
- bearerAuth: []
tags:
- name: Events
paths:
/v2/events:
get:
operationId: listDcsaEvents
summary: DCSA Track & Trace 2.2 event feed
description: 'Standards-aligned event feed (DCSA T&T 2.2.0). Returns a bare JSON array of event objects for the containers on your account, newest first. Filter with the DCSA query parameters. IMPORTANT — two fields customers ask about:
1. `emptyIndicatorCode` is present ONLY on EQUIPMENT events and ONLY when the carrier reported the fill state. Per DCSA it is a required `EMPTY | LADEN` enum with no ''unknown'' member, so rather than fabricate a value we OMIT the field when the line didn''t report it (most equipment events). Do NOT rely on it as your end-of-shipment trigger — many carriers (e.g. MSC) never stamp it on the empty return. Where the carrier described the move only in words (''Empty received at CY''), we now infer `EMPTY` from that phrase, but coverage is still partial.
2. There is NO container-level status in this feed — it is events only. `delivered` / `returned_empty` are CONTAINER statuses, not events; read them from `GET /v1/containers/{id}` (the `status` field). To detect end-of-shipment, poll the container status: `delivered` = laden box handed to the consignee at the destination port; `returned_empty` = the empty box was returned to the depot (the true, terminal end of shipment, which happens AFTER `delivered`).'
parameters:
- name: equipmentReference
in: query
required: false
description: Filter to a single container number (e.g. MSCU1234567).
schema:
type: string
- name: eventType
in: query
required: false
description: DCSA event type filter.
schema:
type: string
enum:
- SHIPMENT
- TRANSPORT
- EQUIPMENT
- name: limit
in: query
required: false
schema:
type: integer
default: 100
minimum: 1
maximum: 100
responses:
'200':
description: DCSA event array (the `API-Version` response header reports the T&T version, e.g. 2.2.0).
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/DcsaEvent'
'400':
description: The request is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/DcsaError'
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/DcsaError'
'403':
description: The caller is not allowed to make this call.
content:
application/json:
schema:
$ref: '#/components/schemas/DcsaError'
'429':
description: Too many requests.
content:
application/json:
schema:
$ref: '#/components/schemas/DcsaError'
'500':
description: Unexpected error on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/DcsaError'
'503':
description: A dependency is temporarily unavailable. Retry shortly.
content:
application/json:
schema:
$ref: '#/components/schemas/DcsaError'
'504':
description: The answer was not ready before the request deadline. Retry shortly.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
tags:
- Events
components:
schemas:
ErrorEnvelope:
type: object
properties:
ok:
type: boolean
const: false
error:
type: object
properties:
code:
type: string
description: Machine readable error code.
message:
type: string
description: Human readable explanation.
severity:
type: string
description: How serious the error is.
enum:
- info
- warning
- error
retryable:
type: boolean
description: True.
reference:
type: string
description: The reference.
retry_after_seconds:
type: integer
description: Seconds to wait.
fields:
type: array
items:
type: string
description: Field path.
description: Offending fields. Present on schema and reference pair errors.
user_message:
type: string
description: CONTAINER_QUOTA_EXCEEDED only.
credits_required:
type:
- integer
- 'null'
description: Tokens this request needs.
credits_balance:
type:
- integer
- 'null'
description: Tokens the wallet holds.
top_up_url:
type: string
description: Where to top up.
format: uri
packages:
type: array
items:
type: object
properties:
plan:
type: string
description: Plan key.
credits:
type: integer
description: Tokens per month.
usd:
type: number
description: Monthly price in USD.
description: Plans on offer.
reason:
type: string
description: CARRIER_NOT_IDENTIFIED only.
waited_seconds:
type: integer
description: CARRIER_NOT_IDENTIFIED, timed out only.
retry_with:
type: string
const: carrier_code
member_limit:
type:
- integer
- 'null'
description: The member cycle limit.
member_spent:
type:
- integer
- 'null'
description: Tokens the member has used this cycle.
member_remaining:
type:
- integer
- 'null'
description: Tokens left for the member.
retry_after:
type: integer
description: Seconds until the next refresh is allowed.
request_id:
type: string
format: uuid
requested:
type:
- string
- 'null'
supported_versions:
type: array
items:
type: string
oldest_supported:
type: string
latest:
type: string
docs:
type: string
progress:
type: object
properties:
carrier_code:
type: string
carrier_name:
type:
- string
- 'null'
carrier_identified:
type: boolean
enum:
- true
registered_at:
type:
- string
- 'null'
format: date-time
last_checked_at:
type:
- string
- 'null'
format: date-time
next_check_after_seconds:
type: integer
enum:
- 60
unresolved_reason:
type: string
outcome:
type: string
enum:
- SEALINE_HASNT_PROVIDE_INFO
- NO_EVENTS
- WRONG_NUMBER
- REFERENCE_REQUIRED
- LINE_NOT_SUPPORTED
- PENDING
- UNRESOLVED
outcome_class:
type: string
sealine_status:
type:
- string
- 'null'
previous_trip:
type:
- object
- 'null'
description: The trip before yours for this box, when the line still reports it. Null when there is none.
properties:
line:
type:
- string
- 'null'
description: The line that answered, as its SCAC.
last_event:
type: object
properties:
code:
type:
- string
- 'null'
description:
type:
- string
- 'null'
location:
type:
- string
- 'null'
unlocode:
type:
- string
- 'null'
datetime:
type:
- string
- 'null'
format: date-time
events:
type: array
items:
type: object
properties:
code:
type:
- string
- 'null'
description:
type:
- string
- 'null'
location:
type:
- string
- 'null'
unlocode:
type:
- string
- 'null'
datetime:
type:
- string
- 'null'
format: date-time
ended_at:
type:
- string
- 'null'
format: date-time
lessor_note:
type:
- string
- 'null'
description: A note for leasing-company accounts when no line holds the box yet. Null otherwise.
identified_line:
type:
- string
- 'null'
identified_party:
type:
- string
- 'null'
identified_party_role:
type:
- string
- 'null'
enum:
- current_lessee
- null
required_reference_types:
type:
- array
- 'null'
items:
type: string
enum:
- bill_of_lading
- booking
connector_status:
type:
- string
- 'null'
enum:
- in_progress
- not_supported
- connected
- reference_required
- null
notification_interest_available:
type: boolean
carrier_notice:
type: object
nullable: true
description: Latest reference-specific reply from the named carrier. SHIPMENT_CANCELLED is an explicit matched Maersk cancellation, independent of retained movement history. no_longer_available is Swire stating it no longer serves tracking details for this shipment, or Hapag-Lloyd refusing a number it answered before (the record keeps the line's last data; refused_since and data_as_of date the two). ZIM notices clear after useful tracking, the Hapag-Lloyd one when the line answers the number again.
properties:
carrier_code:
type: string
enum:
- ZIMU
- MAEU
- CHVW
- HLCU
reference:
type: string
reference_type:
type: string
enum:
- container
- bl
- booking
status:
type: string
enum:
- other_carrier
- temporarily_unavailable
- not_found
- invalid_reference
- SHIPMENT_CANCELLED
- no_longer_available
message:
type: string
checked_at:
type: string
format: date-time
suggested_carrier:
type: string
nullable: true
suggested_url:
type: string
nullable: true
format: uri
refused_since:
type: string
format: date-time
description: 'Hapag-Lloyd only: when the line first refused the number after its last answer.'
data_as_of:
type: string
format: date-time
nullable: true
description: 'Hapag-Lloyd only: the line''s last answer about this number, null when none is on record.'
api_version:
type: string
description: The response contract this build answers, as a date (YYYY-MM-DD). Added to every JSON object body on /v1.
carrier_hint_applied:
type: boolean
const: false
description: Present when the line named was not used.
carrier_hint_code:
type: string
description: Known line that cannot be asked.
upgrade:
type:
- object
- 'null'
description: CONTAINER_QUOTA_EXCEEDED only.
properties:
plan:
type: string
description: Next plan.
monthly_eur:
type:
- number
- 'null'
description: Monthly price.
annual_eur:
type:
- number
- 'null'
description: Annual price.
warning:
type: string
description: Why the line named was not used.
data:
type: object
properties:
id:
type: string
description: Existing record id.
archived_at:
type:
- string
- 'null'
format: date-time
description: When tracking stopped.
archived_reason:
type:
- string
- 'null'
description: Null when your account archived it, otherwise the reason our archiver closed it.
resume:
type: object
properties:
method:
type: string
const: POST
path:
type: string
const: /v1/containers
body:
type: object
properties:
identifier:
type: string
description: The reference to add again.
description: Present only when the reference was already tracked.
DcsaError:
type: object
properties:
httpMethod:
type: string
description: Request method.
requestUri:
type: string
description: Full request URL.
statusCode:
type: integer
description: HTTP status.
statusCodeText:
type: string
description: Reason phrase.
errorDateTime:
type: string
format: date-time
description: When the error was produced.
errors:
type: array
items:
type: object
properties:
errorCode:
type: integer
description: 7003 below 500, 9000 from 500.
field:
type: string
description: Offending query parameter, when one.
value:
type: string
description: Its value.
reason:
type: string
description: Machine readable reason.
enum:
- invalidHeader
- invalidQuery
- unauthorized
- tooManyRequests
- forbidden
- accessExpired
- providerError
- serviceUnavailable
message:
type: string
description: Explanation.
DcsaEvent:
type: object
description: A DCSA Track & Trace 2.2 event. Common fields plus a per-type block (SHIPMENT / TRANSPORT / EQUIPMENT). Null/absent fields are omitted from the payload rather than sent as null.
properties:
eventID:
type: string
format: uuid
eventCreatedDateTime:
type: string
format: date-time
eventType:
type: string
enum:
- SHIPMENT
- TRANSPORT
- EQUIPMENT
eventClassifierCode:
type: string
enum:
- ACT
- PLN
- EST
description: ACT = actual (happened), EST = estimated, PLN = planned. Never assume a PLN/EST move has occurred.
eventDateTime:
type: string
format: date-time
equipmentEventTypeCode:
type: string
description: EQUIPMENT events only. E.g. GTOT (gate-out), GTIN (gate-in), LOAD, DISC, PICK, DROP.
enum:
- LOAD
- DISC
- GTIN
- GTOT
- STUF
- STRP
- PICK
- DROP
- INSP
- RSEA
- RMVD
emptyIndicatorCode:
type: string
enum:
- EMPTY
- LADEN
description: EQUIPMENT events only. Present ONLY when the carrier reported the fill state (a minority of events). Absent when not reported — DCSA has no 'unknown' value and we do not fabricate one. Not a reliable end-of-shipment signal; use the container `status` field instead.
emptyIndicatorSource:
type: string
enum:
- carrier
- not_reported
description: Extension, EQUIPMENT events only. carrier when the line reported emptyIndicatorCode, not_reported when it did not (emptyIndicatorCode is then absent). We never fill the gap ourselves.
equipmentReference:
type: string
description: Container number.
ISOEquipmentCode:
type:
- string
- 'null'
transportEventTypeCode:
type: string
description: TRANSPORT events only. E.g. ARRI (arrival), DEPA (departure).
enum:
- ARRI
- DEPA
shipmentEventTypeCode:
type:
- string
- 'null'
description: SHIPMENT events only.
transportCall:
type:
- object
- 'null'
properties:
transportCallID:
type: string
description: Identifier of the call.
modeOfTransport:
type: string
description: Mode of transport, for example VESSEL, RAIL, TRUCK, BARGE.
facilityTypeCode:
type: string
description: Facility type code.
carrierVoyageNumber:
type: string
description: Voyage number of the line.
exportVoyageNumber:
type: string
description: Export voyage number; falls back to carrierVoyageNumber.
importVoyageNumber:
type: string
description: Import voyage number.
carrierServiceCode:
type: string
description: Service code of the line.
UNLocationCode:
type: string
description: UN/LOCODE of the call.
facilityCode:
type: string
description: Facility code.
facilityCodeListProvider:
type: string
description: Code list of facilityCode.
location:
type: object
properties:
locationName:
type: string
description: Name of the place.
UNLocationCode:
type: string
description: UN/LOCODE of the place.
facilityCode:
type: string
description: Facility code.
facilityCodeListProvider:
type: string
description: Code list of facilityCode.
latitude:
type: string
description: Latitude as a string.
longitude:
type: string
description: Longitude as a string.
description: Where the event took place. Empty keys are omitted.
vessel:
type: string
description: Vessel name (a string, not an object).
vesselIMONumber:
type: string
description: IMO number of the vessel.
description: Location / vessel / voyage of the call.
documentID:
type: string
description: 'SHIPMENT events only: document the event is about.'
documentTypeCode:
type: string
description: SHIPMENT events only.
reason:
type: string
description: SHIPMENT events only.
delayReasonCode:
type: string
description: TRANSPORT events only.
changeRemark:
type: string
description: TRANSPORT events only.
eventLocation:
type: object
properties:
locationName:
type: string
description: Name of the place.
UNLocationCode:
type: string
description: UN/LOCODE of the place.
facilityCode:
type: string
description: Facility code.
facilityCodeListProvider:
type: string
description: Code list of facilityCode.
latitude:
type: string
description: Latitude as a string.
longitude:
type: string
description: Longitude as a string.
description: Where the event took place. Empty keys are omitted.
documentReferences:
type: array
items:
type: object
properties:
documentReferenceType:
type: string
description: Type of the reference.
documentReferenceValue:
type: string
description: The reference.
references:
type: array
items:
type: object
additionalProperties:
type: string
seals:
type: array
items:
type: object
additionalProperties:
type: string
trackingMcpSource:
type: object
properties:
provider:
type: string
const: trackingmcp
description: Always trackingmcp.
normalisationConfidence:
type: string
description: Confidence of the normalisation, UNKNOWN when not recorded, INFERRED on events expanded for a child container.
rawEventCode:
type: string
description: The original event code or wording.
carrierStatusText:
type: string
description: The status wording of the line, verbatim, when stated.
required:
- eventID
- eventType
- eventClassifierCode
- eventDateTime
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: TrackingMCP API key (or a session JWT). Create keys in the dashboard — https://trackingmcp.com/developers.