How to Track a LNG Carrier

How to Track a LNG Carrier

You need to track a specific LNG carrier, compute a credible ETA to discharge, monitor port congestion risk, and keep your operations dashboard and ESG reporting accurate. By the end of this guide you’ll be able to search for an LNG carrier by name/IMO/MMSI, fetch its live AIS position and 48-hour track, compute voyage analytics, and pull port congestion signals—using a single, consistent REST API.

What makes LNG tracking different (and what the API gives you)

LNG carriers operate on tight laycan windows with temperature-controlled cargoes and high port safety constraints. For developers building fleet dashboards or TMS integrations, the practical needs are:

Illustration: How to Track a LNG Carrier
  • Resolve the correct vessel identity quickly (IMO/MMSI/name), with vessel type filters limited to gas carriers.
  • Pull a reliable last position, heading/course, and recent track to derive speed trends.
  • Get the active route, last port calls, and predicted ETA fields to power customer-facing ETAs.
  • Query port congestion snapshots to understand anchorage and potential wait times.
  • Attach emissions/efficiency context for ESG or charter-party clauses via IMO CII rating.

All of this is available via vessels-api.com in a single base URL, a single API key (X-API-Key), and a consistent JSON envelope. The endpoints we’ll use are:

  • GET /vessels/search
  • GET /vessels/track
  • GET /vessels/analytics
  • GET /ports/congestion
  • GET /vessels/green

Base URL for all requests: https://vessels-api.com/api/V1. Authentication: X-API-Key: YOUR_API_KEY.

Step 1 — Identify your LNG carrier (search by name, IMO, MMSI)

If your workflow starts with a voyage nomination or a fixture recap, you’ll often have the vessel name and sometimes the IMO. Use /vessels/search to resolve it into canonical identifiers and confirm the vessel type is an LNG carrier (gas carrier):

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

Key parameters:

  • query: free text for name, IMO, or MMSI (fuzzy match supported).
  • ship_type: narrow to Gas Carrier (helpful to exclude oil/chem tankers).
  • page, per_page: paginate to up to 100 per page.

The response always wraps in {status, success, message, data}. Inside data.vessels you’ll see fields like imo, mmsi, name, vessel_type, flag, deadweight_tonnage (DWT), length_m, width_m. Cache IMO/MMSI for downstream calls.

Step 2 — Live AIS and 48-hour track for an LNG carrier

With the MMSI or IMO confirmed, request the current position, track history up to 168 hours, active route, predicted ETA, and last port visits using /vessels/track. Below is the official, copy-pasteable example that demonstrates the request and full response structure.

Official cURL

Official JSON response

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

What to read and why:

  • data.current_position.latitude/longitude: decimal degrees; plot straight onto a map. Timestamps are UTC ISO-8601 with timezone offset.
  • speed_knots, course_degrees, heading_degrees: movement context; course is track over ground.
  • navigational_status: integer per AIS status codes; helps distinguish underway vs. anchored.
  • route.departure_port, destination_port, avg_speed_knots: voyage structure and a reasonable basis for ETAs.
  • last_port_visits: operational history for auditing and port rotation heuristics.

Include optional query params when needed:

  • hours: defaults to 24 (max 168). Choose 48–72 hours to capture an LNG carrier’s last sea leg.
  • include_route, include_predicted_eta, include_weather: enrich the response if your UI needs them.

Python example — fetch track and compute a map marker + ETA label

import requests
from datetime import datetime, timezone

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://vessels-api.com/api/V1"

def track_lng_carrier(mmsi: str, hours: int = 48):
url = f"{BASE_URL}/vessels/track"
params = {"mmsi": mmsi, "hours": hours}
headers = {"X-API-Key": API_KEY}
r = requests.get(url, headers=headers, params=params, timeout=30)
r.raise_for_status()
payload = r.json()
if not payload.get("success"):
raise RuntimeError(payload.get("message", "Track error"))

data = payload["data"]
cp = data.get("current_position") or {}
route = data.get("route") or {}
vessel = data.get("vessel") or {}

lat = cp.get("latitude")
lon = cp.get("longitude")
speed = cp.get("speed_knots") # knots
cog = cp.get("course_degrees")
ts = cp.get("timestamp_utc") # ISO-8601 UTC
dest_port = cp.get("destination") or route.get("destination_port")
eta_field = cp.get("eta") or data.get("predicted_eta")

# Friendly ETA string for UI
eta_str = "ETA n/a"
if eta_field:
try:
eta_dt = datetime.fromisoformat(eta_field.replace("Z", "+00:00"))
eta_str = f"ETA {eta_dt.astimezone(timezone.utc).strftime('%Y-%m-%d %H:%M UTC')}"
except Exception:
eta_str = "ETA parsing error"

marker = {
"id": vessel.get("mmsi") or vessel.get("imo"),
"title": vessel.get("name") or f"IMO {vessel.get('imo')}",
"position": {"lat": lat, "lng": lon},
"speed_knots": speed,
"course_degrees": cog,
"timestamp_utc": ts,
"destination": dest_port,
"eta_label": eta_str,
}
return marker, data

if __name__ == "__main__":
marker, full = track_lng_carrier("258785000", 48)
print(marker)

Implementation notes:

  • All timestamps are UTC. Normalize in your UI layer.
  • Speed is in knots; distances from route are in nautical miles (NM).
  • Response follows the same top-level envelope for every endpoint, simplifying client error handling.

Step 3 — LNG-specific voyage analytics for dashboards

Use /vessels/analytics to summarize distance, speed, and port-call intensity for the last 24 hours, 7 days, 30 days, or 90 days. For LNG, 7–30 day windows are often most actionable for utilization and schedule reliability views.

Response fields you’ll typically chart:

  • statistics.total_distance_nm: sea miles covered in period.
  • statistics.avg_speed_knots and max_speed_knots: performance and weather/route effects.
  • statistics.port_calls_count, total_time_in_port_hours: laytime and terminal utilization impacts.
  • statistics.ports_visited: useful to validate rotation patterns for shuttle LNG routes.

Use this endpoint on a nightly batch to keep an LNG performance pane updated without replaying raw AIS data.

Step 4 — Anticipate berth readiness with port congestion

Congestion is a real cost driver for LNG scheduling. Query /ports/congestion with a UNLOCODE (e.g., ARBUE for Buenos Aires, SGSIN for Singapore, NLRTM for Rotterdam) to pull a snapshot of ships in anchorage and at berth, plus wait-time statistics over a chosen window.

Key outputs to wire into ETAs and risk flags:

  • snapshot.vessels_in_anchorage and vessels_at_berth: short-term load on pilotage and jetties.
  • statistics.avg_wait_time_hours_last_7d and max_wait_time_hours_last_7d: planning buffers.
  • statistics.avg_berth_time_hours_last_7d: proxy for turnaround characteristics.
  • statistics.port_calls_count: activity baseline to normalize expectations.

Because LNG terminals can have special berth constraints, even a small increase in anchorage count can materially move berth windows. Use this endpoint as a multiplier on your internal ETA logic when congestion thresholds are crossed.

Step 5 — ESG and compliance context with IMO CII

Many LNG shipping programs report on carbon intensity. Use /vessels/green to fetch an estimated CII score and rating (A to E), scoped to the last 24 hours, 7 days, 30 days, or 1 year.

Fields to persist with each voyage leg or monthly report:

  • estimated_emissions.co2_tons and co2_per_nm: absolute and intensity metrics.
  • cii.score and cii.rating: compare against MEPC.339(76) guidance.
  • period and distance_nm: auditability.

Attach CII to fixture records or to your fleet dashboard row for the LNG carrier; this avoids bespoke data joins later in compliance workflows.

Batch multiple LNG carriers in a single call

For control rooms or NOC dashboards tracking 10–50 LNG carriers simultaneously, reduce chatter with /vessels/fleet. Submit IMO/MMSI pairs and request positions and routes in one POST.

Use the top-level data.fleet summary to power KPI tiles (total_vessels, vessels_at_sea, vessels_in_port) without scanning the entire array.

Putting it together — a minimal LNG tracking workflow

1) Resolve identity

Search by name and filter for Gas Carrier to get a reliable IMO/MMSI pair. Store IMO as primary key; MMSI is ideal for tracking calls.

2) Fetch live track

Call /vessels/track with hours=48. Save current_position and route. Plot the position and color-code based on navigational_status and speed_knots.

3) Compute ETA with congestion context

Use route.avg_speed_knots and distance remaining (if present), then apply a buffer if /ports/congestion indicates high anchorage counts or elevated avg_wait_time_hours_last_7d.

4) Update analytics nightly

Run /vessels/analytics with period=7d or 30d for each LNG carrier to keep utilization and port-call charts current.

5) Refresh ESG indicators monthly

Pull /vessels/green with period=1y or 30d and store cii.rating next to the vessel record; surface it in your dashboard and compliance exports.

JavaScript example — combine track + analytics for an LNG widget

async function fetchJson(url, headers) {
const res = await fetch(url, { headers });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const json = await res.json();
if (!json.success) throw new Error(json.message || "API error");
return json.data;
}

async function lngWidget(mmsi) {
const API_KEY = "YOUR_API_KEY";
const BASE = "https://vessels-api.com/api/V1";
const headers = { "X-API-Key": API_KEY };

// 1) Track
const trackUrl = `${BASE}/vessels/track?mmsi=${encodeURIComponent(mmsi)}&hours=48`;
const trackData = await fetchJson(trackUrl, headers);

// 2) Analytics (7d)
const analyticsUrl = `${BASE}/vessels/analytics?type=vessel&mmsi=${encodeURIComponent(mmsi)}&period=7d`;
const analyticsData = await fetchJson(analyticsUrl, headers);

const cp = trackData.current_position || {};
const route = trackData.route || {};
const stats = analyticsData.statistics || {};

return {
mmsi,
lat: cp.latitude,
lon: cp.longitude,
speed_knots: cp.speed_knots,
course_degrees: cp.course_degrees,
timestamp_utc: cp.timestamp_utc,
destination_port: cp.destination || route.destination_port,
avg_speed_knots_route: route.avg_speed_knots,
total_distance_last_7d_nm: stats.total_distance_nm,
port_calls_last_7d: stats.port_calls_count
};
}

// Example invocation:
lngWidget("258785000")
.then(widget => console.log(widget))
.catch(err => console.error(err));

Practical implementation details

  • Authentication: pass your key as X-API-Key: YOUR_API_KEY for every request.
  • Response envelope: all endpoints return {status, success, message, data}. Always check success and handle message on error states.
  • Timestamps: ISO-8601 with UTC offset (e.g., 2026-04-27T21:35:36+00:00). Normalize to UTC in code.
  • Units: knots for speed, nautical miles for distances, hours for durations/wait times.
  • Pagination: /vessels/search supports page and per_page (max 100). Persist pagination state in your UI.
  • Error handling: 400 for invalid/missing params, 401 for missing/invalid API key, 404 for not found, 422 for out-of-range parameters, 429 for rate limiting, 500 for server errors. Retry only on transient classes and exponential backoff where appropriate.
  • Caching: cache search results by IMO; cache analytics responses (7–30d) for several minutes to reduce load. Avoid caching live track longer than your UI refresh interval.

Why developers choose this API for LNG tracking workflows

  • Single base URL and a single header for auth—no per-endpoint differences.
  • Consistent JSON envelope across all endpoints simplifies client libraries.
  • Coverage designed for operational systems: track + route + last ports + analytics + port congestion + CII.
  • Scales from one-off LNG fixtures to enterprise fleet rooms; the /vessels/fleet POST reduces round-trips for multi-ship boards.

FAQ

Q: Do I need both IMO and MMSI to track an LNG carrier?
A: No. Pass either imo or mmsi to /vessels/track (one is required). In practice, MMSI is best for live tracking; IMO is best as your canonical vessel ID in storage.

Q: How fresh is the AIS position data?
A: Positions are delivered with near real-time refresh rates. Use current_position.timestamp_utc and age_minutes to decide when to flag stale positions in your UI.

Q: Can I filter search results to only LNG carriers?
A: Yes. Use /vessels/search with ship_type=Gas Carrier and your query string (name/IMO/MMSI). Combine with flag or year_built filters if needed.

Q: How do I combine ETAs with port congestion?
A: Start with route.eta or predicted_eta from /vessels/track. If /ports/congestion shows higher-than-normal anchorage or avg_wait_time_hours_last_7d, apply a buffer in your ETA logic and alert downstream systems.

Q: Is there a batch endpoint for tracking multiple LNG ships at once?
A: Yes. POST /vessels/fleet with an array of IMO/MMSI objects, and set include_positions/include_routes as needed to populate a full dashboard in one request.

Next steps

Build your first LNG tracking workflow with the endpoints above and wire them into your TMS or control-room UI. Use the links below to create an API key, explore the full endpoint reference, and discover machine-checkable schemas via MCP.

Ready to get started?

Get your API key and start tracking vessels in minutes.

Get API Key