A vessel tracking API turns the AIS broadcasts of the world's ships into JSON you can query: where a vessel is, what it is, where it has been, and which vessels are in an area. This guide goes from the first request to an integration you can leave running, with examples in curl, Python and Node.js against our API. The same ideas apply to any provider.
1. Get a key and keep it on the server
Create a free account, verify your email, open Developer in the app and create an API key. The key is shown once. Treat it like a password:
- keep it in an environment variable or a secret manager, never in the code;
- call the API from your server, never from a browser or a mobile app, where anyone can read the key;
- use one key per application, so you can revoke one without breaking the others.
Every request carries the key in the X-API-Key header:
export WINGO_KEY="your key"
curl -H "X-API-Key: $WINGO_KEY" "https://wingo-marine.com/api/public/v1/vessels/211331640"
2. Look a vessel up
Vessels are addressed by MMSI (9 digits) or IMO number (7 digits) on the same route; the API tells them apart by length. Names are not unique, so they are a search, not an identifier (more in MMSI vs IMO number).
import os, requests
API = "https://wingo-marine.com/api/public/v1"
session = requests.Session()
session.headers["X-API-Key"] = os.environ["WINGO_KEY"]
r = session.get(f"{API}/vessels/9074729", timeout=30)
r.raise_for_status()
v = r.json()
print(v["name"], v["mmsi"], v["lat"], v["lon"], v["sog"], v["positionTs"])
The detail response combines the last position (lat, lon, sog, cog, heading, navStatus, positionTs), the identity (mmsi, imo, name, callsign, shipType, category), the voyage the crew declared (destination, eta, draught) and the dimensions (dimA to dimD). The vessel location API and vessel particulars API pages describe each field and how many vessels have it.
Always read positionTs. A position is only as useful as it is recent, and AIS coverage is uneven: near busy coasts a vessel is heard constantly, far offshore much less often.
3. Find vessels
When you do not know the identifier, search:
r = session.get(f"{API}/vessels", params={"search": "maersk", "category": "cargo", "pageSize": 50}, timeout=30)
page = r.json()
print(page["total"], "matches")
for v in page["items"]:
print(v["mmsi"], v["imo"], v["name"])
Lists come as { "items": [...], "total": N, "page": 1, "pageSize": 50 }. The same filters work on searches and on area queries: category, shipType, navStatus, flag (from the MMSI), destination, minSpeed, minLength, maxLength and signalAgeMaxMin, which keeps only vessels whose last position is recent enough.
4. Ask for an area
To see what is happening in a port approach, a strait or around your own asset, ask for a bounding box:
const params = new URLSearchParams({ minLat: "51.5", minLon: "3.5", maxLat: "52.2", maxLon: "4.6", signalAgeMaxMin: "60" });
const res = await fetch(`https://wingo-marine.com/api/public/v1/vessels/in-bbox?${params}`, {
headers: { "X-API-Key": process.env.WINGO_KEY },
});
const vessels = await res.json();
console.log(vessels.length, "vessels reported in the last hour");
A large box in busy waters can hold more vessels than one response returns. Rather than returning only the densest corner, the API samples the box on a grid in proportion to the real number of vessels in each cell, so quiet areas are not crowded out. For a complete picture of a busy region, split it into smaller boxes.
5. Look back in time
Two routes cover the past:
GET /vessels/{id}/track?hours=returns the sampled positions of the last hours, up to seven days, for a quick look at the recent route.GET /vessels/{id}/history?from=&to=returns the key points of the voyage between two dates, for any window of up to 31 days: hourly points at sea, denser points in port areas, and every departure, stop and sharp turn. See the historical positions API.
r = session.get(f"{API}/vessels/211331640/history", params={"from": "2026-11-25", "to": "2026-12-02"}, timeout=60)
points = r.json()
coords = [(p["lon"], p["lat"]) for p in points] # ready for a GeoJSON LineString
6. Understand credits
Every call spends a published number of credits, and the price of each route is listed in the API reference. Two response headers tell you where you stand:
X-Credits-Cost: what this call cost;X-Credits-Remaining: what is left on the account.
Log them. They make your spending visible per feature and let you alert yourself before you run out. When credits are exhausted, the API answers 402 and charges nothing; there is no overage bill.
Design for cost the same way you design for speed:
- cache vessel particulars, which rarely change, for a day or more;
- ask for a whole fleet in one call (
GET /fleets/{fleetId}/positions) rather than one call per vessel; - prefer webhooks to polling for changes (see fleet monitoring with webhooks).
7. Handle errors and rate limits
| Status | Meaning | What to do |
|---|---|---|
| 400 | invalid parameter | fix the request; do not retry |
| 401 | missing or invalid key | check the key; do not retry |
| 402 | not enough credits | stop, alert, top up |
| 403 | account disabled, or fleet change without a plan | check the account |
| 404 | vessel, port or fleet not found | treat as "unknown", not as an outage |
| 429 | rate limit | wait the seconds in Retry-After, then retry |
| 5xx | temporary server problem | retry with backoff |
A small wrapper handles all of it:
import time
def get(path, **params):
for attempt in range(5):
r = session.get(f"{API}{path}", params=params, timeout=30)
if r.status_code == 429:
time.sleep(int(r.headers.get("Retry-After", "1")))
continue
if r.status_code >= 500:
time.sleep(2 ** attempt)
continue
if r.status_code == 404:
return None
r.raise_for_status()
print("credits left:", r.headers.get("X-Credits-Remaining"))
return r.json()
raise RuntimeError(f"giving up on {path}")
The rate limit applies per key, in requests per second. If you have many vessels to process, a steady queue at a few requests per second finishes sooner than bursts that keep hitting 429.
8. Generate a client, or let an assistant write it
The API is described in an OpenAPI 3.1 document at /openapi.json, so you can generate a typed client in most languages instead of writing requests by hand. For AI coding assistants, /llms-full.txt holds the whole reference in plain Markdown.
A production checklist
- The key lives on the server, in a secret store.
- Every request has a timeout.
429and5xxare retried with a delay;4xxerrors are not.- Positions are judged by
positionTs, not by arrival time. - Vessels are stored by MMSI and IMO, never by name.
- Particulars are cached; fleets are read in one call; changes come by webhook.
- Credit usage is logged from the response headers.
That is everything a dependable integration needs. When you are ready to try, the vessel tracking API page lists every endpoint with its price per call, and a free account comes with credits to test them.