Skip to main content

Connection

Connect to the WebSocket endpoint with your API key as a query parameter:
WebSocket streaming is available on the Pro ($50/mo) and **Max** ($100/mo) plans. Starter plan users will receive a connection rejection.

Firehose

The WebSocket is a firehose — once connected, all articles are pushed to you automatically as they arrive. There is no subscription step and no filtering. You receive everything. Max subscribers can opt in to JEV-powered News Insights with &insights=true; default connections are unchanged.

Connection Limit

Each user has 1 active WebSocket connection. A new connection from the same user takes over the slot; the old connection closes with code 1000 and reason Superseded by new connection.

Message Format

Each message is a JSON object matching the article schema:

Reconnection

The server may close connections periodically. Implement automatic reconnection with exponential backoff:

Disconnection

The connection closes when:
  • Your plan does not include streaming — Starter (close code 1008)
  • Invalid API key (close code 1008)
  • Server maintenance (implement auto-reconnect)