Skip to content

Event entries

Entries accepted on the site can be pulled into a timing program or any other program. Access is read-only; no Ruunso license is needed.

Key

The organizer creates an ek_… key in the account: event → “Sync” → “Create key”. The key is shown once; it works only for its own event and can be revoked. Send it in the Authorization: Bearer ek_… header.

For programs that can only download a URL:

Terminal window
curl -H "Authorization: Bearer $KEY" https://api.ruunso.com/v1/entries/123/entries.csv
curl "https://api.ruunso.com/v1/entries/123/iof/entrylist.xml?key=$KEY"
  • IOF XML 3.0: entrylist, classlist, organisationlist, competitorlist (…/iof/<document>.xml). Multi-day entrants get a RaceNumber per day, relay teams get a TeamEntry with legs (Leg), chip rental is a ServiceRequest.
  • CSV: UTF-8 with BOM, ; separator.

A key in a URL ends up in logs and browser history — send it in the header whenever you can.

Pull and Watch

The EntriesService service (file entries.proto) returns entries and teams as a stream of changes:

Terminal window
curl -s -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{}' \
https://api.ruunso.com/ruunso.entries.v1.EntriesService/GetEvent
curl -s -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"cursor":"","limit":500}' \
https://api.ruunso.com/ruunso.entries.v1.EntriesService/Pull
  • GetEvent — the event, races, classes, team-race legs, options.
  • Pull(cursor, limit) — changes after the cursor (up to 2000 per call). Start with an empty cursor and repeat while has_more; store next_cursor after you have applied the batch.
  • Watch(cursor) — the same stream as soon as something changes, with a heartbeat every 25 seconds; at most three streams per key.

A change is entry, team, entry_deleted or team_deleted (cancellation). A change may arrive more than once: apply it by id and change_seq. Entries awaiting payment are not in the stream — they arrive once confirmed.

Errors: key_invalid, key_revoked (UNAUTHENTICATED), cursor_invalid (INVALID_ARGUMENT), too_many_streams (RESOURCE_EXHAUSTED).

Export credits

If the organizer has enabled an export fee, entries paid on the site export freely, and the rest spend one credit on their first export by any method. If credits run out, the entries covered are exported, export_fee_required shows how many are waiting, and the cursor stays in front of them: after credits are bought the next Pull returns them. In feeds the number of waiting entries is in the X-Export-Fee-Required header.