Spire Maritime AIS TCP Stream

Always-on real-time AIS feed delivered over a RAW TCP SOCKET (not HTTP, not WebSocket). Client opens a TCP connection to streamingv2.ais.spire.com port 56784, authenticates with a token, and receives encoded AIS sentences in NMEA 0183 v4.0 with a timestamp TAG-block prefix, one sentence per line. A server-side cursor resumes the stream after brief disconnects. This is a plain TCP transport - there is NO documented WebSocket (wss://) endpoint.

API entry from apis.yml

apis.yml Raw ↑
aid: spire-maritime:spire-maritime-ais-tcp-stream
name: Spire Maritime AIS TCP Stream
tags:
- Real-Time Data
- Streaming
- AIS
- NMEA 0183
- TCP
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
humanURL: https://documentation.spire.com/tcp-stream-v2/using-the-tcp-stream/
baseURL: streamingv2.ais.spire.com:56784
properties:
- url: https://documentation.spire.com/tcp-stream-v2/using-the-tcp-stream/
  type: Documentation
description: Always-on real-time AIS feed delivered over a RAW TCP SOCKET (not HTTP, not WebSocket). Client
  opens a TCP connection to streamingv2.ais.spire.com port 56784, authenticates with a token, and receives
  encoded AIS sentences in NMEA 0183 v4.0 with a timestamp TAG-block prefix, one sentence per line. A
  server-side cursor resumes the stream after brief disconnects. This is a plain TCP transport - there
  is NO documented WebSocket (wss://) endpoint.