Retrieving online users
This is an API endpoint proposal for retrieving online users.
Online users
URL
/api/get_online_users
Description
Retrieve the user IDs of online players.
Potentional use cases
- Optimize periodic player checks.
- Do something only while a player is online.
- Display player's online status.
Parameters
-
k- api key (required)
Response
[3, 12345, 45679, 456874, 987789, ...]
As #20 suggests, a workaround for this would be that to use IRC, specifically using the NAMES command, and while it's true this doesn't return the ID of the users but the usernames, it's still a ready-to-go implementation that doesn't have to wait another year and a half to get implemented in the API (which isn't probably gonna be implemented because the new API is on its way which if anything it requires the new website to be pushed live so yeah, Soon™ and Definitely This Year™).

There is an implemented functionality for user IDs too, but it was deemed to be "bancho hackery" and I was disallowed to use it.