AIS
AIS AIVDM websocket
A streaming websocket endpoint which exports received AIS messages as NMEA AIVDM sentences,
for integration with OpenCPN and other AIS tools.
Each AIS message is sent as a websocket text message containing one or more AIVDM sentences,
each followed by \r\n. Messages longer than one sentence are split into numbered sentence
groups, as in the NMEA standard. Messages from all AIS datasources are included. Messages
sent by the client are ignored.
readonly
AIS/phy/AIS/raw.wsWEBSOCKET UPGRADEPARAMETERS
user
string
OPTIONALLogin user ID; most websocket client APIs do not support basic-auth, cookies, or other header-based login methods.
You must provide either user and password
GET variables, or an API token or logins ession token via the
KISMET GET variable.
password
string
OPTIONALPassword associated with the user.
You must provide either user and password
GET variables, or an API token or logins ession token via the
KISMET GET variable.
KISMET
string
OPTIONALAn API key or session token key.
You must provide either user and password
GET variables, or an API token or logins ession token via the
KISMET GET variable.
websocat ws://user:password@localhost:2501/phy/AIS/raw.ws
AIS AIVDM by datasource
Websocket stream of the AIS messages received by a single datasource, as NMEA AIVDM
sentences in the same format as the AIS AIVDM websocket.
Messages sent by the client are ignored.
readonly
AIS/datasource/by-uuid/{UUID}/ais_raw.wsWEBSOCKET UPGRADEPARAMETERS
UUID
string
REQUIREDDatasource UUID
user
string
OPTIONALLogin user ID; most websocket client APIs do not support basic-auth, cookies, or other header-based login methods.
You must provide either user and password
GET variables, or an API token or logins ession token via the
KISMET GET variable.
password
string
OPTIONALPassword associated with the user.
You must provide either user and password
GET variables, or an API token or logins ession token via the
KISMET GET variable.
KISMET
string
OPTIONALAn API key or session token key.
You must provide either user and password
GET variables, or an API token or logins ession token via the
KISMET GET variable.
AIS map data
readonly/phy/AIS/map_data.json/phy/AIS/map_data.ekjson/phy/AIS/map_data.prettyjsonGET
POSTPARAMETERS
This endpoint takes additional parameters by using a `POST` request and supplying a
JSON document or json form variable.
You can find more information about API parameters here.
fields
field simplification
OPTIONALKismet can reduce the amount of information being processed and returned by an API by simplifying the fields to only return the data needed by the caller.
You can read more about the field simplification API and how to use it here.
JSON object containing:
| Field | Content |
|---|---|
kismet.ais.map.min_lat, kismet.ais.map.max_lat | Latitude range of the stations |
kismet.ais.map.min_lon, kismet.ais.map.max_lon | Longitude range of the stations |
kismet.ais.map.devices | List of device records |
If no AIS stations have been seen, an object with kismet.common.error is returned instead.