Skip to content

Reading results

Results are open data: no key is needed to read. The server returns ready-made JSON snapshots (the same for every viewer) and announces changes over an SSE stream. Records published through Push, IOF XML or MeOS become readable in about a second.

Addresses

Environment Address
Production https://live.ruunso.com (the same paths also answer on https://api.ruunso.com)
Local development (task dev) http://live.ruunso.com.localhost:8000

Snapshots

Request Returns
GET /live/v1/catalog?date=&sport=&region= public competitions of the day (date is YYYY-MM-DD, today in UTC by default; region is ru or intl)
GET /live/v1/competitions/{id} the competition, its races, groups and final standings
GET /live/v1/competitions/{id}/races/{race}/groups/{group} group results: places, time behind, splits, “ideal”
GET /live/v1/competitions/{id}/races/{race}/feed race feed: the latest 200 events (start, split, finish, status), newest first
GET /live/v1/competitions/{id}/races/{race}/stats race statistics: counts, times, distribution, by group and gender, club medals
GET /live/v1/series, GET /live/v1/series/{id} public series and a series ranking over several competitions
GET /live/v1/athletes/{id} public athlete history (404 unless the owner enabled it); ETag
GET /live/v1/competitions/{id}/standings/{standing} final standings
GET /live/v1/competitions/{id}/races/{race}/export?format=iof|csv|json race results as a file: IOF XML 3.0 (ResultList), CSV (UTF-8 with BOM, ; separator) or JSON; anything hidden by display settings is left out
GET /live/v1/competitions/{id}/events SSE change stream (below)

A link-only competition is not listed in the catalog but can be read by its number; such responses carry X-Robots-Tag: noindex. Fields are snake_case.

Caching: ETag and 304

Every snapshot comes with an ETag and Cache-Control: public, max-age=2. Repeat the request with If-None-Match — if nothing changed, the answer is 304 with no body:

Terminal window
curl -si https://live.ruunso.com/live/v1/competitions/42 | grep -i etag
# ETag: "5f1c…"
curl -si -H 'If-None-Match: "5f1c…"' https://live.ruunso.com/live/v1/competitions/42
# HTTP/2 304

With Accept-Encoding: gzip the server sends a pre-compressed body. Polling more often than every 2 seconds is pointless: a snapshot is rebuilt at most once a second.

Change stream (SSE)

GET /live/v1/competitions/{id}/events is a text/event-stream. A version event arrives when a snapshot gets a new version; right after connecting you receive the current versions. Snapshot keys: index/{id}, group/{id}/{race}/{group}, feed/{id}/{race}, stats/{id}/{race}, standing/{id}/{standing} (parts are escaped as in a URL). A ping arrives every 25 seconds.

const base = "https://live.ruunso.com/live/v1/competitions/42";
const events = new EventSource(`${base}/events`);
events.addEventListener("version", (e) => {
const { key, version } = JSON.parse(e.data);
if (key === "group/42/1/g1") refreshGroup(); // re-read the snapshot with If-None-Match
});

The stream only says what changed; fetch the data itself with a regular GET. A client that cannot keep up is disconnected — EventSource reconnects on its own.

Browsers and CORS

All paths answer with Access-Control-Allow-Origin: * (the ETag header is exposed to scripts), so scoreboards and widgets can be embedded on any site without a proxy.

Errors

An error is a code in the body {"code": "…"}: not_found (404 — no such competition, race, group or standings), bad_request (400 — invalid catalog parameters), sse_limit (503 — the limit of concurrent SSE connections is reached, retry later).