Tracking a bulk carrier means more than placing a vessel on a map: you need to identify the right ship, determine whether its last AIS position is fresh, and interpret its voyage and arrival information without treating estimates as confirmed events. By the end of this guide, you can retrieve a track, handle missing and stale data, and extend the integration to fleet operations, voyage analytics, and emissions reporting.
Identify the bulk carrier before tracking it
Start with GET /vessels/search when you have a vessel name but not a reliable identifier. The endpoint supports fuzzy name searches as well as searches by IMO number or MMSI. A fuzzy match is useful for discovery, but it should not be your final identity check: names can be similar or change over a vessel’s life.
The search response places results in data.vessels. Each result can include imo, mmsi, name, flag, vessel_type, deadweight_tonnage, dimensions, and year built. Use those particulars to confirm that the result is the bulk carrier your application intends to follow, then store the IMO or MMSI for subsequent requests.
For fleet discovery, the search endpoint also accepts filters including ship_type, flag, min_dwt, max_dwt, year_built_from, and year_built_to. Deadweight tonnage is especially relevant when distinguishing bulk carriers by carrying capacity, although vessel particulars alone do not establish what cargo is currently aboard.
Results are paginated. Read data.pagination.current_page, per_page, total, and last_page rather than assuming the first response contains every match. The documented maximum for per_page is 100. See the Documentation for the request details.
Retrieve and interpret a vessel track
GET /vessels/track accepts either imo or mmsi. Its hours parameter controls the requested position-history window: the default is 24 hours and the maximum is 168 hours. Optional parameters include include_route, include_predicted_eta, and include_weather.
The request below asks for 48 hours of history using the documented MMSI. It demonstrates the tracking response; confirm vessel type through search before treating any identifier as a bulk carrier in your own workflow.
curl -H "X-API-Key: YOUR_API_KEY" "https://vessels-api.com/api/V1/vessels/track?mmsi=258785000&hours=48"
The response uses the common status, success, message, and data envelope. This is the documented response for that request:
{
"status": 200,
"success": true,
"message": "OK",
"data": {
"vessel": {
"imo": "9122556",
"mmsi": "258785000",
"name": null
},
"current_position": {
"latitude": 53.33708,
"longitude": 7.17993,
"position_precision": "precise",
"position_accuracy_nm": null,
"speed_knots": 0,
"course_degrees": 212,
"heading_degrees": null,
"navigational_status": 5,
"timestamp_utc": "2017-01-24T04:07:09+00:00",
"age_minutes": 5173220,
"destination": null,
"eta": null
},
"predicted_eta": null,
"position_history": [],
"route": {
"departure_port": "HERACLIO",
"departure_time": "2026-04-27T21:35:36+00:00",
"destination_port": "HERACLIO",
"eta": null,
"distance_nm": null,
"avg_speed_knots": 17.1
},
"last_port_visits": [
{
"port_id": "156",
"port_name": "EMDEN",
"arrival_time": "2026-07-30T13:00:10+00:00",
"departure_time": null,
"duration_hours": null
},
{
"port_id": "10",
"port_name": "HERACLIO",
"arrival_time": "2026-04-20T12:00:00+00:00",
"departure_time": "2026-04-23T08:00:00+00:00",
"duration_hours": 68
}
],
"weather": null
}
}
Use current_position.latitude and longitude for the map marker, and show timestamp_utc alongside it. Speed is in knots; course and heading are in degrees. Course and heading are separate fields, so do not silently substitute one for the other when a value is missing.
The sample is also a reminder that “precise” does not mean “recent.” The position timestamp is old, age_minutes is large, and the history array is empty. The route and port-visit timestamps are separate pieces of information and do not make that position current. A dashboard should surface the observation time and avoid presenting this marker as the vessel’s live location.
The response has no vessel name, destination, ETA, predicted ETA, or weather value. Treat those null values as unavailable, not as zero or an empty estimate. Similarly, an empty position_history means there are no history points in this response; it does not prove the vessel did not move during the requested window.
Call the same endpoint from Python
This example uses Python’s standard library, requests the same URL, and checks both the HTTP result and the response envelope. Replace YOUR_API_KEY with your key when running it; keep credentials out of source control in a deployed application.
import json
from datetime import datetime, timezone
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = (
"https://vessels-api.com/api/V1/vessels/track"
"?mmsi=258785000&hours=48"
)
request = Request(url, headers={"X-API-Key": "YOUR_API_KEY"})
try:
with urlopen(request) as response:
payload = json.load(response)
except HTTPError as exc:
raise SystemExit(f"API HTTP error: {exc.code}") from exc
except URLError as exc:
raise SystemExit(f"Network error: {exc.reason}") from exc
if not payload.get("success"):
raise SystemExit(f"API request failed: {payload.get('message')}")
data = payload.get("data") or {}
vessel = data.get("vessel") or {}
position = data.get("current_position") or {}
route = data.get("route") or {}
print("IMO:", vessel.get("imo"))
print("MMSI:", vessel.get("mmsi"))
print("Name:", vessel.get("name"))
print("Latitude:", position.get("latitude"))
print("Longitude:", position.get("longitude"))
print("Speed in knots:", position.get("speed_knots"))
print("Position timestamp:", position.get("timestamp_utc"))
print("Reported age in minutes:", position.get("age_minutes"))
print("Destination:", position.get("destination"))
print("Position ETA:", position.get("eta"))
print("Route ETA:", route.get("eta"))
print("Predicted ETA:", data.get("predicted_eta"))
print("History points:", len(data.get("position_history") or []))
timestamp = position.get("timestamp_utc")
if timestamp:
observed_at = datetime.fromisoformat(timestamp.replace("Z", "+00:00"))
if observed_at.tzinfo is not None:
age = datetime.now(timezone.utc) - observed_at
print("Calculated age:", age)
Choose an application-specific freshness threshold and flag observations that exceed it. The example calculates age from the UTC timestamp rather than relying solely on an age value that may have been calculated when the response was produced. Preserve the original timestamp when caching a response; a recent cache fetch does not make an old AIS observation fresh.
Build bulk-carrier workflows around the track
Fleet dashboards and voyage statistics
For a fleet dashboard, POST /vessels/fleet batches multiple vessel identifiers in a JSON request. Its documented body uses a vessels array containing IMO or MMSI identifiers, with options such as include_positions and include_routes. The response includes fleet totals and a per-vessel list with fields such as position and route.
Batching gives operators a single view of ships at sea and in port, but a fleet summary is not a substitute for checking each position’s freshness. Retain vessel identifiers with each record, handle missing positions or routes, and let operators distinguish an unavailable value from a vessel that is genuinely stationary.
Use GET /vessels/analytics for aggregate voyage statistics. Set type=vessel with an IMO or MMSI for an individual bulk carrier, or use type=fleet with mmsi_list for a fleet view. Supported periods are 24h, 7d, 30d, and 90d.
The returned statistics can include total distance in nautical miles, average and maximum speed in knots, port-call count, time in port in hours, and ports visited. These measures help a fleet manager compare operational activity over a selected period. They should be labeled with that period rather than displayed as lifetime vessel totals.
Arrival planning and port operations
Bulk cargo operations depend on arrival planning, but an ETA is an estimate rather than a berth reservation or proof of arrival. The tracking response can expose a position-level eta, a route-level eta, and predicted_eta. Keep their sources distinct in the interface and show an unavailable state when a value is missing.
For a port-side workflow, the port catalog at GET /ports provides identifiers and coordinates. GET /port/expected-arrivals accepts a port identifier and returns expected vessels with fields including ETA and departure port. GET /port/activity provides recent arrival and departure records; use those events separately from an expected arrival when updating operational status.
Port teams can also consult GET /ports/congestion for an anchorage and berth snapshot and wait-time statistics. Its required parameter is port_id; its optional period is 24h, 3d, or 7d. Display the snapshot and statistics with their respective context rather than turning a historical average into a guaranteed wait for a particular bulk carrier.
Emissions and CII reporting
GET /vessels/green accepts an IMO or MMSI and an optional period of 24h, 7d, 30d, or 1y; the default is 30d. Its response can include distance, estimated CO₂ emissions, emissions per nautical mile, and a CII score and rating.
The documented rating scale runs from A to E, with A the best and E the worst, and references IMO MEPC.339(76). For an ESG dashboard, retain the period, year, and regulation reference alongside the result. Label emissions as estimates and review the methodology and applicable reporting requirements before using an API result as a formal compliance determination.
Make the integration operationally reliable
Every endpoint uses the same base URL, https://vessels-api.com/api/V1, and the X-API-Key header. Requests are GET except for POST /vessels/fleet. This makes it practical to share authentication and response-handling code across a tracking screen, fleet service, and port dashboard.
Handle HTTP errors separately from successful responses. A 400 indicates a missing or invalid parameter, 401 an invalid or missing key, 404 a vessel or port not found, and 422 a parameter outside its allowed range. For 429 or 500 responses, use controlled retry behavior appropriate to your application rather than immediately issuing repeated requests.
Cache data according to its use: static vessel particulars and a moving position have different freshness requirements. Store both the time your application fetched a response and the AIS observation timestamp. If the request fails, a previously cached position may still be useful, but label it as the last known position and show its age.
For tools that need an MCP integration alongside the REST workflow, see MCP.
Frequently asked questions
Can I track a bulk carrier by name?
Use /vessels/search to find candidate vessels by fuzzy name. Verify the result using its vessel type and particulars, then pass its IMO or MMSI to /vessels/track.
How much position history can I request?
The track endpoint defaults to 24 hours and accepts a maximum of 168 hours through hours. The requested window does not guarantee that position points will be available throughout it.
Why is an ETA missing?
The documented response shows that position, route, and predicted ETA values can be null. Render an unavailable state and keep the different ETA fields distinct instead of inferring a confirmed arrival.
How should I handle a stale position?
Compare timestamp_utc with the current time and apply a freshness threshold suited to your operation. Show the timestamp with the last known position, particularly when using cached data.
Ready to build a bulk-carrier tracking workflow? Register to start a 7-day free trial, then use a verified vessel identifier to connect tracking, fleet views, and port planning to your application.