Menu
Home Track and Port Handling Examples Get Port calls by port

Get Port calls by port

To get the port calls for a given port (by LOCODE) call:

GET /portserver/port/history/LOCODE
GET /portserver/port/history/GBFXT

To get the result for a specific period use

GET /portserver/port/history/GBFXT?begin=2021-06-01&end=2021-06-04

This will return the list of port calls starting on or after begin and before end

To get the result for a specific period use including all port calls started before begin add the pre-arrived=1 tag

GET /portserver/port/history/GBFXT?begin=2021-06-01&end=2021-06-04&pre-arrived=1

The returned result will look like:

{"records":[
{"ata":"2021-05-09T11:34:48Z","port":{"locode":"GBFXT"},"ship":{"mmsi":538067221}},
{"ata":"2021-04-16T15:33:20Z","port":{"locode":"GBFXT"},"ship":{"mmsi":245848220}},
{"ata":"2021-06-01T10:35:08Z","atd":"2021-06-01T11:01:41Z","port":{"locode":"GBFXT"},"ship":{"mmsi":235021307}},
{"ata":"2021-06-01T17:01:26Z","atd":"2021-06-01T17:12:25Z","port":{"locode":"GBFXT"},"ship":{"mmsi":235021307}},
{"ata":"2021-06-01T00:00:28Z","atd":"2021-06-01T23:58:48Z","port":{"locode":"GBFXT"},"ship":{"imo":9355446,"mmsi":209719000}},
{"ata":"2021-04-24T01:08:26Z","port":{"locode":"GBFXT"},"ship":{"mmsi":210020144}},{"ata":"2021-04-24T17:08:28Z","port":{"locode":"GBFXT"},"ship":{"mmsi":232385120}},.....]}
Updated on 17 June, 2021