home

[GET] /port-insight/next-calling/terminals

This API returns port call volume data based on the port’s terminals.
  Go to Swagger Documentation

Authentication

The Port Next Calling API uses Basic Authorization on Swagger UI.
Authentication Steps
1.
Click the [Authorize] button in the top right corner.
2.
Enter the provided username and password in the pop-up window.
3.
Click [Authorize] again to proceed with authentication.
4.
After successful login, click [Close] to close the window.
All API requests from Swagger UI will automatically include the authorization token.

Request Information

Request URL

Request URL : [GET] https://insight.seavantage.com/api/port-insight/next-calling/terminals

Execution Steps

1.
In the Swagger Documentation, select Port Insight from the Select a definition menu at the top right.
2.
Navigate to the /port-insight/next-calling/terminals endpoint.
3.
Click [Try it out] to activate input fields.
4.
Enter values according to the following request parameters:
portId (required)
The unique Port ID issued by SeaVantage.
Can be obtained through the [GET] /port API
from (required)
Start date and time of query (in UTC)
Example: 2025-01-01T00:00:00Z
to (required)
End date and time of query (in UTC)
Example: 2025-01-01T00:00:00Z
terminalIds (optional)
The unique terminal identifier (Terminal ID) issued by SeaVantage
Can be obtained through the [GET] /port/terminal API
Supports multiple entries
nextCallingNationCode (optional) : Filter by the nation code of the next port of call
nextCallingPortId (optional)
Filter by portId of the next port of call
Can be obtained through the [GET] /port API
5.
Click [Execute].
6.
View results in the response section.

Response Information

The response is returned in the following format, regardless of whether the request is successful or failed.

Response Examples (by Condition)

The response will vary depending on the parameters entered. Please refer to the examples below for each condition:
If only port and terminal information is entered → Returns vessel count and monthly volume at the country level
If the nationCode of the next port of call is entered → Returns vessel count and monthly volume at the port level
If both the nationCode and portId of the next port of call are entered → Returns vessel count and monthly volume at the terminal level
Entering portId + from + to
Based on the selected port → Returns vessel count and monthly volume at the country level
{ "code": 200, "message": "OK", "error": false, "timestamp": "2025-08-18T08:53:58.569647467", "response": [ { "key": "CN", "value": "China", "shipCount": 100, "volume": 7099721 } ] }
JavaScript
복사
Entering portId + from + to + terminalIds
Based on a specific terminal within the port → Returns vessel count and monthly volume at the country level
{ "code": 200, "message": "OK", "error": false, "timestamp": "2025-08-18T08:53:58.569647467", "response": [ { "key": "CN", "value": "China", "shipCount": 100, "volume": 7099721 } ] }
JavaScript
복사
Entering portId + from + to + nextCallingNationCode
Based on the selected port → Returns vessel count and monthly volume at the port level
{ "code": 200, "message": "OK", "error": false, "timestamp": "2025-08-18T08:56:01.474372636", "response": [ { "key": "3ad979b4-9370-11ea-b3ad-049226dae5ce", "value": "Gwangyang", "shipCount": 48, "volume": 1175679 } ] }
JavaScript
복사
Entering portId + from + to + terminalIds + nextCallingNationCode
Based on a specific terminal within the port → Returns vessel count and monthly volume at the port level
{ "code": 200, "message": "OK", "error": false, "timestamp": "2025-08-18T08:56:01.474372636", "response": [ { "key": "3ad979b4-9370-11ea-b3ad-049226dae5ce", "value": "Gwangyang", "shipCount": 48, "volume": 1175679 } ] }
JavaScript
복사
Entering portId + from + to + nextCallingNationCode+ nextCallingPortId
Based on the selected port → Returns vessel count and monthly volume at the terminal level
{ "code": 200, "message": "OK", "error": false, "timestamp": "2025-08-18T08:57:55.601328709", "response": [ { "key": "8932aaf6-7882-11ec-a285-049226dae5ce", "value": "GWANGYANG WEST CONTAINER TERMINAL", "shipCount": 25, "volume": 788658 } ] }
JavaScript
복사
Entering portId + from + to + terminalIds + nextCallingNationCode + nextCallingPortId
Based on a specific terminal within the port → Returns vessel count and volume volume at the terminal level
{ "code": 200, "message": "OK", "error": false, "timestamp": "2025-08-18T08:57:55.601328709", "response": [ { "key": "8932aaf6-7882-11ec-a285-049226dae5ce", "value": "GWANGYANG WEST CONTAINER TERMINAL", "shipCount": 25, "volume": 788658 } ] }
JavaScript
복사

Response Field Descriptions

Top-Level Response Fields

Field
Example Value
Description
code
200
Response status code (used in the same way as standard HTTP status codes). See the list of codes below for reference.
message
OK
Response message (description based on status)
error
false
Error flag true: error occurred false: successful processing
timestamp
2025-05-14T01:09:00.834665213
Time of response creation (UTC)
response
Array or Empty Array
Returns an array if data exists; returns an empty array if no data exists

Response Codes

Code
Description
200
Success
400
Bad request
401
Unauthorized
403
Forbidden
422
Unprocessable entity
429
Too many requests

Detailed Response Description

Depth 1 Field Description (response object)

Field
Example Value
Description
Data Type
key
nationCode, portId, terminalId
Code and ID value of the selected nation/port/terminal
varchar
value
nationName, portName, terminalName
Name of the selected nation/port/terminal
varchar
shipCount
10
Number of vessels
integer
volume
10
Volume (unit: DWT)
integer