MaritimeplatformoperationId vessel
GET/v1/vessel
A vessel's last known position.
Send Authorization: Bearer sk_live_…. The key's plan must include theplatform product; which plans do.
Explained in Vessels and tracks.
Example
One vessel's last known position.
curl -G "https://api.oslew.com/v1/vessel" \
-H "Authorization: Bearer $GEO_API_KEY" \
--data-urlencode 'mmsi=366749490'from oslew import Client
# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")
answer = client.vessel(366749490)import { Client } from "@oslew/client";
// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });
const answer = await client.vessel(366749490);HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 292
ratelimit-reset: 1
{
"mmsi": 366749490,
"latest": {
"vessel": 366749490,
"time": 1735689548,
"lat": 32.72266,
"lon": -117.22707,
"sog": 0,
"cog": 2678,
"heading": 125,
"status": 15
},
"provenance": {
"name": "noaa-ais",
"release": "2024-12-31",
"license": "public domain (US Government work)"
},
"took_us": 243
}A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
Query
| Name | Type | Description |
|---|---|---|
mmsiqueryrequired | integer |
Responses
200 — The latest position, or null.
latestPosition | nullrequiredcogintegerrequiredTenths of a degree; 65535 unknown.headingintegerrequiredDegrees; 511 or 65535 unknown.latnumberrequiredlonnumberrequiredsogintegerrequiredTenths of a knot; 65535 unknown.statusintegerrequiredAIS navigational status 0–15; 15 unknown.timeintegerrequiredUnix seconds.vesselintegerrequiredMMSI.
mmsiintegerrequiredprovenanceSource | nullrequiredlicensestringrequirednamestringrequiredreleasestringrequired
took_usintegerrequired
With RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset(and their X-RateLimit-* aliases); see rate limits.
Refusals
Every refusal is a JSON object with an error string, except where noted.
| 400 | Bad request. |
| 401 | No key, or one that is unknown, revoked or suspended. |
| 403 | The key's plan does not include this route's product, or the request is larger than the plan allows. The body names the plan that does. |
| 429 | This product's bucket is empty: the key is going faster than its plan's sustained rate. Wait Retry-After seconds; nothing is used up. Carries Retry-After. |
| 503 | The pod cannot reach the control plane and its entitlements are too old to trust. Retry. |
A malformed query string or JSON body is refused by the framework before this route runs, in plain text rather than JSON; see errors.
Rendered from the OpenAPI document at commit b8f4bde-dirty; the same document is served at/v1/openapi.json and generates both clients.