MarineTraffic Port API
Details of one port: name, UN/LOCODE, country, type, size, coordinates, UTC offset in hours, alternative names, its anchorages, related ports and the site's one-paragraph summary.
https://api.maviapi.com/v1/sites/marinetraffic/ports/{port}5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
portstring in path | Required | NLRTM | UN/LOCODE (e.g. NLRTM) or MarineTraffic port id (e.g. 2036, the port_id of /ports) |
Response fields
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_portssummarye.g."ROTTERDAM is located at UK Coast & Atlantic, Rotterdam Area in NETHERLANDS. The official UN/LOCODE of this port is NLRTM. It is also known as MAASDIJK,EUROPOORT,RDAM,DINTELHAVEN."urle.g."https://www.marinetraffic.com/en/ais/details/ports/2036"pagination
counte.g.1has_moree.g.falsenext_cursorfetched_ate.g."2026-11-27T10:13:01.235Z"agee.g.0Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/marinetraffic/ports/NLRTM' \
-H "Authorization: Bearer $MAVI_KEY"MarineTraffic Port API questions
What you get, what it costs and how to call it.
What does the MarineTraffic Port API return?
Details of one port: name, UN/LOCODE, country, type, size, coordinates, UTC offset in hours, alternative names, its anchorages, related ports and the site's one-paragraph summary. The response has port_id, name, unlocode, country, country_code, type, size, latitude and 10 more.
Which parameters does the MarineTraffic Port API take?
GET /ports/{port} needs port (for example NLRTM).
How much does one MarineTraffic Port API call cost?
One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. 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 API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/marinetraffic/ports/{port} 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 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.