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.
https://api.maviapi.com/v1/sites/marinetraffic/track10 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
querystring in query | Required | ever given | Vessel name/IMO/MMSI, or port name/UN/LOCODE |
kindstring in query | Optional | vessel | What to resolve the text toOne of vessel, port |
nearbyinteger in query | Optional | 10 | kind=port: how many nearby vessels to include (0 to 50) |
refreshboolean in query | Optional | false | Bypass and repopulate the cache (answers are cached for 5 minutes) |
Response fields
Fields inside data.
kinde.g."vessel"resolved
inpute.g."ever given"ide.g."shipid:5630138"namee.g."EVER GIVEN"typee.g."vessel"vessel
ship_idMarineTraffic ship ide.g."5630138"refIdentifier accepted by /vessels/{imo} (works for vessels without an IMO)e.g."shipid:5630138"namee.g."EVER GIVEN"ais_namee.g."EVER GIVEN"imoe.g."9811000"mmsie.g."636026627"call_signe.g."A8AB9"flage.g."Liberia"flag_codee.g."LR"vessel_typee.g."Container Ship"ais_typee.g."Cargo - Hazard A (Major)"markete.g."CONTAINER SHIPS"size_classe.g."ULCV"length_me.g.399.94width_me.g.59ais_classe.g."Class A"home_porturle.g."https://www.marinetraffic.com/en/ais/details/ships/shipid:5630138"position
namee.g."EVER GIVEN"imoe.g."9811000"mmsie.g."636026627"ship_ide.g."5630138"latitudee.g.26.873938longitudee.g.122.03899speed_knotse.g.15.1coursee.g.208headinge.g.213rate_of_turne.g.9draught_me.g.14.2statuse.g."Underway using Engine"areae.g."East China Sea"timestampe.g."2026-11-21T05:41:07.000Z"position_age_minutese.g.47received_byTerrestrial (station) or roaming/satellite receptione.g."Roaming"in_rangee.g.truedestinationDestination as reported by the crew over AISe.g."TWTPE"etae.g."2026-11-21T14:00:00.000Z"voyage_progress_pcte.g.70.9departure_port
port_ide.g."1253"namee.g."SHANGHAI"unlocodee.g."CNSHG"country_codee.g."CN"departure_timee.g."2026-11-20T11:25:00.000Z"arrival_port
port_ide.g."447"namee.g."TAIPEI"unlocodee.g."TWTPE"country_codee.g."TW"arrival_timee.g."2026-11-21T14:00:00.000Z"arrival_time_kindOne of estimated, actuale.g."estimated"port
port_ide.g."2036"namee.g."ROTTERDAM"unlocodee.g."NLRTM"countrye.g."NETHERLANDS"country_codee.g."NL"typee.g."Port"sizee.g."Large"latitudee.g.51.943306longitudee.g.4.1418123utc_offset_hourse.g.1alternative_namesanchorages
port_ide.g."22307"namee.g."ROTTERDAM ANCH"related_ports
port_ide.g."2033"namee.g."ROTTERDAM BOTLEK"summarye.g."ROTTERDAM is located at UK Coast & Atlantic, Rotterdam Area in NETHERLANDS. The official UN/LOCODE of this port is NLRTM."urle.g."https://www.marinetraffic.com/en/ais/details/ports/2036"nearby
radius_kme.g.5counte.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 and source.
cachede.g.falsesourcee.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 '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.