Skip to content

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.

GEThttps://api.maviapi.com/v1/sites/marinetraffic/ports/{port}/vessels10 credits per call

Parameters

NameRequiredExampleDescription
portstring in pathRequiredNLRTMUN/LOCODE or MarineTraffic port id
radius_kmnumber in queryOptional5Search radius around the port position, 0.5 to 15 km
vessel_typestring in queryOptionalcargoOnly vessels of this map categoryOne of cargo, tanker, passenger, fishing, tug_special, high_speed, pleasure, navigation_aid, unspecified
movingboolean in queryOptionalNonetrue: only vessels moving at 1 knot or more; false: only vessels stopped or moored
limitinteger in queryOptional50Rows per page (default 50, max 200)
offsetinteger in queryOptional0Rows to skip
refreshboolean in queryOptionalfalseBypass and repopulate the cache (answers are cached for 5 minutes)

Response fields

Fields inside data.

portobject6 fields
port_idstringe.g."2036"
namestringe.g."ROTTERDAM"
unlocodestringe.g."NLRTM"
country_codestringe.g."NL"
latitudenumbere.g.51.943306
longitudenumbere.g.4.1418123
radius_kmnumbere.g.5
vessel_typestringnullable
movingbooleannullable
completebooleane.g.true
map_requestsintegere.g.4
countintegere.g.182
vesselsobject[]17 fields
ship_idstringe.g."3387654"
refstringe.g."shipid:3387654"
namestringe.g."SNIP"
flag_codestringe.g."NL"
vessel_typestringe.g."cargo"
latitudenumbere.g.51.952328
longitudenumbere.g.4.1202168
distance_kmnumbere.g.1.77
speed_knotsnumbere.g.0
coursenumbernullable
headingnumbere.g.169
destinationstringe.g."ROTTERDAM"
length_mnumbere.g.64
width_mnumbere.g.7
dwtnumbernullablee.g.1200
position_age_minutesintegere.g.2
timestampstringe.g."2026-11-21T06:40:00.000Z"
Next to data, every response also has cached, source and pagination.
cachedbooleane.g.false
sourcestringe.g."marinetraffic:web"
paginationobject5 fields
totalintegere.g.182
limitintegere.g.50
offsetintegere.g.0
countintegere.g.50
has_morebooleane.g.true

Example request

Set MAVI_KEY to your API key. A successful call costs 10 credits per call, and a failed call costs nothing.

cURL
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.