How to Track a Car Carrier

How to Track a Car Carrier

Tracking a car carrier means more than plotting its last reported coordinates: you need to identify the right ship, judge whether its AIS position is fresh, and give logistics teams an ETA they can interpret. By the end of this guide, you’ll be able to retrieve a vessel’s position and history, build a fleet view, and connect tracking data to port planning and emissions reporting.

Identify the car 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 through query and can also find vessels by IMO number or MMSI. Search results include identifiers and particulars such as vessel type, flag, dimensions, deadweight tonnage, gross tonnage, and year built.

Illustration: How to Track a Car Carrier

A name alone is a weak database key. Similar names can appear in search results, and a vessel’s name can change. Store the IMO and MMSI returned for the vessel you have verified, along with the display name and relevant particulars. Check the vessel type and other available details against your operational records before treating a result as a car carrier.

For larger discovery workflows, search supports filters including ship_type, flag, deadweight ranges, and build-year ranges. Use only filter values appropriate to your data and confirm the available values in the Documentation. Results are paginated with page and per_page; the documented maximum page size is 100. Read data.pagination rather than assuming the first page contains every match.

For the rest of the guide, the tracking request uses the documented MMSI 258785000. Its example response does not establish that the vessel is a car carrier; it demonstrates the integration mechanics. Replace the identifier in your application with one you have independently verified for the car carrier you need to monitor.

Request the latest AIS position and history

GET /vessels/track accepts either imo or mmsi. It returns a current position and can provide position history, route information, a predicted ETA, and weather. The hours parameter defaults to 24 and has a maximum of 168; the request below asks for 48 hours.

curl -H "X-API-Key: YOUR_API_KEY" "https://vessels-api.com/api/V1/vessels/track?mmsi=258785000&hours=48"

The documented response is shown below. Treat it as an example of the response shape, not as a current location for the vessel.

{
"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:55+00:00",
"age_minutes": 5173940,
"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
}
}

The response envelope contains status, success, message, and data. Within data, use vessel to associate the result with your record and current_position for the map marker. Latitude and longitude locate the marker; speed is in knots, while course and heading are in degrees. Heading can be null even when course is present.

Display timestamp_utc beside the position. A successful request does not mean the AIS report itself is recent: this example has an old position timestamp and a large age_minutes value. Its route and visit timestamps also differ substantially from the position timestamp. Treat these sections as separate pieces of information with their own times, not as a single synchronized voyage snapshot.

The empty position_history does not prove that the ship stayed in one place, and a null ETA is not an arrival prediction. Your map and logistics screens should show “unavailable” for missing values rather than substituting zero or silently using an old result.

Read the same response in Python

This example uses Python’s standard library and calls the same endpoint with the same parameters. It checks both HTTP errors and the API’s success flag, then reads the fields useful for a tracking card.

import json
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"HTTP error: {exc.code}") from exc
except (URLError, json.JSONDecodeError) as exc:
raise SystemExit(f"Request or response error: {exc}") from exc

if not payload.get("success"):
raise SystemExit(payload.get("message", "API request failed"))

data = payload.get("data") or {}
vessel = data.get("vessel") or {}
position = data.get("current_position") or {}
route = data.get("route") or {}

print("MMSI:", vessel.get("mmsi"))
print("Name:", vessel.get("name"))
print("Latitude:", position.get("latitude"))
print("Longitude:", position.get("longitude"))
print("Position time (UTC):", position.get("timestamp_utc"))
print("Speed (knots):", position.get("speed_knots"))
print("Destination:", position.get("destination"))
print("AIS ETA:", position.get("eta"))
print("Predicted ETA:", data.get("predicted_eta"))
print("Route destination:", route.get("destination_port"))
print("History points:", len(data.get("position_history") or []))

Replace YOUR_API_KEY before running the script, and keep the key on your server rather than embedding it in a public browser application. In production, distinguish a missing position from a valid zero speed: a stationary vessel and an unavailable speed are different operational states.

Turn tracking data into a logistics ETA

A vehicle logistics dashboard should separate the last AIS-reported destination and ETA from the route’s destination and ETA. The tracking endpoint also supports include_route, include_predicted_eta, and include_weather when those details are needed. Keep the source and timestamp visible so dispatchers do not mistake a prediction or a reported destination for a confirmed berth time.

For a car carrier approaching a vehicle terminal, GET /port/expected-arrivals adds port-side context. Supply a verified port identifier in the required port parameter. Its expected_arrivals entries include vessel identifiers, name, vessel type, ETA, and departure port. Match the entry to your tracked vessel by IMO or MMSI, not by name alone.

A practical arrival workflow keeps the two observations separate: show the vessel’s latest position and position time on one side, and the port’s expected-arrival entry on the other. If an entry or ETA is absent, mark it as unavailable instead of inferring that the voyage has been canceled. Port operators can use the combined view to prioritize further checks for vehicle handling, terminal space, and onward transport.

Port identifiers should come from the port catalog or your verified records; the vessel’s free-text destination is not necessarily the identifier required by a port endpoint. The GET /ports catalog provides port identifiers, coordinates, country, and timezone for that lookup. Normalize timestamps for storage and show the timezone when presenting arrival information to teams in different locations.

Monitor a fleet and add emissions context

For a dashboard covering multiple car carriers, POST /vessels/fleet retrieves batch data in one request. Its JSON body contains a vessels array of IMO or MMSI identifiers, with options such as include_positions and include_routes. Send the API key in X-API-Key and set Content-Type to application/json.

The response includes a fleet summary and a vessels array. Use the summary for an overview of vessels at sea and in port, then use individual vessel records for a table or map. Do not assume array order is the same as your internal fleet list; associate records by identifier. For a selected carrier, the tracking endpoint provides the more detailed position history and voyage context.

For ESG teams, GET /vessels/green accepts an IMO or MMSI and an optional period of 24h, 7d, 30d, or 1y; the default is 30d. The response includes distance, estimated CO₂ emissions, and a CII score and rating. The documented ratings run from A to E, with A best and E worst, and reference IMO MEPC.339(76).

Show the period, units, and regulation reference alongside a CII result. Label estimated_emissions as estimates, and avoid presenting a short-period API result as a final regulatory determination without the appropriate review. Pairing fleet positions with these indicators helps an operations team investigate changes in voyage activity, while keeping environmental reporting distinct from live tracking.

Make the integration reliable

Global AIS data is refreshed near real time, but coverage and the age of individual reports can vary. Cache results according to your operational needs, retain the original observation timestamp, and make stale data visibly different from a fresh position. A cache retrieval time is not a substitute for timestamp_utc.

Expect incomplete records. A vessel may have no name, heading, ETA, weather, or history in a particular response. Validate coordinates before drawing a marker, handle nulls explicitly, and avoid interpreting a missing value as evidence of a vessel’s operational status. When history is available, use its timestamps to order points and show gaps rather than drawing an uninterrupted journey through unknown periods.

Handle errors by category. A 400 indicates a missing or invalid parameter, 401 an invalid or missing key, 404 a vessel or port that was not found, and 422 a parameter outside the permitted range. For 429 and 500 responses, use bounded retries with backoff; do not repeatedly retry invalid requests without correcting them. Log enough context to diagnose failures without logging the API key.

All endpoints use the same base URL and X-API-Key authentication. The consistent response envelope lets a client share error handling across discovery, tracking, fleet, port, and emissions workflows. For teams connecting maritime data to an assistant-based workflow, MCP is also available.

Frequently asked questions

Can I track a car carrier by name?

Use vessel search to find candidate records by name, then verify the result using its IMO, MMSI, type, and other particulars. Track the verified identifier rather than relying on a fuzzy name match for ongoing updates.

How much position history can I request?

The tracking endpoint defaults to 24 hours and accepts up to 168 hours through hours. A request for a window does not guarantee that AIS points will be available throughout it.

Is an AIS ETA a confirmed port arrival time?

No. Treat the AIS ETA, a predicted ETA, and a port expected-arrival entry as distinct data points. Each can be missing or change, and none should automatically be presented as a confirmed berth time.

Can I track several car carriers in one request?

Yes. Use POST /vessels/fleet with verified IMO or MMSI identifiers for a batch fleet view. Request individual tracking details when an operator needs a vessel’s history or additional voyage context.

Ready to build a car carrier tracking workflow? Register to start a seven-day free trial, verify your vessel identifiers, and connect live tracking, fleet operations, port arrivals, and emissions data through one API.

Ready to get started?

Get your API key and start tracking vessels in minutes.

Get API Key