Open Waters Status API
For status pages and monitors. No token needed.
For status pages and monitors. No token needed.
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-status-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 Status 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: Status
description: For status pages and monitors. No token needed.
paths:
/v1/stats:
get:
operationId: getStats
tags:
- Status
summary: Stats
description: 'A summary for status pages and growth tracking: stations, vessels, event rates, client counts, and a breakdown by source kind. Vessel counts come from the vessel record, which holds every vessel any archive has heard. The other counts are rolling 24-hour and 7-day windows that survive restarts, never since-start totals.'
security: []
responses:
'200':
description: The current summary.
content:
application/json:
schema:
$ref: '#/components/schemas/Stats'
example:
time: '2026-08-21T13:40:12Z'
stations:
total: 14
active: 11
by_source:
kystverket: 1
digitraffic: 1
station: 5
udp: 7
vessels:
total: 332255
active: 4812
with_position: 4790
by_kind:
vessel: 4689
aton: 88
base: 19
sar: 4
gear: 12
last_24h: 96267
last_7d: 176687
last_30d: 312480
new:
last_24h: 2115
last_7d: 19485
last_30d: 101240
events:
per_second: 212.4
last_24h: 18230411
last_7d: 121004312
duplicates:
last_24h: 2210560
last_7d: 15320011
clients:
streams: 9
streams_opened:
last_24h: 410
last_7d: 2822
requests:
last_24h: 28310
last_7d: 190412
sources:
kystverket:
events:
last_24h: 9120033
last_7d: 61233190
last_age_s: 0
vessels: 2411
vessels_exclusive: 180
delay:
n: 512
p50: 0.6
p99: 1.1
'429':
$ref: '#/components/responses/RateLimited'
/health:
get:
operationId: getHealth
tags:
- Status
summary: Health
description: '`ok` while data is reaching subscribers. 503 after two minutes of nothing. One silent source is not an outage while the others keep the stream flowing.'
security: []
responses:
'200':
description: Healthy.
content:
text/plain:
schema:
type: string
example: ok
'503':
description: Nothing is reaching subscribers.
content:
text/plain:
schema:
type: string
example: no events delivered to subscribers for 3m20s
/openapi.json:
get:
operationId: getOpenAPI
tags:
- Status
summary: OpenAPI specification
security: []
responses:
'200':
description: The OpenAPI description of this server.
content:
application/json:
schema:
type: object
'429':
$ref: '#/components/responses/RateLimited'
components:
schemas:
Stats:
type: object
required:
- time
- stations
- vessels
- events
- clients
- sources
properties:
time:
type: string
format: date-time
stations:
type: object
properties:
total:
type: integer
description: Stations heard in the last 30 days; only those heard since the server started in the first minute after a start, or while the history is unavailable.
active:
type: integer
description: Stations heard in the last 5 minutes.
by_source:
type: object
description: 'Station counts grouped by source kind: `station` (authenticated contributors), `udp`, `mmsi`, or the upstream name.'
additionalProperties:
type: integer
vessels:
type: object
description: '`total` and the windows count the vessel record, refreshed once a minute. `active`, `with_position`, and `by_kind` describe the vessels heard in the last 30 minutes. A server running without the record reports `total` as `active` and leaves out the windows.'
properties:
total:
type: integer
description: Every vessel the network has heard.
active:
type: integer
description: Vessels heard in the last 30 minutes.
with_position:
type: integer
description: Active vessels with a position.
by_kind:
type: object
description: Active vessels by kind.
additionalProperties:
type: integer
last_24h:
type: integer
description: Vessels heard in the last 24 hours.
last_7d:
type: integer
description: Vessels heard in the last 7 days.
last_30d:
type: integer
description: Vessels heard in the last 30 days.
new:
type: object
description: Vessels first heard in each window.
properties:
last_24h:
type: integer
last_7d:
type: integer
last_30d:
type: integer
events:
type: object
properties:
per_second:
type: number
description: Deduplicated event rate over the last 30 s.
last_24h:
type: integer
last_7d:
type: integer
duplicates:
$ref: '#/components/schemas/Windows'
clients:
type: object
properties:
streams:
type: integer
description: Open WebSocket subscriptions.
streams_opened:
$ref: '#/components/schemas/Windows'
requests:
$ref: '#/components/schemas/Windows'
sources:
type: object
description: 'Keyed by source kind: each upstream by name, every authenticated contributor as `station`, all UDP senders as `udp`.'
additionalProperties:
type: object
properties:
events:
$ref: '#/components/schemas/Windows'
last_age_s:
type: integer
description: Seconds since any member last produced an event.
vessels:
type: integer
description: Distinct MMSIs whose positions the source's stations heard in the last 30 minutes, stations' own vessels included. Counts what is binned, up to about 7 minutes behind. 0 without ClickHouse or after 10 minutes of failed reads, so a 0 alone says nothing about traffic.
vessels_exclusive:
type: integer
description: Of those, MMSIs no other source kind heard in that window.
delay:
type: object
description: Seconds from broadcast to arrival at aiscast over the last 512 position reports from this kind. The broadcast time is the report's UTC-second field placed in the minute of the event's canonical time, so delays of 55 s or more wrap. Absent until a position report with a valid second has been heard.
required:
- n
- p50
- p99
properties:
n:
type: integer
description: Samples in the window, at most 512.
p50:
type: number
p99:
type: number
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
responses:
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.'