Get real-time users status
Read the online, playing and streaming flags of several users. This API is very fast and cheap on lichess side. So you can call it quite often (like once every 5 seconds). Use it to track players and know when they're connected on lichess and playing games.
Query parameters
User IDs separated by commas. Up to 100 IDs.
Also return the network signal of the player, when available. It ranges from 1 (poor connection, lag > 500ms) to 4 (great connection, lag < 150ms) Defaults to false to preserve server resources.
Also return the ID of the game being played, if any, for each player, in a playingId field. Defaults to false to preserve server resources.
Also return the id, time control and variant of the game being played, if any, for each player, in a playing field. Defaults to false to preserve server resources. Disables withGameIds.
Response
The list of users and their respective statuses.