Keepthescore.co has a simple REST API. Please be aware that breaking changes may occur without notice. Also, this API does not work for sports scoreboards.
Currently, the API allows you to:
The API does not allow you to:
To use the API you require a token from your scoreboard. Note
that each scoreboard has 2 tokens: the public token (end's with the character r
) and the edit token
(ends with the character e
). You can extract both tokens from the 2 URLs of your scoreboard (they are revealed by
pressing the "PUBLISH" button).
All examples in this documentation use this leaderboard which has
xvrynjqlgne
and ltxphsnqskr
. All API endpoints are rate-limited. If you send more than 5 requests per second per board you will be rate-limited for 1 minute.
Exceeded the rate-limit will result in a response code of 429
instead of 200
. If you intend to send many requests,
your code should handle this eventuality.
If we get the impression that you are "abusing" the API (and this definition is kept vague on purpose), your board may be deleted without prior notice. Don't worry, we do this very rarely.
Examples of abuse include: sending identical API requests every second for many days in a row.
Returns all the data shown on a board.
GET https://keepthescore.co/api/<PUBLIC_TOKEN>/board/
You can paste this directly into your terminal 👇
curl https://keepthescore.co/api/ltxphsnqskr/board/
This request adds a player.
POST https://keepthescore.co/api/<EDIT_TOKEN>/player/
You can paste this directly into your terminal 👇
curl -H "Content-Type: application/json" -X POST -d '{"name": "New player name"}' https://keepthescore.co/api/xvrynjqlgne/player/
You can paste this directly into your terminal 👇
curl -H "Content-Type: application/json" -X POST -d '{"name": "New player name", "team": 57}' https://keepthescore.co/api/xvrynjqlgne/player/
This request deletes a player.
DELETE https://keepthescore.co/api/<EDIT_TOKEN>/player/<PLAYER_ID>
POST https://keepthescore.co/api/<EDIT_TOKEN>/score/
You can paste this directly into your terminal 👇
curl -H "Content-Type: application/json" -X POST -d '{ "player_id": 2753171, "score": 100}' https://keepthescore.co/api/xvrynjqlgne/score/
All responses contain a CORS header (access-control-allow-origin: *
), meaning that the
API can also be called from a browser.
Do you have a question, feedback, or a feature request?
Great! We answer every message within 1 working day (sometimes on the weekend too). You can reach us in the following ways:
We love feature requests, but it depends on whether we think it'll be useful to other users and how much effort it'll be.
Whilst you're here: subscribe to our newsletter to always be informed about what's new.