# Brazilian Roulette live results: every spin in real time

> How to get Brazilian Roulette live results in your code: the /stream that delivers every spin instantly, the long wait on /latest and the public page.

Source: https://lynxmetrics.com/en/blog/roleta-brasileira/brazilian-roulette-live-results · Published on 2026-11-21, updated on 2026-11-21

There are three ways to see **Brazilian Roulette live results** with LynxMetrics, and each serves a purpose: the public
page, to watch; `/stream`, for a program to get every spin instantly; and `/latest` with a long wait, for those who
prefer to ask. This article shows all three, with code.

## To watch: the public page

The [live Roleta Brasileira](https://lynxmetrics.com/live/roleta-brasileira) page shows the table's latest spins, newest first: the number,
the color, the dozen and the column, plus the percentage of each color in the sample. It is open to anyone, with no
sign-up, and updates on its own.

## For a program: /stream

`/stream` is an HTTP connection that stays open (SSE, Server-Sent Events) and receives every spin the moment it is
stored. Brazilian Roulette spins every **38 seconds** at the median, and the number reaches the API **in under a
second** after the table announces it: with `/stream`, your program gets the spin at that same instant, without
asking.

```bash
curl -N https://api.lynxmetrics.com/v1/roleta-brasileira/stream \
  -H "x-api-key: YOUR_KEY" \
  -H "accept: text/event-stream"
```

Each spin arrives as a `round` event, with the spin in `data` and the delivery times in `timing`. In Node.js 18 or
newer, with no dependency:

```javascript
const response = await fetch("https://api.lynxmetrics.com/v1/roleta-brasileira/stream", {
  headers: { "x-api-key": process.env.LYNX_KEY, accept: "text/event-stream" },
});
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
let rest = "";
for (;;) {
  const { value, done } = await reader.read();
  if (done) break;
  rest += value;
  const blocks = rest.split("\n\n");
  rest = blocks.pop();
  for (const block of blocks) {
    if (!block.includes("event: round")) continue;
    const json = block.split("\n").filter((l) => l.startsWith("data:")).map((l) => l.slice(5)).join("");
    const spin = JSON.parse(json).data;
    console.log(spin.settledAt, spin.data.number, spin.outcome);
  }
}
```

Three details that matter in a program that runs for weeks:

- **The connection costs a single request.** Polling `/latest` every 3 seconds costs 20 requests a minute;
  `/stream` costs 1 when it opens. On Pro, the limit is 60 a minute.
- **The connection sends a signal every 20 seconds** when there is no new spin, so no proxy along the way closes it
  for inactivity.
- **When you reconnect, send the `Last-Event-ID`** with the `id` of the last spin you received: the first event of
  the new connection, `ready`, carries in `missed` the spins that settled while you were away (up to 50), and your
  history has no gap.

## For those who prefer to ask: /latest with a wait

If your environment cannot hold an open connection, `/latest?wait=20` waits until the next spin, for up to 20
seconds, and answers the moment it comes up. Send the `ETag` of the last answer in the `If-None-Match` header: while
nothing changes, the wait ends in `304` with no body. That way you get the spin at the same instant as `/stream`,
with few requests a minute.

```python
import requests

URL = "https://api.lynxmetrics.com/v1/roleta-brasileira/latest?wait=20"
headers = {"x-api-key": "YOUR_KEY"}
etag = None
while True:
    if etag:
        headers["if-none-match"] = etag
    r = requests.get(URL, headers=headers, timeout=30)
    if r.status_code == 200:
        etag = r.headers.get("etag")
        spin = r.json()["data"]
        print(spin["settledAt"], spin["data"]["number"], spin["outcome"])
```

## What about today's history?

The public page shows the latest spins; for the whole day or earlier days, `/results` returns everything in pages,
with `after` to sync without skipping anything. The Pro plan keeps 7 days, and Business the full history since launch
on November 20, 2026. The full API guide is in
[Brazilian Roulette API](https://lynxmetrics.com/blog/roleta-brasileira/brazilian-roulette-api), and how to keep all of it in a database is
in [storing real-time data](https://lynxmetrics.com/blog/storing-real-time-data).

## Frequently asked questions

### Where can I see Brazilian Roulette live results for free?

On the LynxMetrics public results page, which shows the latest spins with number, color, dozen and column, with no sign-up and updating on its own.

### What is the fastest way to get Brazilian Roulette spins in a program?

The API's /stream endpoint, which keeps the connection open and delivers every spin the moment it is stored, under a second after the table announces the number.

### Do I lose spins if the /stream connection drops?

No, as long as you send the Last-Event-ID of the last event you received when you reconnect: the API resends the spins that settled while you were away, up to 50.
