MarineTraffic Port Vessels API
Ships currently in or near a port: every vessel the live map shows within radius_km of the port's position, nearest first, with position, speed, course, destination and size. `complete` is false only if part of the area could not be read.
https://api.maviapi.com/v1/sites/marinetraffic/ports/{port}/vessels10 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
portstring in path | Required | NLRTM | UN/LOCODE or MarineTraffic port id |
radius_kmnumber in query | Optional | 5 | Search radius around the port position, 0.5 to 15 km |
vessel_typestring in query | Optional | cargo | Only vessels of this map categoryOne of cargo, tanker, passenger, fishing, tug_special, high_speed, pleasure, navigation_aid, unspecified |
movingboolean in query | Optional | None | true: only vessels moving at 1 knot or more; false: only vessels stopped or moored |
limitinteger in query | Optional | 50 | Rows per page (default 50, max 200) |
offsetinteger in query | Optional | 0 | Rows to skip |
refreshboolean in query | Optional | false | Bypass and repopulate the cache (answers are cached for 5 minutes) |
Response fields
Fields inside data.
port
port_ide.g."2036"namee.g."ROTTERDAM"unlocodee.g."NLRTM"country_codee.g."NL"latitudee.g.51.943306longitudee.g.4.1418123radius_kme.g.5vessel_typemovingcompletee.g.truemap_requestse.g.4counte.g.182vessels
ship_ide.g."3387654"refe.g."shipid:3387654"namee.g."SNIP"flag_codee.g."NL"vessel_typee.g."cargo"latitudee.g.51.952328longitudee.g.4.1202168distance_kme.g.1.77speed_knotse.g.0courseheadinge.g.169destinatione.g."ROTTERDAM"length_me.g.64width_me.g.7dwte.g.1200position_age_minutese.g.2timestampe.g."2026-11-21T06:40:00.000Z"Next to data, every response also has cached, source and pagination.
cachede.g.falsesourcee.g."marinetraffic:web"pagination
totale.g.182limite.g.50offsete.g.0counte.g.50has_moree.g.trueExample request
Set MAVI_KEY to your API key. A successful call costs 10 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/marinetraffic/ports/NLRTM/vessels' \
-H "Authorization: Bearer $MAVI_KEY"MarineTraffic Port Vessels API questions
What you get, what it costs and how to call it.
What does the MarineTraffic Port Vessels API return?
Ships currently in or near a port: every vessel the live map shows within radius_km of the port's position, nearest first, with position, speed, course, destination and size. `complete` is false only if part of the area could not be read. The response has port, radius_km, vessel_type, moving, complete, map_requests, count and vessels inside data.
Which parameters does the MarineTraffic Port Vessels API take?
GET /ports/{port}/vessels needs port (for example NLRTM). You can also pass radius_km, vessel_type, moving, limit, offset and refresh.
How much does one MarineTraffic Port Vessels API call cost?
One successful call costs 10 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $1.96. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the MarineTraffic Port Vessels API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/marinetraffic/ports/{port}/vessels with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.
Is the MarineTraffic Port Vessels API official?
No. It is an independent, hosted API from maviapi for the public data on marinetraffic.com, and it is not made, endorsed or supported by MarineTraffic. Its parameters and response fields are documented on this page.