Global Sailing Schedules API Technical Guide
Global Sailing Schedules API Technical Guide
Contents
Global Sailing Schedules API .............................................................................................................. 1
Document Purpose ................................................................................................................................. 2
Introduction ............................................................................................................................................... 2
Working with the GSS API.................................................................................................................... 2
Accessing Swagger UI ................................................................................................................................................2
Authentication ...................................................................................................................................................................3
Global Sailing Schedule Routes Request .......................................................................................................3
Global Sailing Schedule Routes Response ...................................................................................................5
API Call Limits .......................................................................................................................................... 9
Error Responses (v2) ............................................................................................................................. 9
Sample error response................................................................................................................................................9
Error Catalog ...................................................................................................................................................................10
Error Responses (v1) ............................................................................................................................ 12
Sample error response.............................................................................................................................................. 12
Error Catalog ................................................................................................................................................................... 12
Introduction
All CargoWise Global Sailing Schedules are now accessible via Web API. The service allows 3rd
party systems to connect, query and retrieve global sailing schedules (including routes, legs and
relevant details) in JSON format.
API v2 the error responses adopt the Problem Details model defined by RFC7807:
https://datatracker.ietf.org/doc/html/rfc7807
Accessing Swagger UI
Swagger UI is available to test API filter parameters, requests and responses.
Filter requires at least the following details: Origin, Destination and then either
Departure or Arrival date. Alternatively, a Vessel Name or a Vessel’s IMO Number.
curl
"https://gss.wisegrid.net/api/v1/routes/search?carrierCode=MAEU&loadPort=AUSYD&dischargePort=USCHI&etd
From=2020-01-25&etdTo=2020-02-25" --header 'Authorization: Basic <your API credentials>'
[
{
"Carrier": {
"Code": "MAEU",
"Name": "Maersk Line"
},
"Legs": [
{
"Voyage": {
"Code": "009N",
"Operator": {
"Code": "MAEU",
"Name": "Maersk Line"
},
"TradeLane": {
"Code": "OC1",
"Name": "OC1"
},
"Vessel": {
"ImoNumber": "9391660",
"CallSign": null,
"VesselName": "SPIRIT OF HAMBURG"
}
},
"LoadPort": {
"Unloco": "DEHAM",
"Name": "Hamburg"
},
"Etd": "2020-02-26T14:00:00",
"DischargePort": {
"Unloco": "PAMIT",
"Name": "Manzanillo"
},
"Eta": "2020-03-30T19:00:00",
"LegType": "SEA"
"DepartureReference": "BER0121"
"DepartureReferenceProvider": "DAK"
},
{
"Voyage": {
"Code": "015N",
"Operator": {
"Code": "MAEU",
"Name": "Maersk Line"
• Vessel CallSign is currently not supported and will always return NULL
• ETA/ETD contains both date and time information however for some carriers
this can be date only with the time displayed as 00:00
• API provides details about upcoming sailings. While past schedules can be
accessed, these might not be accurate anymore
Below is an example of the response header indicating limits and remaining number of calls:
{
"Content-Length": "230",
"Content-Type": "application/json; charset=utf-8",
"Date": "Fri, 24 Jan 2020 04:41:44 GMT",
"X-Rate-Limit-Limit": "20",
"X-Rate-Limit-Period": "1m",
"X-Rate-Limit-Remaining": "3",
"X-Rate-Limit-Reset": "2020-01-24T04:42:39Z"
}
Exceeding this limit would result in the following error with the number of seconds till the limit is
reset:
{
"Content-Length": "58",
"Content-Type": "application/json; charset=utf-8",
"Date": "Fri, 24 Jan 2020 04:44:41 GMT",
"Retry-After": "57"
}
500 - Server is taking too long to respond. Try again later, use
different parameters or contact administrator if problems
persist.
Name
String Error message unique code
Error Catalog
400 EmptyFilter Filter is empty. Must contain Load Port, Discharge Port and
one of the ETA or ETD. Alternatively Voyage Number and
either Vessel Name or IMO Number.
400 InvalidImoNumber Vessel IMO Number is not 7 digits in length or the check
digit is incorrect.
429 CallQuotaExceeded API calls quota exceeded. Maximum 20 calls per Minute.
500 ServerTimeout Server is taking too long to respond. Try again later, use
different parameters or contact administrator if problems
persist.