> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrape.st/llms.txt
> Use this file to discover all available pages before exploring further.

# Public SSE

> Free real-time stream — no authentication, truncated payloads

The public SSE stream is an open feed — no API key required. Useful for demos, monitoring, and lightweight integrations. Payloads are **truncated** (first 100 characters of the raw payload).

<Warning>
  Public SSE does **not** stream enriched `x` payloads — only `fast-x`,
  `telegram`, and `discord` events. For full X data, use
  [WebSocket](/streams/websocket-connections) or [Private
  SSE](/streams/private-sse).
</Warning>

## Connection

```
GET https://scrape.st/stream
```

No authentication required. Supports `EventSource` in browsers and `curl -N` from CLI.

<CodeGroup>
  ```javascript Browser theme={null}
  const es = new EventSource("https://scrape.st/stream");

  es.onmessage = (event) => {
    const data = JSON.parse(event.data);
    console.log(`[${data.source}]`, data.payload);
  };

  es.onerror = () => {
    console.log("Connection lost — auto-reconnecting...");
  };
  ```

  ```bash curl theme={null}
  curl -N https://scrape.st/stream
  ```

  ```python Python theme={null}
  import sseclient, requests

  response = requests.get("https://scrape.st/stream", stream=True)
  client = sseclient.SSEClient(response)
  for event in client.events():
      print(event.data)
  ```
</CodeGroup>

## Response Format

Each event is an SSE `data:` line with a truncated `SourceEvent`:

```
data: {"source":"fast-x","timestamp":1712072400000,"payload":"{\"id\":\"1886493083207827456\",\"text\":\"Bitcoin hits new ATH! 🚀\",\"author\":{\"na..."}

data: {"source":"telegram","timestamp":1712072401000,"payload":"{\"id\":\"msg_12345\",\"channelId\":\"-100123456789\",\"content\":\"$SOL pumpin..."}
```

| Field       | Type   | Description                                    |
| ----------- | ------ | ---------------------------------------------- |
| `source`    | string | `"fast-x"`, `"telegram"`, or `"discord"`       |
| `timestamp` | number | Unix timestamp (ms) when event was received    |
| `payload`   | string | **Truncated** — first 100 chars of raw payload |

## Query Parameters

| Parameter  | Type    | Description                                  |
| ---------- | ------- | -------------------------------------------- |
| `useFastX` | boolean | Include `fast-x` push events (default: true) |

## Auto-Reconnect

`EventSource` automatically reconnects on connection loss. The server sends keepalive comments (`:`) every **15 seconds** to prevent proxy timeouts. On reconnection, the last **5 buffered events** are replayed.

## Limitations

* Payloads are **truncated** to 100 characters — use [Private SSE](/streams/private-sse) for full data
* No enriched `x` events — only `fast-x`, `telegram`, `discord`
* No filtering by source or tracked account
