wss://scrape.st/ws for bidirectional, real-time data streaming across all sources. WebSocket delivers full SourceEvent payloads for every tracked source.
Connection
Query Parameters
Append to the WebSocket URL:| Parameter | Type | Default | Description |
|---|---|---|---|
useFastX | boolean | false | Receive fast-x push events (~50ms latency) |
ignoreFullPayload | boolean | false | Skip enriched x payloads, keep fast-x + others |
Event Flow
WhenuseFastX=true, you receive two events per post:
fast-x— Arrives ~50ms after posting. Contains basic post data (text, author, timestamp) before GraphQL enrichment.x— Arrives ~200-500ms after posting. FullResolvedXPostwith engagement counts, media, entities, quoted posts.
ignoreFullPayload=true to skip the second event.
Keepalive
The server pings idle connections every 30 seconds. Connections with no activity for 60 seconds are terminated. To keep your connection alive, respond to pings (automatic in most WebSocket libraries) or send a manual ping:Reconnection
WebSocket does not auto-reconnect. Implement retry logic:Payload Shape
Every message is aSourceEvent: