When a vessel application needs a position, you need a request that identifies the ship and a response you can turn into coordinates, a timestamp, and a status display. By the end of this guide, you can call the Vessel Position Tracker API with an IMO and MMSI, read its AIS response in Python, and handle incomplete arrival data without treating it as a confirmed prediction.
What the position endpoint returns
The Vessel Position Tracker API provides a Position Information endpoint for retrieving vessel information using an IMO and an MMSI. Its example response contains an AIS object with coordinates, a timestamp, vessel identifiers, movement-related fields, destination information, and estimated-arrival fields.
That shape is useful for a vessel-position map, a fleet-monitoring screen, or an operational dashboard that needs to associate a reported position with a known vessel. The supplied example identifies ROYAL PRINCESS and includes both its position and its reported destination information.
The response is a snapshot, not a movement history. A map can plot the returned latitude and longitude, but it should also display the associated timestamp so that a user can judge the age of the observation.
Getting started on Zyla API Hub
Open the Vessel Position Tracker API listing using the link at the end of this article. Create a free account on Zyla API Hub if needed, then select Subscribe or Start Free Trial when available and obtain your API key. Check the API page for current access options and pricing.
Zyla API Hub uses a subscription and quota model rather than pay-per-call billing. The first API has a 7-day trial or 50 requests; check the listing for the terms that apply to your access. Keep your key on the server or in a secure development environment rather than committing it to source control.
The marketplace offers more than 10,000 public APIs across categories including transportation, finance, and data enrichment. This integration uses the Hub request URL and a bearer token; it does not require a separate origin access key.
Call Position Information
Position Information is a GET endpoint. Both query parameters are required and are documented as strings:
imo: the vessel’s IMO identifier. The example uses9584712.mmsi: the vessel’s MMSI identifier. The example uses310661000.
The request URL is https://zylalabs.com/api/6287/vessel-position-tracker-api/8889/position-information. Replace YOUR_API_KEY in the following request with your Hub key. This is the official listing example:
curl -s -X GET "https://zylalabs.com/api/6287/vessel-position-tracker-api/8889/position-information?imo=9584712&mmsi=310661000" \
-H "Authorization: Bearer YOUR_API_KEY"
The official example response is an array containing an object with an AIS property:
[
{
"AIS": {
"MMSI": 310661000,
"TIMESTAMP": "2026-10-27 18:04:32 UTC",
"LATITUDE": 1.25097,
"LONGITUDE": 103.61185,
"COURSE": 0.4,
"SPEED": 0,
"HEADING": 90,
"NAVSTAT": 2,
"IMO": 9584712,
"NAME": "ROYAL PRINCESS",
"CALLSIGN": "ZCEI3",
"TYPE": 60,
"A": 31,
"B": 298,
"C": 19,
"D": 19,
"DRAUGHT": 0,
"DESTINATION": "SIN",
"LOCODE": "SGSIN",
"ETA_AIS": "00-00 24:60",
"ETA": "",
"SRC": "TER",
"ZONE": "South East Asia",
"ECA": false,
"DISTANCE_REMAINING": null,
"ETA_PREDICTED": null
}
}
]
For a basic position display, read LATITUDE, LONGITUDE, and TIMESTAMP together. Use IMO, MMSI, and NAME to label the observation and check which vessel the record describes. The timestamp in this example explicitly ends in UTC.
Read the position in Python
The following example uses Python’s standard library to call the same Hub URL with the same required parameters. It reads the response array, handles an empty array without indexing it, and prints fields useful for a position display.
import json
from urllib.request import Request, urlopen
url = (
"https://zylalabs.com/api/6287/vessel-position-tracker-api/"
"8889/position-information?imo=9584712&mmsi=310661000"
)
request = Request(
url,
headers={"Authorization": "Bearer YOUR_API_KEY"},
method="GET",
)
with urlopen(request) as response:
records = json.load(response)
if not records:
print("No position records returned.")
else:
ais = records[0].get("AIS", {})
print("Vessel:", ais.get("NAME"))
print("IMO:", ais.get("IMO"))
print("MMSI:", ais.get("MMSI"))
print("Timestamp:", ais.get("TIMESTAMP"))
print("Latitude:", ais.get("LATITUDE"))
print("Longitude:", ais.get("LONGITUDE"))
print("Destination:", ais.get("DESTINATION"))
print("Predicted ETA:", ais.get("ETA_PREDICTED"))
Replace the key before running the sample. For an application, load the key from a secure configuration source instead of leaving it in the file, and handle request and JSON parsing failures at the boundary where the integration calls the API. Avoid logging the authorization header when recording a failed request.
The sample below is the same official response shown again in full, so you can follow the Python field lookups without assuming a different result:
[
{
"AIS": {
"MMSI": 310661000,
"TIMESTAMP": "2026-10-27 18:04:32 UTC",
"LATITUDE": 1.25097,
"LONGITUDE": 103.61185,
"COURSE": 0.4,
"SPEED": 0,
"HEADING": 90,
"NAVSTAT": 2,
"IMO": 9584712,
"NAME": "ROYAL PRINCESS",
"CALLSIGN": "ZCEI3",
"TYPE": 60,
"A": 31,
"B": 298,
"C": 19,
"D": 19,
"DRAUGHT": 0,
"DESTINATION": "SIN",
"LOCODE": "SGSIN",
"ETA_AIS": "00-00 24:60",
"ETA": "",
"SRC": "TER",
"ZONE": "South East Asia",
"ECA": false,
"DISTANCE_REMAINING": null,
"ETA_PREDICTED": null
}
}
]
The code uses get for fields it displays, so a missing field produces None rather than a key lookup error. An empty array is handled separately; do not interpret that case as a specific vessel status without additional information.
Interpret position and arrival fields
The latitude and longitude in the example are 1.25097 and 103.61185. Store them with the returned timestamp rather than replacing the timestamp with the time your application made its request. The observation time and the retrieval time answer different operational questions.
The response also includes COURSE, SPEED, HEADING, and NAVSTAT. Preserve their returned values if your application needs them, but verify field units and code meanings before converting them or attaching human-readable status labels. A zero speed in one response should not be presented as a history of the vessel’s movement.
Arrival fields need particular care. Here is the same official response again, with the destination and ETA fields in their original context:
[
{
"AIS": {
"MMSI": 310661000,
"TIMESTAMP": "2026-10-27 18:04:32 UTC",
"LATITUDE": 1.25097,
"LONGITUDE": 103.61185,
"COURSE": 0.4,
"SPEED": 0,
"HEADING": 90,
"NAVSTAT": 2,
"IMO": 9584712,
"NAME": "ROYAL PRINCESS",
"CALLSIGN": "ZCEI3",
"TYPE": 60,
"A": 31,
"B": 298,
"C": 19,
"D": 19,
"DRAUGHT": 0,
"DESTINATION": "SIN",
"LOCODE": "SGSIN",
"ETA_AIS": "00-00 24:60",
"ETA": "",
"SRC": "TER",
"ZONE": "South East Asia",
"ECA": false,
"DISTANCE_REMAINING": null,
"ETA_PREDICTED": null
}
}
]
DESTINATION is SIN and LOCODE is SGSIN, but ETA is an empty string and ETA_PREDICTED is null. The ETA_AIS value, 00-00 24:60, should not be treated as a usable date without validation. Show an unavailable arrival estimate instead of manufacturing one from the destination or coordinates.
Keep null, an empty string, and a numeric zero distinct when processing this response. For example, DISTANCE_REMAINING is null, while SPEED is 0; using a generic truthiness check for both would hide that difference. The example also contains fields such as TYPE, A, B, C, D, and SRC; retain them if needed, but confirm their definitions before building calculations around them.
Build a practical integration
For a vessel map, submit the known IMO and MMSI from your application, plot the returned coordinates, and display the vessel name and UTC timestamp beside the marker. If coordinates or the timestamp are unavailable, avoid placing an unqualified marker based on an earlier value; make any cached observation visibly identifiable as cached.
For an operations dashboard, keep the position and destination sections separate. A returned destination code does not make the empty or null ETA fields into a confirmed arrival time. Display the raw destination information where useful, and give unavailable arrival data its own state.
For a monitoring workflow, decide how long a stored observation remains useful for your users and show its original timestamp. Caching can reduce repeated requests against your subscription quota, but it also means users may see an older position. Choose the refresh behavior for the application and check the listing for current quota details rather than assuming a particular update frequency.
Call from an AI agent
An MCP-compatible client can use the Zyla MCP endpoint. Configure the client with https://mcp.zylalabs.com/mcp?apikey=YOUR_API_KEY, replacing the placeholder with your Hub key. The endpoint works with Claude Code, Cursor, Windsurf, and other MCP-compatible clients.
Give the agent the vessel’s IMO and MMSI and ask it to retrieve Position Information, then report the coordinates and observation timestamp. If it summarizes arrival information, have it distinguish the destination from an unavailable predicted ETA. Treat the key in the MCP connection URL as a secret and avoid exposing that configured URL in shared logs.
FAQ
Which identifiers are required for a vessel position request?
Position Information requires both imo and mmsi. The official request uses 9584712 and 310661000, respectively.
How do I authenticate the request?
Send your Zyla API Hub key in the Authorization: Bearer YOUR_API_KEY header. Obtain the key through your Hub account and replace the placeholder in the request.
Does the response provide an arrival prediction?
The example contains an ETA_PREDICTED field, but its value is null. It also has an empty ETA, so an application should support an unavailable arrival estimate.
How should I display the position timestamp?
Display it with the coordinates and preserve its timezone. The example timestamp explicitly specifies UTC; it represents the observation timestamp in the response, not necessarily the time your application fetched it.
Ready to integrate? Create a free Zyla API Hub account, then Start 7-day trial on Vessel Position Tracker API and get an API key. Check the listing for current access options, quota, and pricing.