Skip to content

MarineTraffic Track a Vessel or Port API

One call from free text to the live picture. kind=vessel: resolves an IMO, MMSI or exact vessel name and returns its details and latest position. kind=port: resolves a UN/LOCODE or exact port name and returns its details and the nearest vessels within 5 km. An ambiguous name answers 400 with candidates.

GEThttps://api.maviapi.com/v1/sites/marinetraffic/track10 credits per call

Parameters

NameRequiredExampleDescription
querystring in queryRequiredever givenVessel name/IMO/MMSI, or port name/UN/LOCODE
kindstring in queryOptionalvesselWhat to resolve the text toOne of vessel, port
nearbyinteger in queryOptional10kind=port: how many nearby vessels to include (0 to 50)
refreshboolean in queryOptionalfalseBypass and repopulate the cache (answers are cached for 5 minutes)

Response fields

Fields inside data.

kindstringe.g."vessel"
resolvedobject4 fields
inputstringe.g."ever given"
idstringe.g."shipid:5630138"
namestringe.g."EVER GIVEN"
typestringe.g."vessel"
vesselobject18 fields
ship_idstringMarineTraffic ship ide.g."5630138"
refstringIdentifier accepted by /vessels/{imo} (works for vessels without an IMO)e.g."shipid:5630138"
namestringe.g."EVER GIVEN"
ais_namestringe.g."EVER GIVEN"
imostringe.g."9811000"
mmsistringe.g."636026627"
call_signstringe.g."A8AB9"
flagstringe.g."Liberia"
flag_codestringe.g."LR"
vessel_typestringe.g."Container Ship"
ais_typestringe.g."Cargo - Hazard A (Major)"
marketstringe.g."CONTAINER SHIPS"
size_classstringe.g."ULCV"
length_mnumbere.g.399.94
width_mnumbere.g.59
ais_classstringe.g."Class A"
home_portstringnullable
urlstringe.g."https://www.marinetraffic.com/en/ais/details/ships/shipid:5630138"
positionobject25 fields
namestringe.g."EVER GIVEN"
imostringe.g."9811000"
mmsistringe.g."636026627"
ship_idstringe.g."5630138"
latitudenumbere.g.26.873938
longitudenumbere.g.122.03899
speed_knotsnumbere.g.15.1
coursenumbere.g.208
headingnumbere.g.213
rate_of_turnnumbere.g.9
draught_mnumbere.g.14.2
statusstringe.g."Underway using Engine"
areastringe.g."East China Sea"
timestampstringe.g."2026-11-21T05:41:07.000Z"
position_age_minutesintegere.g.47
received_bystringTerrestrial (station) or roaming/satellite receptione.g."Roaming"
in_rangebooleane.g.true
destinationstringDestination as reported by the crew over AISe.g."TWTPE"
etastringe.g."2026-11-21T14:00:00.000Z"
voyage_progress_pctnumbere.g.70.9
departure_portobject4 fields
port_idstringe.g."1253"
namestringe.g."SHANGHAI"
unlocodestringe.g."CNSHG"
country_codestringe.g."CN"
departure_timestringe.g."2026-11-20T11:25:00.000Z"
arrival_portobject4 fields
port_idstringe.g."447"
namestringe.g."TAIPEI"
unlocodestringe.g."TWTPE"
country_codestringe.g."TW"
arrival_timestringe.g."2026-11-21T14:00:00.000Z"
arrival_time_kindstringOne of estimated, actuale.g."estimated"
portobject15 fields
port_idstringe.g."2036"
namestringe.g."ROTTERDAM"
unlocodestringe.g."NLRTM"
countrystringe.g."NETHERLANDS"
country_codestringe.g."NL"
typestringe.g."Port"
sizestringe.g."Large"
latitudenumbere.g.51.943306
longitudenumbere.g.4.1418123
utc_offset_hoursnumbere.g.1
alternative_namesstring[]
anchoragesobject[]2 fields
port_idstringe.g."22307"
namestringe.g."ROTTERDAM ANCH"
related_portsobject[]2 fields
port_idstringe.g."2033"
namestringe.g."ROTTERDAM BOTLEK"
summarystringe.g."ROTTERDAM is located at UK Coast & Atlantic, Rotterdam Area in NETHERLANDS. The official UN/LOCODE of this port is NLRTM."
urlstringe.g."https://www.marinetraffic.com/en/ais/details/ports/2036"
nearbyobject3 fields
radius_kmnumbere.g.5
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 and source.
cachedbooleane.g.false
sourcestringe.g."marinetraffic:web"

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/track?query=ever+given' \
  -H "Authorization: Bearer $MAVI_KEY"

MarineTraffic Track a Vessel or Port API questions

What you get, what it costs and how to call it.

What does the MarineTraffic Track a Vessel or Port API return?

One call from free text to the live picture. kind=vessel: resolves an IMO, MMSI or exact vessel name and returns its details and latest position. kind=port: resolves a UN/LOCODE or exact port name and returns its details and the nearest vessels within 5 km. An ambiguous name answers 400 with candidates. The response has kind, resolved, vessel, position, port and nearby inside data.

Which parameters does the MarineTraffic Track a Vessel or Port API take?

GET /track needs query (for example ever given). You can also pass kind, nearby and refresh.

How much does one MarineTraffic Track a Vessel or Port 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 Track a Vessel or Port API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/marinetraffic/track 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 Track a Vessel or Port 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.