Home

Vessel Schedules API

version 1

API for port-to-port sailing schedules. Returns every carrier sailing between two ports for up to 8 weeks ahead, with vessel, voyage, terminals, transshipments and cutoffs. It also looks up a vessel and its port calls for up to 8 weeks ahead, a port and the calls of every vessel there for the next 7 days, and a carrier and the routes it runs; a search finds ports, vessels and carriers by the start of their name or code.

OpenAPI Specification

Get started with your API integration in just a few minutes. The OpenAPI specification provides a complete overview of all available endpoints, request parameters, authentication methods, and response formats, allowing you to easily explore, test, and interact with the API.

General information

Vessel Schedules API is organized around REST.
The API uses predictable resource-based URLs, accepts query string parameters, returns responses in JSON format, and relies on standard HTTP methods, status codes, and authentication mechanisms.

API endpoint#

1https://api.qubictron.com/vessel-schedules/v1

All endpoints are only accessible via HTTPS and are located at api.qubictron.com

Authentication#

Every request needs your API key in the x-api-key header. Send the header name in lowercase: other spellings are treated as a missing key and rejected with HTTP 401 INVALID_API_KEY. Get a key in your Qubictron account.

1x-api-key: YOUR_API_KEY

Requests#

  • GET /port-to-port — every carrier sailing between two ports for up to 8 weeks ahead, with vessel, voyage, terminals, transshipments and cutoffs.
  • GET /search — ports, vessels or carriers whose name or code starts with the query: UN/LOCODE, IMO number, call sign or SCAC.
  • GET /vessel — a vessel and its port calls for up to 8 weeks ahead, by IMO number.
  • GET /port — a port with its terminals and the calls of every vessel there for the next 7 days.
  • GET /carrier — a carrier and every route (service) it runs, with the ports of each rotation.

The vessel, port and carrier lookups return the source's full items: the keys listed in the schemas are the common ones, others may be present. The port and carrier answers can be large.

Freshness#

Schedules are refreshed regularly. metadata.updated_at says when the data was taken, metadata.cache_expires until when it is considered fresh. If the schedule source is temporarily unavailable, the last known answer is returned; such an answer has cache_expires in the past.

Times#

All sailing times and cutoffs are port-local ISO 8601, with the port's UTC offset when the source gives it (2026-10-11T00:00:00+08:00). Some sources give dates only: etd and eta are midnight of the day without an offset (2026-11-16T00:00:00), and a cutoff is a port-local time without an offset (2026-11-13T18:00:00). From such a source etd_planned, eta_planned, mmsi and the si, vgm and booking cutoffs are null. Metadata times are UTC.

Errors#

Always read success and status_code from the response body; do not rely on the HTTP status alone. See HTTP Response Codes.

Sailings between two ports

get/port-to-port

Returns sailings departing from pol within the window [etd, etd + weeks * 7 days] (both days included), sorted by departure time. A sailing belongs to the day it departs in its own port's local time. The window cannot extend beyond 8 weeks from today; the window actually served is returned in data.period.

Headers

Content-Typeapplication/json

Query Parameters
  • polREQUIREDstring

    Port of loading, UN/LOCODE. Case-insensitive.

    Example:CNSHA

    Match pattern:^[A-Za-z]{2}[A-Za-z0-9]{3}$

  • podREQUIREDstring

    Port of discharge, UN/LOCODE. Case-insensitive; must differ from pol.

    Example:USLGB

    Match pattern:^[A-Za-z]{2}[A-Za-z0-9]{3}$

  • etdOptionalstring

    First departure day of the window. Default: today (UTC). A date in the past is treated as today; a date more than 8 weeks ahead returns OUT_OF_HORIZON.

    Example:2026-10-11

  • weeksOptionalinteger

    Window length in weeks.

    >= 1<= 8

    Default:4

  • carrierOptionalstring

    Only this carrier, by SCAC. Case-insensitive.

    Example:EGLV

    Match pattern:^[A-Za-z]{2,4}$

  • directOptionalboolean

    true — direct sailings only, false — sailings with transshipment only. Omit for both.

Response example

SUCCESS. Also returned when no sailings match (sailings is empty) and when the last known schedule is served because the source is unavailable (cache_expires in the past).

1{
2  "success": true,
3  "status_code": "SUCCESS",
4  "metadata": {
5    "updated_at": "2026-11-04T09:12:41Z",
6    "cache_expires": "2026-11-04T21:12:41Z"
7  },
8  "data": {
9    "lane": {
10      "pol": "CNSHA",
11      "pod": "USLGB"
12    },
13    "period": {
14      "from": "2026-11-10",
15      "to": "2026-11-17"
16    },
17    "sailings": [
18      {
19        "carrier": {
20          "scac": "COSU",
21          "name": "COSCO",
22          "short_name": "COSCO"
23        },
24        "service": "AAC4",
25        "vessel": {
26          "name": "OOCL IRIS",
27          "imo": "9949766",
28          "mmsi": null
29        },
30        "voyage": "010E",
31        "pol": {
32          "code": "CNSHA",
33          "name": "Shanghai",
34          "terminal": "Shanghai Shengdong International Cont Terminal Ltd",
35          "etd": "2026-11-10T00:00:00",
36          "etd_planned": null
37        },
38        "pod": {
39          "code": "USLGB",
40          "name": "Long Beach",
41          "terminal": "Long Beach Container Terminal",
42          "eta": "2026-11-21T00:00:00",
43          "eta_planned": null
44        },
45        "transit_days": 11,
46        "direct": true,
47        "transshipments": [],
48        "cutoffs": {
49          "cy": "2026-11-07T18:00:00",
50          "si": null,
51          "vgm": null,
52          "booking": null
53        },
54        "shared_with": [
55          {
56            "scac": "EGLV",
57            "service": "PCC1"
58          }
59        ],
60        "details": {
61          "service_name": "ASIA US SOUTHWEST COAST SERVICE (AAC4)",
62          "distance": 5776,
63          "pol": {
64            "country": {
65              "id": "CN",
66              "name": "China"
67            },
68            "region": {
69              "id": 5864,
70              "code": "SH",
71              "name": "Shanghai Shi",
72              "country_id": "CN"
73            },
74            "latlong": [
75              31.1978,
76              121.3344
77            ],
78            "terminals": [
79              {
80                "name": "Shanghai Shengdong International Cont Terminal Ltd",
81                "code": "SHENG",
82                "firms": null
83              }
84            ]
85          },
86          "pod": {
87            "country": {
88              "id": "US",
89              "name": "United States"
90            },
91            "region": {
92              "id": 916,
93              "code": "CA",
94              "name": "California",
95              "country_id": "US"
96            },
97            "latlong": [
98              33.7667,
99              -118.1833
100            ],
101            "terminals": [
102              {
103                "name": "Long Beach Container Terminal",
104                "code": null,
105                "firms": "WAC8"
106              }
107            ]
108          },
109          "legs": [
110            {
111              "from": "CNSHA",
112              "to": "USLGB",
113              "service": {
114                "code": "AAC4",
115                "name": "ASIA US SOUTHWEST COAST SERVICE (AAC4)"
116              },
117              "vessel": {
118                "imo": "9949766",
119                "name": "OOCL IRIS"
120              },
121              "voyage": "010E",
122              "distance": {
123                "miles": 5776,
124                "waypoint": null
125              },
126              "cutoff": "2026-11-07T18:00:00"
127            }
128          ]
129        }
130      },
131      {
132        "carrier": {
133          "scac": "YMJA",
134          "name": "Yang Ming",
135          "short_name": "Yang Ming"
136        },
137        "service": "EC4",
138        "vessel": {
139          "name": "EVER LOYAL",
140          "imo": "9604158",
141          "mmsi": null
142        },
143        "voyage": "079E",
144        "pol": {
145          "code": "CNSHA",
146          "name": "Shanghai",
147          "terminal": "SIPGSD / Shanghai Zhendong Container Terminal",
148          "etd": "2026-11-13T00:00:00",
149          "etd_planned": null
150        },
151        "pod": {
152          "code": "USLGB",
153          "name": "Long Beach",
154          "terminal": "ITS Long Beach Container Terminal",
155          "eta": "2026-11-30T00:00:00",
156          "eta_planned": null
157        },
158        "transit_days": 17,
159        "direct": false,
160        "transshipments": [
161          {
162            "port": {
163              "code": "KRPUS",
164              "name": "Busan"
165            },
166            "terminal": "Busan West Container / Hyundai Busan New Port Container Terminal",
167            "mode": null,
168            "service": "MS2",
169            "vessel": {
170              "name": "ONE FRIENDSHIP",
171              "imo": "9934369",
172              "mmsi": null
173            },
174            "voyage": "013E",
175            "eta": "2026-11-15T00:00:00",
176            "etd": "2026-11-18T00:00:00"
177          }
178        ],
179        "cutoffs": {
180          "cy": null,
181          "si": null,
182          "vgm": null,
183          "booking": null
184        },
185        "shared_with": [],
186        "details": {
187          "service_name": "NORTH AMERICA EAST COAST LOOP 4",
188          "distance": null,
189          "pol": {
190            "country": {
191              "id": "CN",
192              "name": "China"
193            },
194            "region": {
195              "id": 5864,
196              "code": "SH",
197              "name": "Shanghai Shi",
198              "country_id": "CN"
199            },
200            "latlong": [
201              31.1978,
202              121.3344
203            ],
204            "terminals": [
205              {
206                "name": "SIPGSD",
207                "code": "SIPGSD",
208                "firms": null
209              },
210              {
211                "name": "Shanghai Zhendong Container Terminal",
212                "code": "WAIG",
213                "firms": null
214              }
215            ]
216          },
217          "pod": {
218            "country": {
219              "id": "US",
220              "name": "United States"
221            },
222            "region": {
223              "id": 916,
224              "code": "CA",
225              "name": "California",
226              "country_id": "US"
227            },
228            "latlong": [
229              33.7667,
230              -118.1833
231            ],
232            "terminals": [
233              {
234                "name": "ITS Long Beach Container Terminal",
235                "code": "ITS",
236                "firms": "Y309"
237              }
238            ]
239          },
240          "legs": [
241            {
242              "from": "CNSHA",
243              "to": "KRPUS",
244              "service": {
245                "code": "EC4",
246                "name": "NORTH AMERICA EAST COAST LOOP 4"
247              },
248              "vessel": {
249                "imo": "9604158",
250                "name": "EVER LOYAL"
251              },
252              "voyage": "079E",
253              "distance": null,
254              "cutoff": null
255            },
256            {
257              "from": "KRPUS",
258              "to": "USLGB",
259              "service": {
260                "code": "MS2",
261                "name": "MEDITERRANEAN PACIFIC SOUTH 2"
262              },
263              "vessel": {
264                "imo": "9934369",
265                "name": "ONE FRIENDSHIP"
266              },
267              "voyage": "013E",
268              "distance": null,
269              "cutoff": null
270            }
271          ]
272        }
273      }
274    ]
275  }
276}

Find a port, a vessel or a carrier

get/search

Returns the ports, vessels or carriers whose name or code starts with q, ordered by name. A vessel is also found by the start of its call sign. The lists come from the schedule source and are refreshed regularly; metadata.updated_at says when they were taken. The answer carries the source's full item; the keys listed in the schema are the common ones, others may be present.

Headers

Content-Typeapplication/json

Query Parameters
  • typeREQUIREDstring

    What to look for.

    Allowed values:portvesselcarrier

    Example:port

  • qREQUIREDstring

    The start of a name or code, case-insensitive; a port's UN/LOCODE, a vessel's IMO or call sign, a carrier's SCAC. Spaces around it are ignored.

    Example:shan

  • limitOptionalinteger

    Most items to return.

    >= 1<= 50

    Default:20

Response example

SUCCESS. items is empty when nothing matches. When the lists are overdue for a refresh the last known ones are served, with cache_expires in the past.

1{
2  "success": true,
3  "status_code": "SUCCESS",
4  "metadata": {
5    "updated_at": "2026-11-10T09:00:00Z",
6    "cache_expires": "2026-12-10T09:00:00Z"
7  },
8  "data": {
9    "type": "port",
10    "query": "shan",
11    "items": [
12      {
13        "code": "CNSHA",
14        "name": "Shanghai",
15        "country": {
16          "name": "China"
17        },
18        "region": {
19          "code": "SH",
20          "name": "Shanghai Shi",
21          "country_id": "CN"
22        },
23        "latlong": [
24          31.1978,
25          121.3344
26        ],
27        "terminals": [
28          {
29            "name": "SIPGSD",
30            "code": "SIPGSD"
31          },
32          {
33            "name": "Shanghai Shengdong International Cont Terminal Ltd",
34            "code": "SHENG"
35          }
36        ]
37      }
38    ]
39  }
40}

A vessel and its port calls

get/vessel

Returns the vessel's card and its port calls with an arrival (eta) from today up to 8 weeks ahead, sorted by eta. The port calls are refreshed regularly; the window actually served is data.period, and an answer taken yesterday ends one day earlier than one taken today. The source lists a port call once for every carrier that sells the vessel, each with its own voyage, route and dates: one stop of the ship can appear several times. All rows are returned as the source gives them. The answer carries the source's full items; the keys listed in the schemas are the common ones, others may be present. eta_time and etd_time are HH:MM when the source knows them, else null; the source does not say in which time zone.

Headers

Content-Typeapplication/json

Query Parameters
  • imoREQUIREDstring

    The vessel's IMO number, seven digits.

    Example:9516404

    Match pattern:^[0-9]{7}$

Response example

SUCCESS. port_calls is empty when the vessel has none in the window. vessel is null when the vessel is not in our list but has port calls. When the source is unavailable, the last known answer is served, with cache_expires in the past.

1{
2  "success": true,
3  "status_code": "SUCCESS",
4  "metadata": {
5    "updated_at": "2026-11-10T09:00:00Z",
6    "cache_expires": "2026-11-11T09:00:00Z"
7  },
8  "data": {
9    "vessel": {
10      "imo": "9516404",
11      "name": "COSCO BELGIUM",
12      "carrier": {
13        "scac": "COSU",
14        "name": "COSCO",
15        "short_name": "COSCO"
16      }
17    },
18    "period": {
19      "from": "2026-11-10",
20      "to": "2027-01-05"
21    },
22    "port_calls": [
23      {
24        "schedule_id": 28602787,
25        "schedule_index": 1,
26        "last_update": "2026-11-09T10:17:15",
27        "eta": "2026-11-11",
28        "etd": "2026-11-13",
29        "eta_time": "16:00",
30        "etd_time": "08:00",
31        "voyage": "HIX0G0E19",
32        "carrier": {
33          "scac": "CMDU",
34          "name": "CMA CGM",
35          "short_name": "CMA CGM"
36        },
37        "route": {
38          "code": "HIXP",
39          "name": "HIBISCUS EXPRESS"
40        },
41        "vessel": {
42          "imo": "9516404",
43          "name": "COSCO BELGIUM"
44        },
45        "port": {
46          "code": "CNNGB",
47          "name": "Ningbo",
48          "country": {
49            "name": "China"
50          },
51          "region": {
52            "code": "ZJ",
53            "name": "Zhejiang Sheng",
54            "country_id": "CN"
55          },
56          "latlong": [
57            29.8261,
58            121.4583
59          ],
60          "terminals": [
61            {
62              "name": "Beilun Phase 3 Container Terminal",
63              "code": "BLTCT"
64            }
65          ]
66        }
67      }
68    ]
69  }
70}

A port and the vessel calls there

get/port

Returns the port's card and the calls of every vessel at the port with an arrival (eta) from today up to 7 days ahead, sorted by eta. A busy port has about 200 calls a day, so the answer can be large. The port calls are refreshed regularly; the window actually served is data.period, and an answer taken yesterday ends one day earlier than one taken today. As on the vessel lookup, the source lists a call once for every carrier that sells the vessel, each with its own voyage, route and dates; all rows are returned as the source gives them. The answer carries the source's full items; the keys listed in the schemas are the common ones, others may be present. The port inside a call has no terminals: they are in data.port. Codes clients use for a port the source does not know are answered under the code it knows: CNSHG and CNSGH as CNSHA, CNNBO as CNNGB.

Headers

Content-Typeapplication/json

Query Parameters
  • codeREQUIREDstring

    Port, UN/LOCODE. Case-insensitive.

    Example:CNSHA

    Match pattern:^[A-Za-z]{2}[A-Za-z0-9]{3}$

  • carrierOptionalstring

    Only the calls of this carrier, by SCAC (the codes of the sailings). Case-insensitive.

    Example:MEDU

    Match pattern:^[A-Za-z]{2,4}$

Response example

SUCCESS. port_calls is empty when no call matches in the window or no call matches carrier. port is null when the port is not in our list but has calls. When the source is unavailable, the last known answer is served, with cache_expires in the past.

1{
2  "success": true,
3  "status_code": "SUCCESS",
4  "metadata": {
5    "updated_at": "2026-11-10T09:00:00Z",
6    "cache_expires": "2026-11-11T09:00:00Z"
7  },
8  "data": {
9    "port": {
10      "code": "CNSHA",
11      "name": "Shanghai",
12      "country": {
13        "name": "China"
14      },
15      "region": {
16        "code": "SH",
17        "name": "Shanghai Shi",
18        "country_id": "CN"
19      },
20      "latlong": [
21        31.1978,
22        121.3344
23      ],
24      "terminals": [
25        {
26          "name": "SIPGSD",
27          "code": "SIPGSD"
28        },
29        {
30          "name": "Shanghai East Container Terminal",
31          "code": "SECT"
32        }
33      ]
34    },
35    "period": {
36      "from": "2026-11-10",
37      "to": "2026-11-17"
38    },
39    "port_calls": [
40      {
41        "schedule_id": 28358741,
42        "schedule_index": 10,
43        "last_update": "2026-10-01T23:55:47",
44        "eta": "2026-11-10",
45        "etd": "2026-11-10",
46        "eta_time": "06:00",
47        "etd_time": null,
48        "voyage": "GN635W",
49        "carrier": {
50          "scac": "MEDU",
51          "name": "Mediterranean Shipping Company (MSC)",
52          "short_name": "MSC"
53        },
54        "route": {
55          "code": "LSXS",
56          "name": "LONE STAR EXPRESS SERVICE"
57        },
58        "vessel": {
59          "imo": "9286267",
60          "name": "MSC GREENWICH"
61        },
62        "port": {
63          "code": "CNSHA",
64          "name": "Shanghai",
65          "country": {
66            "name": "China"
67          },
68          "region": {
69            "code": "SH",
70            "name": "Shanghai Shi",
71            "country_id": "CN"
72          },
73          "latlong": [
74            31.1978,
75            121.3344
76          ]
77        }
78      },
79      {
80        "schedule_id": 28291127,
81        "schedule_index": 5,
82        "last_update": "2026-10-11T04:07:25",
83        "eta": "2026-11-10",
84        "etd": "2026-11-11",
85        "eta_time": "13:00",
86        "etd_time": "03:00",
87        "voyage": "007E",
88        "carrier": {
89          "scac": "ONEY",
90          "name": "Ocean Network Express (ONE)",
91          "short_name": "ONE"
92        },
93        "route": {
94          "code": "SX2",
95          "name": "SERVICE SX2"
96        },
97        "vessel": {
98          "imo": "9926245",
99          "name": "GREENHOUSE"
100        },
101        "port": {
102          "code": "CNSHA",
103          "name": "Shanghai",
104          "country": {
105            "name": "China"
106          },
107          "region": {
108            "code": "SH",
109            "name": "Shanghai Shi",
110            "country_id": "CN"
111          },
112          "latlong": [
113            31.1978,
114            121.3344
115          ]
116        }
117      }
118    ]
119  }
120}

A carrier and its routes

get/carrier

Returns the carrier's card and every route (service) it runs. A route lists its ports and its rotations: each rotation is one sub-route, the ports in visit order with the day of the call counted from the first port (day 0). A route has one or more rotations; the same port can appear twice in one. The routes are refreshed regularly; there is no date window. The answer carries the source's full items; the keys listed in the schemas are the common ones, others may be present. The answer can be large: all routes of a big carrier are returned (MSC: 333 routes, about 850 KB).

Headers

Content-Typeapplication/json

Query Parameters
  • scacREQUIREDstring

    The carrier's SCAC, 2 to 8 letters or digits. Case-insensitive. The codes of the sailings.

    Example:MEDU

    Match pattern:^[A-Za-z0-9]{2,8}$

Response example

SUCCESS. routes is empty when the carrier has none. carrier is null when the carrier is not in our list but has routes. When the source is unavailable, the last known answer is served, with cache_expires in the past.

1{
2  "success": true,
3  "status_code": "SUCCESS",
4  "metadata": {
5    "updated_at": "2026-11-10T09:00:00Z",
6    "cache_expires": "2026-11-11T09:00:00Z"
7  },
8  "data": {
9    "carrier": {
10      "scac": "MEDU",
11      "name": "Mediterranean Shipping Company (MSC)",
12      "short_name": "MSC",
13      "description": "Mediterranean Shipping Company",
14      "company": "Mediterranean Shipping Company, S.A.",
15      "city": "Geneva",
16      "country": {
17        "name": "Switzerland"
18      },
19      "website": "www.msc.com",
20      "kind": "deepsea",
21      "smdg": "MSC"
22    },
23    "routes": [
24      {
25        "code": "SAS",
26        "name": "SERVICIO ATLANTICO SUL",
27        "carrier": {
28          "scac": "MEDU",
29          "name": "Mediterranean Shipping Company (MSC)",
30          "short_name": "MSC"
31        },
32        "ports": [
33          {
34            "code": "BRRIG",
35            "name": "Rio Grande",
36            "country": {
37              "name": "Brazil"
38            },
39            "region": {
40              "code": "RS",
41              "name": "Rio Grande do Sul",
42              "country_id": "BR"
43            },
44            "latlong": [
45              -32.05,
46              -52.0833
47            ],
48            "terminals": [
49              {
50                "name": "TECON Container Terminal",
51                "code": "TECRG"
52              }
53            ]
54          },
55          {
56            "code": "BRNVT",
57            "name": "Navegantes",
58            "country": {
59              "name": "Brazil"
60            },
61            "region": {
62              "code": "SC",
63              "name": "Santa Catarina",
64              "country_id": "BR"
65            },
66            "latlong": [
67              -26.8833,
68              -48.6333
69            ],
70            "terminals": [
71              {
72                "name": "Portonave Container Terminal"
73              }
74            ]
75          }
76        ],
77        "rotations": [
78          [
79            {
80              "port": "BRRIG",
81              "day": 0
82            },
83            {
84              "port": "BRNVT",
85              "day": 2
86            },
87            {
88              "port": "BRSUA",
89              "day": 8
90            }
91          ]
92        ]
93      }
94    ]
95  }
96}

Qubictron 2026—Contact us