Open Waters · Schema

Stats

MarineOpen SourceDataNavigation

Properties

Name Type Description
time string
stations object
vessels object `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 recor
events object
clients object
sources object Keyed by source kind: each upstream by name, every authenticated contributor as `station`, all UDP senders as `udp`.
View JSON Schema on GitHub

JSON Schema

openwaters-io-stats-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openwaters-io/json-schema/openwaters-io-stats-schema.json",
  "title": "Stats",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ais-openapi.json#/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": "#/$defs/Windows"
        }
      }
    },
    "clients": {
      "type": "object",
      "properties": {
        "streams": {
          "type": "integer",
          "description": "Open WebSocket subscriptions."
        },
        "streams_opened": {
          "$ref": "#/$defs/Windows"
        },
        "requests": {
          "$ref": "#/$defs/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": "#/$defs/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"
              }
            }
          }
        }
      }
    }
  },
  "$defs": {
    "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"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/openwaters-io-stats"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API 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.