Skip to content
API reference · Streams

Stream events (Server-Sent Events)

GEThttps://fomodata.dev/v1/events/stream
Scopes:streams:readRate class:standardFlag:STREAMS_ENABLED

Server-Sent Events stream of realtime events, filtered like webhooks. Frames: id: <cursor>, event: <type>, data: <Event JSON>; a : ping comment every 15 s.

Reconnect with the Last-Event-ID header (browsers do this automatically) to resume after the last cursor — up to 1,000 missed events within your plan's history window are replayed first.

Counts toward your plan's concurrent stream connections (WebSocket + SSE). Test keys only receive test-mode events (sandbox data, livemode: false).

Example request

curl -N 'https://fomodata.dev/v1/events/stream?types=thesis.created&token=$RUN&handle=@milo&chain=robinhood' \
  -H "Authorization: Bearer $FOMODATA_API_KEY"

Parameters

Query parameters
typesstring
Comma-separated event types (default: all).
tokenstring
Comma-separated token refs ($SYMBOL, address, chain:address or tk_ id).
handlestring
Comma-separated Fomo handles.
chainstring
Comma-separated chains.
from_cursorstring
Resume after this cursor (an event frame's id). Last-Event-ID takes precedence.

Response

200 text/event-stream of Event objects

text/event-stream

A long-lived stream of id / event / data frames. See Server-Sent Events.

Errors

StatusWhen
401Missing, invalid, revoked or expired API key
403Insufficient scope, live access not approved, or history limit
404Not found (or feature disabled)
422Validation failed
429Rate limit or quota exceeded
503Upstream unavailable

All errors use the standard envelope. See error codes for every code value.