Skip to content

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.

GEThttps://api.maviapi.com/v1/sites/marinetraffic/vessels10 credits per 12 rows

Parameters

NameRequiredExampleDescription
querystring in queryRequiredever givenVessel name (at least 3 characters), IMO number or MMSI
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.

querystringe.g."ever given"
totalintegere.g.1
countintegere.g.1
vesselsobject[]19 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"
matched_onstringe.g."EVER GIVEN"
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 12 rows, and a failed call costs nothing.

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