Port calls API: arrivals, departures and port statistics
Every port call of a vessel, with the port, the arrival, the departure and how long it stayed; every call at a port, with the vessel of each; and daily statistics of a port: arrivals, departures, unique vessels by category and the average and median length of a call. Ports by UN/LOCODE, vessels by MMSI or IMO.
What you get
The calls of a vessel
GET /vessels/{id}/port-calls?from=&to= returns a list of calls, oldest first:
| Field | Meaning |
|---|---|
locode, portName, country | The port: UN/LOCODE, name and country. |
arrivedAt | When the vessel entered the port area (UTC). |
departedAt | When it left; null while it is still in port. |
durationHours | The length of the call in hours. |
The calls at a port
GET /ports/{locode}/calls?from=&to=&page=&pageSize= returns a page of calls with the vessel of each: mmsi, name, category, arrivedAt, departedAt.
Port statistics
GET /ports/{locode}/stats?days= (7 to 90 days) returns arrivals, departures and unique vessels per day, split by vessel category, and the average and median duration of a call.
Calls are derived from vessel positions crossing the port area, so they need no manual input. For live notifications, a fleet webhook sends fleet.port_call when a watched vessel enters or leaves a port (paid plans).
Coverage
A call is recorded when a vessel's positions show it entering and leaving a port area, so ports in well-covered waters have the most complete records. Counted on 2026-12-04; the figures are recounted every few hours.
A response
GET /vessels/211331640/port-calls (illustrative values):
[
{
"locode": "NLRTM",
"portName": "Rotterdam",
"country": "Netherlands",
"arrivedAt": "2026-11-28T14:05:00.000Z",
"departedAt": "2026-11-30T03:40:00.000Z",
"durationHours": 37.6
}
]
Endpoints and prices
Every route lives under https://wingo-marine.com/api/public/v1, takes the X-API-Key header and answers JSON. The cost is live: it is what the call spends today, and every response tells you in X-Credits-Cost and X-Credits-Remaining.
| Call | What it returns | Cost | Per 1,000 calls |
|---|---|---|---|
GET /vessels/{id}/port-calls?from=&to= | The port calls of one vessel: port, arrival, departure, duration | 5 credits | from €2.00 |
GET /ports/{locode}/calls?from=&to=&page=&pageSize= | The calls at one port, paginated, with the vessel of each call | 5 credits | from €2.00 |
GET /ports/{locode}/stats?days= | Arrivals, departures, unique vessels and call durations per day and category | 5 credits | from €2.00 |
GET /ports/{locode} | Port details by UN/LOCODE | 1 credit | from €0.40 |
GET /ports?search= | Search ports by name, country or UN/LOCODE | 1 credit | from €0.40 |
A free account receives 200 credits once its email is verified. Credits come with a monthly plan or a one-time pack; out of credits means HTTP 402, never an overage bill. See plans and packs →
Examples
Create a free account, open Developer in the app, create a key and keep it server-side. Then:
curl
curl -H "X-API-Key: $WINGO_KEY" \
"https://wingo-marine.com/api/public/v1/ports/NLRTM/calls?from=2026-11-25&to=2026-12-02&pageSize=100"Python (requests)
import os, requests
r = requests.get(
"https://wingo-marine.com/api/public/v1/vessels/9312341/port-calls",
params={"from": "2026-11-25", "to": "2026-12-02"},
headers={"X-API-Key": os.environ["WINGO_KEY"]},
timeout=30,
)
r.raise_for_status()
for call in r.json():
print(call["locode"], call["portName"], call["arrivedAt"], call["departedAt"], call["durationHours"])JavaScript (Node 18+)
const res = await fetch("https://wingo-marine.com/api/public/v1/ports/NLRTM/stats?days=30", {
headers: { "X-API-Key": process.env.WINGO_KEY },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
Generate a typed client from /openapi.json, or point an AI assistant at /llms-full.txt.
Questions
How is a port call detected?
From the vessel positions: a call starts when a vessel enters a port area and ends when it leaves it. No manual input and no paperwork are involved, so a call shows up whenever the positions show it.
Can I get notified when a vessel arrives?
Yes, with a paid plan: add the vessel to a fleet and register a webhook; you receive a signed fleet.port_call event when it enters or leaves a port.
What do the port call routes cost?
The calls of a vessel cost 5 credits per request, a page of calls at a port 5 credits and the statistics of a port 5 credits.
More of the API
From the blog
- US regulator moves against MSC and ZIM over an unfiled cooperation agreement
- Gulf oil exports hold above 80% of pre-war levels despite record ship attacks
- Vitol warns the Iran war will leave a lasting risk premium on LNG
- Russia and Ukraine's war at sea widens from the Black Sea to the Mediterranean
- Shipping's risk calendar for early 2027: tariffs, naval mandates and El Niño
- US forces disable a ship leaving Iran as Tehran vows to break the blockade
- How to build fleet monitoring with webhooks
- Port calls and port intelligence, explained
Make your first call today
Free account, no card, 200 credits to try every endpoint.