MarineTraffic Search Vessels API
Search vessels by name, IMO or MMSI. Each match carries its particulars (IMO, MMSI, call sign, flag, type, size). The site returns at most 12 matches per query and has no paging: use a fuller name, or the IMO/MMSI, to reach a specific vessel.
https://api.maviapi.com/v1/sites/marinetraffic/vessels10 credits per 12 rowsParameters
| Name | Required | Example | Description |
|---|---|---|---|
querystring in query | Required | ever given | Vessel name (at least 3 characters), IMO number or MMSI |
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.
querye.g."ever given"totale.g.1counte.g.1vessels
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"matched_one.g."EVER GIVEN"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 12 rows, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/marinetraffic/vessels?query=ever+given' \
-H "Authorization: Bearer $MAVI_KEY"MarineTraffic Search Vessels API questions
What you get, what it costs and how to call it.
What does the MarineTraffic Search Vessels API return?
Search vessels by name, IMO or MMSI. Each match carries its particulars (IMO, MMSI, call sign, flag, type, size). The site returns at most 12 matches per query and has no paging: use a fuller name, or the IMO/MMSI, to reach a specific vessel. The response has query, total, count and vessels inside data.
Which parameters does the MarineTraffic Search Vessels API take?
GET /vessels needs query (for example ever given). You can also pass limit, offset and refresh.
How much does one MarineTraffic Search Vessels API call cost?
One successful call costs 10 credits for every 12 rows it returns. 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 Search Vessels API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/marinetraffic/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 Search 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.