# Brazilian Roulette API (Pragmatic Play): every spin in JSON

> How the Brazilian Roulette API works: every spin in JSON with number, color, dozen and column, the four endpoints, Python and Node examples and pricing.

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

Anyone looking for a **Brazilian Roulette API** wants the number of every spin the moment the ball stops, in a format a
program understands, without opening the game, without logging into a casino and without keeping a scraper alive.
That is what the LynxMetrics [Roleta Brasileira API](https://lynxmetrics.com/apis/roleta-brasileira) delivers, since **November 20, 2026**.
This guide shows what comes with each spin, how to make the first call, how fast the number arrives and what it costs.

## What the Brazilian Roulette API delivers

The table is **Pragmatic Play's Roleta Brasileira** (Brazilian Roulette), a European roulette (a single zero, numbers 0
to 36) presented in Portuguese. LynxMetrics follows the table live, spin by spin: when the ball stops, the spin is
stored with the number, the color, odd or even, low or high, the dozen and the column. None of it depends on anyone's
login or on a third-party site, which is why the format is ours and stable.

If you have never integrated an API, read the guide on [what an API is](https://lynxmetrics.com/blog/what-is-an-api) first. And if you are
torn between building a scraper and subscribing, there is a whole article on [scraping or API](https://lynxmetrics.com/blog/scraping-or-api).

## What comes with each spin

```json
{
  "id": "p19507477305",
  "game": "roleta-brasileira",
  "tableId": "pragmatic-roleta-brasileira",
  "startedAt": null,
  "settledAt": "2026-11-20T22:38:40.253Z",
  "outcome": "red",
  "data": {
    "number": 5,
    "color": "red",
    "parity": "odd",
    "half": "low",
    "dozen": 1,
    "column": 2
  }
}
```

| Field | Meaning |
| --- | --- |
| `id` | Fixed spin id that never changes, useful to avoid repeating messages |
| `settledAt` | When the number came up, in UTC |
| `outcome` and `data.color` | The color: `red`, `black` or `green`, which is zero |
| `data.number` | The number, from 0 to 36 |
| `data.parity` | `even` or `odd` |
| `data.half` | `low` (1 to 18) or `high` (19 to 36) |
| `data.dozen` | The dozen: 1 (1 to 12), 2 (13 to 24) or 3 (25 to 36) |
| `data.column` | The table column: 1, 2 or 3 |

On zero, `parity`, `half`, `dozen` and `column` are `null`: zero is not even, not low and belongs to no dozen,
and that is exactly where the house edge lives. `startedAt` is always `null` in this API, because a spin has only one
moment that matters, the ball stopping. The full rules are in
[how Brazilian Roulette works](https://lynxmetrics.com/blog/roleta-brasileira/how-brazilian-roulette-works).

## The four endpoints

All of them live under `https://api.lynxmetrics.com/v1/roleta-brasileira` and take your key in the `x-api-key`
header.

- `GET /latest` returns the latest spin. With `?wait=20` it holds the answer until the next spin, for up to 20
  seconds.
- `GET /stream` keeps a connection open and sends every spin the moment it is stored. It is the fastest path: see
  [Brazilian Roulette live results](https://lynxmetrics.com/blog/roleta-brasileira/brazilian-roulette-live-results).
- `GET /results` returns earlier spins in pages, newest first, with `limit` (up to 250 on Pro and 1,000 on
  Business), `before` to go back in time and `after` to sync without skipping a spin.
- `GET /stats` computes on the spot the count of each color, the current streak and, in `categories`, how many
  times each number, odd and even, low and high, each dozen and each column came up. See
  [Brazilian Roulette statistics](https://lynxmetrics.com/blog/roleta-brasileira/brazilian-roulette-statistics).

The [Roleta Brasileira documentation](https://lynxmetrics.com/docs/roleta-brasileira) has every parameter, and the error codes are the same in
all our APIs, gathered in [API errors and limits](https://lynxmetrics.com/blog/api-errors-and-limits).

## First call

```bash
curl https://api.lynxmetrics.com/v1/roleta-brasileira/latest \
  -H "x-api-key: YOUR_KEY"
```

In Python:

```python
import requests

response = requests.get(
    "https://api.lynxmetrics.com/v1/roleta-brasileira/latest",
    headers={"x-api-key": "YOUR_KEY"},
    timeout=10,
)
spin = response.json()["data"]
print(spin["data"]["number"], spin["outcome"], "dozen", spin["data"]["dozen"])
```

In Node.js 18 or newer, with nothing to install:

```javascript
const response = await fetch("https://api.lynxmetrics.com/v1/roleta-brasileira/latest", {
  headers: { "x-api-key": process.env.LYNX_KEY },
});
const { data: spin } = await response.json();
console.log(spin.data.number, spin.outcome);
```

## How fast the number arrives

Brazilian Roulette is quick: on its first night live, the median time between one spin and the next was **38
seconds**. And the number reaches the API **in under a second** after the table announces it, which is what we have
measured on every spin since launch. Through `/stream` it arrives on its own; through `/latest` with `?wait=`, the
answer goes out the instant the spin is stored.

## Brazilian Roulette API pricing

| Plan | Price | History | Per query | Per minute | Stream connections |
| --- | --- | --- | --- | --- | --- |
| Pro | R$ 21.90 a month | 7 days | up to 250 spins | 60 requests | 1 |
| Business | R$ 49.90 a month | full | up to 1,000 spins | 400 requests | 5 |

You pay by Pix or card, and each subscription is a project with its own keys. The details are in
[how the subscription works](https://lynxmetrics.com/blog/how-the-subscription-works).

## How to try it for free

Create the account, confirm your email and open the Roleta Brasileira trial in the dashboard. The trial key has the Pro
limits, needs no card, and the clock only starts on the first call. If you like it, subscribe to the same project and
the key keeps working. To look at the table first, the [live Roleta Brasileira](https://lynxmetrics.com/live/roleta-brasileira) page is
public.

## What you can build

- A bot that posts every number in your group, with the color and dozen:
  [Brazilian Roulette Telegram bot](https://lynxmetrics.com/blog/roleta-brasileira/brazilian-roulette-telegram-bot).
- A dashboard with the most frequent numbers, dozens and columns, from `/stats`.
- A spreadsheet or database with the full history, to study the spins calmly.

And if you follow more than one roulette, the same account works: the [Roleta ao Vivo API](https://lynxmetrics.com/apis/roleta-ao-vivo), from
Evolution, answers **in the same format**. The difference between the two tables is in
[Brazilian Roulette or Roleta ao Vivo](https://lynxmetrics.com/blog/roleta-brasileira/brazilian-roulette-vs-roleta-ao-vivo).

> The API delivers what already happened, not predictions. Every spin is independent of the previous ones, so be wary
> of any service that promises to hit the next number.

## Frequently asked questions

### Is there a free Brazilian Roulette API?

You can try the LynxMetrics Roleta Brasileira API for free, with the Pro plan limits and no card. For daily use, plans start at R$ 21.90 a month.

### What data does the Brazilian Roulette API deliver for each spin?

The number from 0 to 36, the color (red, black or zero), odd or even, low or high, the dozen and the column, plus a fixed id and the time in UTC. On zero, the parity, half, dozen and column fields are null.

### How long after the spin does the number show up in the API?

Under a second after the table announces the number, as measured since launch. The table spins every 38 seconds at the median, and /stream users get the spin the moment it is stored.

### Does the Brazilian Roulette API predict the next number?

No. Every spin is independent, and the statistics only show what already happened. LynxMetrics sells data, never tips.
