API products

Historical vessel positions API: where a ship has been

REST · JSON · X-API-Key · OpenAPI 3.1

Where a vessel has been: the key points of its voyages between two dates, for any window of up to 31 days per request. Each point has the position, speed, course and time, so you can redraw a voyage, check where a vessel was on a given day or measure how long it stayed somewhere.

What you get

GET /vessels/{id}/history?from=&to= returns [{ lat, lon, sog, cog, ts, positionAccuracyM }], oldest first. The points are the moments that describe a voyage, not every raw AIS message:

  • one point an hour at sea, and one every 15 minutes while the vessel moves through a port area;
  • departures and stops, port arrivals and departures, and turns of more than 30°;
  • the last point before the vessel goes quiet for more than two hours.

For the recent past at a finer grain, GET /vessels/{id}/track?hours= returns the sampled positions of the last hours (up to 7 days).

Coverage

311,000+vessels with a position in the last 24 hours, each one adding to the history
963,000+vessels known to the API
12,000+ports with a UN/LOCODE

A window of up to 31 days per request; for a longer period, ask for consecutive windows. Counted on 2026-12-04; the figures are recounted every few hours.

Endpoints and prices

Every route lives under https://wingo-marine.com/api/public/v1, takes the X-API-Key header and answers JSON. The cost is live: it is what the call spends today, and every response tells you in X-Credits-Cost and X-Credits-Remaining.

CallWhat it returnsCostPer 1,000 calls
GET /vessels/{id}/history?from=&to=Key points of the voyage between two dates (a window of up to 31 days)10 creditsfrom €4.00
GET /vessels/{id}/track?hours=The recent track, sampled positions of the last hours (up to 7 days)5 creditsfrom €2.00

A free account receives 200 credits once its email is verified. Credits come with a monthly plan or a one-time pack; out of credits means HTTP 402, never an overage bill. See plans and packs →

Examples

Create a free account, open Developer in the app, create a key and keep it server-side. Then:

curl

curl -H "X-API-Key: $WINGO_KEY" \
  "https://wingo-marine.com/api/public/v1/vessels/211331640/history?from=2026-11-25&to=2026-12-02"

Python (requests)

import os, requests

r = requests.get(
    "https://wingo-marine.com/api/public/v1/vessels/9312341/history",
    params={"from": "2026-11-25", "to": "2026-12-02"},
    headers={"X-API-Key": os.environ["WINGO_KEY"]},
    timeout=30,
)
r.raise_for_status()
points = r.json()
print(len(points), "points")
for p in points[:5]:
    print(p["ts"], p["lat"], p["lon"], p["sog"])

JavaScript (Node 18+): a GeoJSON line

const res = await fetch("https://wingo-marine.com/api/public/v1/vessels/211331640/history?from=2026-11-25&to=2026-12-02", {
  headers: { "X-API-Key": process.env.WINGO_KEY },
});
const points = await res.json();
const line = {
  type: "Feature",
  geometry: { type: "LineString", coordinates: points.map((p) => [p.lon, p.lat]) },
  properties: { from: points[0]?.ts, to: points.at(-1)?.ts },
};
console.log(JSON.stringify(line));

Generate a typed client from /openapi.json, or point an AI assistant at /llms-full.txt.

Questions

How long a period can one request cover?

Up to 31 days between from and to. For a longer period, request consecutive windows.

Do I get every AIS message?

No. You get the key points of the voyage: an hourly point at sea, denser points in port areas, and every departure, stop, port arrival and departure and sharp turn. That keeps a month of history small enough to draw and analyse directly.

What does a history request cost?

10 credits per request, whatever the window; the recent track costs 5 credits.

More of the API

From the blog

Make your first call today

Free account, no card, 200 credits to try every endpoint.

Get a free API key