A port call is the simplest event in shipping: a vessel arrives at a port, stays for a while, and leaves. Yet a list of port calls answers a surprising number of commercial questions. Where has this ship traded? How long do vessels wait in this port? Is congestion building up? Did the vessel really call where the documents say it did? This article explains what a port call is, how it is derived from AIS data, and how to put it to work.
What counts as a port call
In everyday shipping language, a port call is a visit by a vessel to a port, usually to load or discharge cargo, embark passengers, take bunkers or supplies, or change crew. A call has a few natural milestones:
- Arrival: the vessel reaches the port area. If a berth is not free, it may first wait at an anchorage.
- Berthing: it moves alongside a quay or terminal.
- Departure: it leaves the port area for its next destination.
The duration of the call (also called time in port or port stay) is the time between arrival and departure. The part spent waiting before berthing is often what operators care about most, because it is where delays and costs pile up.
You will also meet a family of acronyms: ETA (estimated time of arrival), ETB (estimated time of berthing), ETD (estimated time of departure), and ATA / ATD for the actual times once they have happened.
How port calls are detected from AIS
No global, public register of every ship's arrivals and departures exists. Port authorities keep their own records, in their own formats, and most do not publish them in real time. AIS fills the gap: since almost every commercial vessel broadcasts its position continuously, its arrivals and departures can be derived from its track.
The usual method is a geofence. Each port is given an area that covers its basins, terminals and nearby anchorages. When a vessel's positions move from outside the area to inside it, a call starts; when they move back out, the call ends. Some refinements make the result more useful:
- Hysteresis: the exit boundary is a little wider than the entry boundary, so a vessel manoeuvring along the edge does not generate a string of tiny calls.
- Speed and status: a vessel that crosses the corner of a port area at full speed without stopping is passing through, not calling.
- Gaps: if a vessel goes quiet inside a port and reappears days later, the call still has one arrival and one departure.
The result is a clean timeline per vessel: port, arrival, departure, duration. Our port calls API returns exactly that, per vessel and per port, and the historical positions API gives the positions behind it.
Identifying ports: UN/LOCODE
Ports have many names and spellings, so integrations identify them with UN/LOCODE, the United Nations code for trade and transport locations. A code has five characters: the two-letter country code followed by three letters for the place.
| UN/LOCODE | Port |
|---|---|
NLRTM |
Rotterdam, Netherlands |
SGSIN |
Singapore |
CNSHA |
Shanghai, China |
USLAX |
Los Angeles, United States |
ROCND |
Constanța, Romania |
AIS destinations are free text, but crews often type a UN/LOCODE or something close to it (NL RTM, NLRTM>DEHAM). Decoding those is how a declared destination becomes a port you can query, and how an ETA becomes comparable across vessels.
What port call data is good for
Vessel history and due diligence
The sequence of ports a vessel visited is its trading pattern. Charterers and brokers use it to check a vessel's recent employment; compliance teams use it to spot calls in sensitive regions (see sanctions screening by IMO number); insurers and financiers use it to understand where an asset actually operates.
Port performance and congestion
Aggregate the calls at one port and you get its rhythm: arrivals and departures per day, unique vessels, the split between container ships, tankers and bulk carriers, and how long a typical call lasts. When the average or median duration of calls starts climbing, or the number of vessels waiting grows while departures stay flat, congestion is building. Our port statistics route returns these figures per day for a window of 7 to 90 days.
Operations and planning
For a single voyage, port calls are milestones. The arrival triggers notices, laytime and demurrage clocks, and the next leg's planning; the departure closes the call and starts the next ETA. With a fleet webhook, the arrival or departure reaches your system as it happens (see fleet monitoring with webhooks), and the vessel ETA API gives the calculated ETA to the next port.
Supply chain visibility
A container on a ship arrives when the ship does. Knowing that the vessel carrying your cargo has berthed, or is waiting at anchor outside a congested port, is often more useful than any status in a booking system.
Reading port call data critically
Port calls derived from AIS are only as good as the positions behind them. Keep these points in mind:
- Coverage: in waters with dense receiver coverage, calls are recorded precisely. Where coverage is thin, an arrival or departure may be recorded later than it happened.
- Port areas: the boundary decides what counts. A vessel waiting at an anchorage outside the area is not "in port" yet, even if it is waiting for that port.
- Short calls: bunkering stops and crew changes can be brief; filter by duration if you only care about cargo calls.
- Destinations: the destination a vessel declares is not proof that it will call there. Compare it with the calls that actually happen.
Querying port calls
The calls of a vessel between two dates:
curl -H "X-API-Key: $WINGO_KEY" \
"https://wingo-marine.com/api/public/v1/vessels/9074729/port-calls?from=2026-11-25&to=2026-12-02"
Each call has the port (locode, portName, country), arrivedAt, departedAt (empty while the vessel is still in port) and durationHours.
The calls at a port, with the vessel of each, paginated:
import os, requests
r = requests.get(
"https://wingo-marine.com/api/public/v1/ports/NLRTM/calls",
params={"from": "2026-11-25", "to": "2026-12-02", "pageSize": 100},
headers={"X-API-Key": os.environ["WINGO_KEY"]},
timeout=30,
)
for call in r.json()["items"]:
print(call["name"], call["category"], call["arrivedAt"], call["departedAt"])
And the daily statistics of a port over the last month: GET /ports/NLRTM/stats?days=30.
Summary
A port call is a simple record, arrival, departure and duration, but collected across thousands of vessels and ports it becomes port intelligence: trading patterns, congestion, performance and timely operational signals. Derived from AIS with sensible port areas, it needs no manual reporting and stays current. The port calls API page lists the routes and their prices.