Open Waters Stations API
The receivers that feed the network and the areas they cover. No token needed, 120 requests per minute per address. A token can carry its own limit.
The receivers that feed the network and the areas they cover. No token needed, 120 requests per minute per address. A token can carry its own limit.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/openwaters-io:openwaters-io-stations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: aiscast Stations API
version: 1.0.0
description: 'Live AIS data from openwaters.io: current vessel positions, receiving stations, usage stats, self-serve tokens, and HTTP ingest for feeders. Successful responses are JSON; errors and `/health` are plain text. CORS is open, times are UTC, and JSON is compressed (zstd or gzip) when the request sends `Accept-Encoding`.
The streams are documented separately: `/v0/stream` (WebSocket, aisstream.io-compatible), `/v1/stream` (WebSocket JSON frames, MQTT over WebSocket for feeders, or Server-Sent Events), `/v1/nmea` (WebSocket, raw NMEA), and raw NMEA ingest on UDP port 10110. `/mcp` is the MCP (Model Context Protocol) endpoint for AI assistants: Streamable HTTP, no sign-in, the same tiers as `/v1/vessels`. See openwaters.io/api/ais.
All requests require a valid `User-Agent` header that names your app, version, and a URL or email address, such as `my-app/1.2 (you@example.org)`. See the User-Agent policy.'
contact:
name: aiscast
url: https://github.com/openwatersio/aiscast
termsOfService: https://github.com/openwatersio/aiscast/blob/main/docs/contributor-agreement.md
license:
name: MIT
identifier: MIT
servers:
- url: https://ais.openwaters.io
tags:
- name: Stations
description: The receivers that feed the network and the areas they cover. No token needed, 120 requests per minute per address. A token can carry its own limit.
paths:
/v1/stations:
get:
operationId: listStations
tags:
- Stations
summary: List stations
description: Every receiving station heard in the last 30 days, with what it contributes, across restarts on a server that keeps its history in ClickHouse. A UDP station (`udp:` or `mmsi:`) is listed only once heard since the server last started. `events` counts messages the station delivered first, over the last 24 hours and 7 days. `vessels` is distinct MMSIs heard in the last 30 minutes and `vessels_24h` in the last 24 hours. `vessels_exclusive_24h` counts the vessels no other station heard in those 24 hours, the gap a station fills. `bbox` is the extent of positions heard since the server last started, a rough coverage footprint. Volunteer UDP stations appear as a keyed hash, never an address.
security: []
responses:
'200':
description: All stations, sorted by id.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Station'
example:
- station: kystverket/2573010
source: kystverket
events:
last_24h: 41812
last_7d: 280112
duplicates: 40
vessels: 61
vessels_24h: 212
vessels_exclusive_24h: 17
uptime_7d: 0.98
positions: 1500
first_seen: '2026-08-20T16:57:47Z'
last_seen: '2026-08-21T03:10:32Z'
last_age_s: 2
bbox:
- 59.41
- 10.31
- 59.93
- 10.78
- station: station:ed25519:9BEqQjPRE0sZse-EbW1xUJa0K2iTBTV3TCqz1sPS7Fk
source: station:ed25519:9BEqQjPRE0sZse-EbW1xUJa0K2iTBTV3TCqz1sPS7Fk
events:
last_24h: 18230
last_7d: 120412
duplicates: 512
vessels: 14
vessels_24h: 61
vessels_exclusive_24h: 9
uptime_7d: 1
positions: 15904
first_seen: '2026-08-20T16:57:47Z'
last_seen: '2026-08-21T03:10:31Z'
last_age_s: 3
bbox:
- 41.38
- -70.94
- 41.62
- -70.51
name: Quissett Harbor
name_from: operator
near: Falmouth, MA
'429':
$ref: '#/components/responses/RateLimited'
/v1/stations/{id}:
get:
operationId: getStation
tags:
- Stations
summary: Station details
description: One station's statistics plus a GeoJSON FeatureCollection of the vessels it was the latest to hear. Ids can contain slashes, such as `kystverket/2573010`.
security: []
parameters:
- name: id
in: path
required: true
description: Station id as reported by `/v1/stations`.
schema:
type: string
example: kystverket/2573010
responses:
'200':
description: The station and its vessels.
content:
application/json:
schema:
type: object
required:
- station
- vessels
properties:
station:
$ref: '#/components/schemas/Station'
vessels:
$ref: '#/components/schemas/FeatureCollection'
attribution:
type: object
description: Per source kind whose ship types or kinds `station.types` counts, the credit line to display with it. Absent when `types` is, or when it counts no source's type.
additionalProperties:
type: string
'503':
description: 'The station is not heard since the server started, and the history that lists stations heard before it has not answered: after a start until its first read, or once its reads have failed for 10 minutes. Retry after `Retry-After` seconds.'
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
error:
type: string
'404':
description: Unknown station id.
content:
application/json:
schema:
type: object
properties:
error:
type: string
example:
error: unknown station
'429':
$ref: '#/components/responses/RateLimited'
/v1/coverage/tiles.json:
get:
operationId: getCoverageTileJSON
tags:
- Stations
security:
- {}
- token: []
summary: Coverage map tiles
description: 'Where there are vessel positions from any source, live or historical, for the last 7 complete days, UTC, as vector tiles of H3 hexagons. Point a vector source at this URL, as for the vessel tiles. A cell the network did not hear has no feature, so draw the map beneath it as it is. With `station`, the tiles are that station''s cells, the tile URLs carry the parameter, `bounds` is the extent of all its cells, and `fit` frames the station without a few stray positions: each of its edges leaves out the farthest 5% of the station''s finest cells on that side.
The newest day is yesterday, since today is not over. `window` gives the first and last day and how many days in between have coverage. Tiles change once a day.
```js
map.addSource("coverage", { type: "vector", url: "https://ais.openwaters.io/v1/coverage/tiles.json" });
map.addLayer({
id: "coverage",
type: "fill",
source: "coverage",
"source-layer": "coverage",
paint: { "fill-color": "#1565c0", "fill-opacity": ["/", ["get", "days"], 7] },
});
```
#### Properties
Each cell is a polygon in the `coverage` layer, with its H3 index as the feature id. The resolution follows the zoom: 3 below zoom 5, 4 to zoom 6, 5 to zoom 8, and 6 above.
- `vessels`: distinct vessels heard in the cell a day, averaged over the window
- `days`: how many days of the window the network heard the cell at all
- `stations`: how many distinct stations heard the cell in the window. A volunteer station counts once whatever streams it tags, and each aggregator and government feed counts as one station, whatever receivers or paths it names, so a cell only one of them hears is as fragile as one heard by a single receiver.
- `station_ids`: the stations counted in `stations`, as a JSON array in a string. A volunteer station is its id in `/v1/stations`; an aggregator or government feed is its source.'
parameters:
- name: station
in: query
required: false
description: 'A station id, as `/v1/stations` lists it. Answers that one station''s cells instead of the network''s: `days` counts the days the station heard the cell, `vessels` is still averaged over the window''s days, and `stations` is 1.'
schema:
type: string
maxLength: 256
responses:
'200':
description: TileJSON, with the window the tiles cover.
content:
application/json:
schema:
type: object
required:
- tilejson
- tiles
- attribution
- vector_layers
- window
properties:
fit:
type: array
items:
type: number
minItems: 4
maxItems: 4
description: 'With `station` only: [west, south, east, north] to frame the station by, each edge leaving out the farthest 5% of the station''s finest cells on that side. `bounds` takes in every cell.'
window:
type: object
required:
- from
- to
- days
properties:
from:
type: string
format: date
description: First day of the window, UTC
to:
type: string
format: date
description: Last day of the window, yesterday in UTC
days:
type: integer
description: Days in the window the server holds coverage for, up to 7
'429':
$ref: '#/components/responses/RateLimited'
'400':
description: '`station` is longer than 256 characters. The body is JSON with an `error`.'
'404':
description: The station heard nothing in the window or no station has that id, or briefly while the station's days are rebuilt. The body is JSON with an `error`.
'503':
description: 'The server has no coverage loaded: it runs without ClickHouse, or ClickHouse has no coverage for the window yet. With `station`, also when loading the station''s cells failed.'
/v1/coverage/tiles/{z}/{x}/{y}:
get:
operationId: getCoverageTile
tags:
- Stations
security: []
summary: Coverage tile by z/x/y
description: One coverage tile, at the URL template that `/v1/coverage/tiles.json` points to. Most maps should use the TileJSON instead. Coverage tiles share the vessel tiles' rate limit of 600 requests per minute per address.
parameters:
- name: z
in: path
required: true
description: Zoom, 0–22. TileJSON advertises 10 as the maximum, and clients overzoom past it.
schema:
type: integer
minimum: 0
maximum: 22
- name: x
in: path
required: true
description: Column, 0 to 2^z−1.
schema:
type: integer
minimum: 0
- name: y
in: path
required: true
description: Row, 0 to 2^z−1, from the north.
schema:
type: integer
minimum: 0
- name: station
in: query
required: false
description: A station id, as `/v1/stations` lists it. Answers that one station's cells instead of the network's, with `stations` 1 in every cell.
schema:
type: string
maxLength: 256
responses:
'200':
description: The tile, gzipped when the request accepts gzip. A tile over water nobody heard has an empty `coverage` layer.
content:
application/vnd.mapbox-vector-tile:
schema:
type: string
format: binary
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/RateLimited'
'404':
description: The station heard nothing in the window or no station has that id, or briefly while the station's days are rebuilt. The body is plain text.
'503':
description: The server has no coverage loaded, or with `station`, loading the station's cells failed.
components:
schemas:
Windows:
type: object
description: 'A rolling counter: hourly buckets, kept across restarts.'
required:
- last_24h
- last_7d
properties:
last_24h:
type: integer
last_7d:
type: integer
VesselFeature:
type: object
description: One vessel and its last known position.
required:
- type
- id
- geometry
- properties
properties:
type:
type: string
const: Feature
id:
type: integer
description: MMSI.
geometry:
type:
- object
- 'null'
description: The last known position. Always present in a FeatureCollection; `null` from `/v1/vessels/{mmsi}` for a vessel whose position was never heard.
required:
- type
- coordinates
properties:
type:
type: string
const: Point
coordinates:
type: array
description: '`[longitude, latitude]`.'
items:
type: number
minItems: 2
maxItems: 2
properties:
type: object
required:
- mmsi
- kind
- seen
- source
- station
- msg_type
properties:
mmsi:
type: integer
kind:
type: string
enum:
- vessel
- aton
- base
- sar
- gear
description: From the station's message types, and otherwise from what it reports about itself, as the `kind` filter describes. `sar` is a search and rescue aircraft or an active distress beacon (AIS-SART, man-overboard, EPIRB-AIS). `gear` is a transmitter on fishing gear, usually a net buoy; it has no `flag`, and its `type`, when present, is whatever ship type code it sends, often a reserved one. New kinds may be added; treat an unknown one as `vessel`.
name:
type: string
description: Present only when known.
type:
type: integer
description: AIS ship/cargo code, or AtoN type. Present only when known.
cog:
type: number
description: Course over ground, degrees. Present only when known.
sog:
type: number
description: Speed over ground, knots. Present only when known.
heading:
type: integer
description: True heading, degrees, 0 to 359. Present only when known; a value out of that range, which some transmitters send, is left out.
nav_status:
type: integer
description: AIS navigational status. Present only when known.
near:
type: string
description: The town or region nearest the position, such as `Santa Monica, CA` or `Munster, Ireland`. On `q` searches and `/v1/vessels/{mmsi}`, and absent more than 100 km from a town of 5,000, or without a position. Place names from GeoNames, CC BY 4.0.
flag:
type: string
description: ISO 3166-1 alpha-2 code of the flag state, from the MMSI's maritime identification digits. Present only when the MID is known, and never for `gear`, whose MMSI no flag state assigned.
imo:
type: integer
description: IMO number from the vessel's static data. Present only when sent.
callsign:
type: string
description: Radio call sign. Present only when sent.
destination:
type: string
description: 'Destination as typed by the crew: a port name, a UN/LOCODE, or nothing useful. Present only when sent.'
eta:
type: string
description: Estimated arrival as sent, `MM-DD HH:MM` UTC, or `MM-DD` when the time is not available. AIS carries no year. Present only when sent.
draught:
type: number
description: Maximum static draught, metres. Present only when sent, and never for `gear`.
length:
type: integer
description: Overall length, metres, from the dimension fields. Present only when sent, and never for `gear`, whose size is a placeholder (a net buoy sends a 10 m square).
beam:
type: integer
description: Beam, metres. Present only when sent, and never for `gear`.
to_bow:
type: integer
description: 'Metres from the AIS antenna (the vessel''s reference point) to the bow; 511 means 511 or more. `to_bow` and `to_stern` add up to `length` and are present together once known, never for `gear`, and 0 can be a real value: a vessel that does not know where its antenna sits sends 0 to the bow and its length to the stern.'
to_stern:
type: integer
description: Metres from the AIS antenna to the stern; 511 means 511 or more. Present together with `to_bow`.
to_port:
type: integer
description: Metres from the AIS antenna to the port side; 63 means 63 or more. `to_port` and `to_starboard` add up to `beam` and are present together once known, never for `gear`; a vessel that does not know where its antenna sits sends 0 to port and its beam to starboard.
to_starboard:
type: integer
description: Metres from the AIS antenna to the starboard side; 63 means 63 or more. Present together with `to_port`.
first_seen:
type: string
format: date-time
description: The earliest report of the vessel the network holds, from live traffic or its archive. On `/v1/vessels/{mmsi}` only.
seen:
type: string
format: date-time
description: Time of the last message that updated the vessel.
source:
type: string
description: 'Source of that message: an upstream name, `station:<sub>` for an authenticated contributor (whatever transport it fed over), `udp:<hash>`, or `mmsi:<n>`.'
station:
type: string
description: Station that delivered that message.
msg_type:
type: string
description: aisstream-style type name of that message.
FeatureCollection:
type: object
description: GeoJSON FeatureCollection of vessels.
required:
- type
- features
- attribution
properties:
type:
type: string
const: FeatureCollection
features:
type: array
items:
$ref: '#/components/schemas/VesselFeature'
attribution:
type: object
description: Credit lines to display, one per source kind present in the features. The key is a feature's `source` value up to the first `:`. Every credit opens with "Open Waters AIS (https://openwaters.io/ais/)"; sources with their own terms add their credit after it.
additionalProperties:
type: string
truncated:
type: boolean
const: true
description: 'Present when a cap cut the list: a search past 50 matches, an area past 500 vessels older than 30 minutes, or an IMO number reported by more than 10 vessels.'
Station:
type: object
required:
- station
- source
- events
- duplicates
- vessels
- vessels_24h
- vessels_exclusive_24h
- uptime_7d
- positions
- first_seen
- last_seen
- last_age_s
properties:
station:
type: string
description: Station id. Volunteer UDP stations are a keyed hash of the sender, never an address. A feed's TAG `s:` adds a path naming one of its receivers, such as `barentswatch/terra`; a volunteer's station is its `source`, whatever its sentences' TAG `s:` says.
source:
type: string
events:
$ref: '#/components/schemas/Windows'
duplicates:
type: integer
description: Position messages another station delivered first, over the station's history, up to an hour behind; since the last restart while `uptime_7d` is null.
vessels:
type: integer
description: Distinct MMSIs whose positions the station heard in the last 30 minutes, its own vessel left out. Counts what is binned, up to about 7 minutes behind. 0 without ClickHouse or after 10 minutes of failed reads, when `uptime_7d` is null too.
vessels_24h:
type: integer
description: Distinct MMSIs whose positions the station heard in the last 24 hours, its own vessel left out. Up to about 7 minutes behind.
vessels_exclusive_24h:
type: integer
description: Of `vessels_24h`, the vessels no other station heard. A vessel counts whether this station delivered a message first or as a duplicate, and an aggregator's late copy of a report another station already delivered does not count as hearing it.
uptime_7d:
type:
- number
- 'null'
description: Share of hours with a position reception, from 0 to 1, over the last 7 days or since the station's first hour if later. The current hour counts once it has one. Null without ClickHouse, until the series' hourly totals have the station, while the totals are over 3 hours old, and while ClickHouse has not answered for 10 minutes.
name:
type: string
description: 'What to call the station: the name its operator chose when minting its token, else the name of the boat it is on. Absent when it has neither, or when moderation has locked it.'
name_from:
type: string
enum:
- operator
- vessel
description: Where `name` came from.
mmsi:
type: integer
description: The station's own vessel, from the `!AIVDO` sentences it sends.
near:
type: string
description: The town or region nearest the traffic the station hears, such as `Santa Monica, CA` or `Munster, Ireland`. Volunteer stations only. Place names from GeoNames, CC BY 4.0.
positions:
type: integer
description: Position messages the station delivered first, over the station's history, up to an hour behind; since the last restart while `uptime_7d` is null.
first_seen:
type: string
format: date-time
description: The station's first hour in its history, or when this server first heard it if earlier, or while `uptime_7d` is null; for a station not heard since the server started, its first hour in the last 30 days until its history is read. During the first backfill the history is partial, so the first hour can read later than it was.
last_seen:
type: string
format: date-time
description: The last message. For a station not heard since the server started, its last position reception the history holds, up to about 7 minutes behind, or the start of its last hour when that hour held only stale copies or the read of its last reception failed.
last_age_s:
type: integer
description: Seconds since `last_seen`.
bbox:
type: array
description: '`[minLat, minLon, maxLat, maxLon]` extent of positions heard since the server last started, a rough coverage footprint. Absent until the station hears one.'
items:
type: number
minItems: 4
maxItems: 4
hours:
type: array
description: '`GET /v1/stations/{id}` only: the station''s position receptions in each hour of the last 7 days, UTC, 168 counts oldest first, the current hour last, its own vessel''s included, as `uptime_7d` counts them. An hour with none is 0. Up to about 7 minutes behind, and read at most once a minute per station. Absent without ClickHouse, while the station list''s figures find ClickHouse down, for the minute after its read fails, and when the page waited 10 seconds behind another station''s read; each of those stands for the minute.'
items:
type: integer
minItems: 168
maxItems: 168
hours_from:
type: string
format: date-time
description: '`GET /v1/stations/{id}` only, with `hours`: the UTC hour its first count is for. Each later count is the next hour.'
types:
type: object
description: '`GET /v1/stations/{id}` only: the vessels the station heard in the last 24 hours, its own vessel left out, by type, each as `[vessels, unique]`, where unique counts those no other station heard, as `vessels_exclusive_24h` does. A key is an ITU ship type such as `"70"`: the latest non-zero one any source sent, within the last 35 days, else the one the vessel cache or record holds, credited to the vessel''s source as `/v1/vessels` credits it; `"0"` when none is known; or a kind for what is not a ship: `aton`, `base`, `sar` for a SAR aircraft or a distress beacon, or `gear`. Read apart from `vessels_24h`, so the counts can differ from it by a minute''s traffic. Absent without ClickHouse, while the station list''s figures find ClickHouse down, for the minute after its read fails, after a 10-second wait, and when the station heard no vessel. The response''s `attribution` credits the sources of the types.'
additionalProperties:
type: array
items:
type: integer
minItems: 2
maxItems: 2
example:
'70':
- 12
- 3
'37':
- 4
- 0
'0':
- 2
- 1
aton:
- 1
- 0
responses:
BadRequest:
description: Malformed parameter or body. The plain-text body says which.
content:
text/plain:
schema:
type: string
RateLimited:
description: Over the per-address or per-station request limit.
content:
text/plain:
schema:
type: string
example: rate limited
securitySchemes:
token:
type: http
scheme: bearer
description: 'An aiscast claim token (`ak1....`), created by `POST /v1/keys` or issued by the operator. Besides `Authorization: Bearer`, the token is accepted as an HTTP Basic password (`anything:<token>`, which is what AIS-catcher''s USERPWD sends) or as `?key=<token>` on the URL. A token that is present but invalid, expired, revoked, used outside its `cidr`, or lacking the role for the action is refused; it never degrades to anonymous access.'