lichess.org
Donate

Via the API, can I fetch "number of players/games online"?

When starting a new game, I love the splash screen that displays briefly, showing "number of players online" and "number of games". I use the API to scrape very basic data about my account for my data science studies, and I would like to also collect "number of players online" and "number of games" but looking through the online API docs (lichess.org/api) I can't find mention of such an API endpoint. Since the app itself is able to conjure up the numbers quite effectively, I was hoping to be able to access those same metrics via the API.

Thank you!
I checked the lichess.org website and it is fetching those two numbers (# players, # games in play) via a secure websocket. I was hoping to see it used the API but I do see how it makes sense to use a websocket, to stream the data as it changes in real time.

This topic has been archived and can no longer be replied to.