# Live tournament API (beta)

> Your show's draft, score and clock as JSON, the moment the overlay dock has them. Overlays on another PC, a caster's tablet or your own bot all read the same room. Free and public during the beta.

## How it works

The dock already reads the game. Now it can share what it reads.

1. **Start a room in the dock.** Match tab, Connection, Live API. You get a room code to share and a write key that stays on your PC.
2. **Point your overlays at it.** Copy each overlay link into OBS. The overlay looks exactly the same, it just takes its data from the room.
3. **Read it from anything.** A snapshot over plain HTTP for bots and spreadsheets, or a WebSocket that pushes every change.

## Endpoints

On this site's own address. Reading needs only the room code.

| Method | Path | What it returns |
| --- | --- | --- |
| GET | `/api/live/rooms/{room}` | The whole room now: teams, match, draft, scorebar, rev |
| GET | `/api/live/rooms/{room}/ws` | WebSocket. The room on connect, then every change |
| GET | `/api/live/rooms/{room}/draft` | Only the draft: picks, bans, phase, side on the clock |
| GET | `/api/live/rooms/{room}/score` | Only the scorebar: kills, gold, towers, lords, clock |
| POST | `/api/live/rooms` | Used by the dock. Creates a room and its write key |
| PUT | `/api/live/rooms/{room}` | Used by the dock, with the write key |

## Sample answer

A running example with made-up numbers. Every scorebar number says where it came from and how old it is.

```json
{
  "room": "k7q2m9xd4p",
  "rev": 1,
  "status": "live",
  "serverTime": 1800000000000,
  "clock": {
    "v": 872,
    "src": "ocr",
    "at": 1799999999560,
    "age_ms": 440,
    "running": true
  },
  "blue": {
    "team": "Sky",
    "kills": {
      "v": 9,
      "src": "ocr",
      "at": 1799999999600,
      "age_ms": 400
    },
    "gold": {
      "v": 31200,
      "src": "ocr",
      "at": 1799999999640,
      "age_ms": 360
    },
    "towers": {
      "v": 3,
      "src": "ocr",
      "at": 1799999999680,
      "age_ms": 320
    },
    "lords": {
      "v": 1,
      "src": "ocr",
      "at": 1799999999720,
      "age_ms": 280
    }
  },
  "red": {
    "team": "Volt",
    "kills": {
      "v": 6,
      "src": "ocr",
      "at": 1799999999520,
      "age_ms": 480
    },
    "gold": {
      "v": 29800,
      "src": "ocr",
      "at": 1799999999480,
      "age_ms": 520
    },
    "towers": {
      "v": 1,
      "src": "ocr",
      "at": 1799999999440,
      "age_ms": 560
    },
    "lords": {
      "v": 0,
      "src": "manual",
      "at": 1799999999400,
      "age_ms": 600
    }
  }
}
```

- src is ocr (read from the game picture) or manual (typed by the operator). at is the room's clock in UTC milliseconds when the dock last confirmed the number, and age_ms is how old it is now.
- v: null means unknown, never zero. When status is stale, a number is older than 3 seconds: show the game's own strip instead.

## When the dock can't read the game

The room never guesses. These are the rules every reader gets.

- **A number the dock isn't sure of is never sent.** The room keeps the last confirmed value and its time, so its age grows. Our overlays open the game's own strip after 3 seconds.
- **The dock goes offline.** Overlays on the dock's PC carry on from the browser, as they do without the API. The dock keeps the newest show and sends it as soon as the link is back.
- **A reader drops and comes back.** It gets the whole room again and continues from the newest rev. Our overlays treat that like a reload, so no pick sounds are replayed.
- **Two docks on one room.** Only one writes. The second is told so and can take over or leave it to the first.

## Limits during the beta

Free for everyone while it is in beta. Plans arrive in 2027.

| Limit | Beta |
| --- | --- |
| Rooms per dock at once | 1 |
| Readers per room | 10 |
| Dock writes per second | 2 |
| Room kept after its last write | 24 h |
| New rooms per hour, per address | 3 |
| Logos and sponsor images in the room | – |

The page itself, with a box to try a room code, is https://arena-academy.rone.dev/tools/live-api.

---

HTML version: https://arena-academy.rone.dev/tools/live-api  
All pages: https://arena-academy.rone.dev/llms.txt  
Unofficial, community-maintained; not affiliated with Moonton. Game data comes from the Rone Arena API. Esports data from the official public sites of MPL Indonesia, Philippines, Malaysia and Cambodia.
