Currently, in order to get the top X games by player count, or to determine what ranking # a game is by player count within the Steamy bot, a 3rd party API is used here https://github.com/JDGiardino/Steamy/blob/main/src/steam_api.py#L126. Than for each given game in the response of that call, the Steam API for player count of a given game is called here https://github.com/JDGiardino/Steamy/blob/main/src/steam_api.py#L130. This causes 100 api calls to Steam per need for top X games/ ranking number of a game.
This solution is not ideal and is a compromise because directly getting the top games by player count is not available from the Steam API (even though oddly enough that exact data is available from Steam here https://store.steampowered.com/stats/). Therefore this Issue will be a placeholder identifying this implementation in hopes Steam eventually makes this data available through their API.
Currently, in order to get the top X games by player count, or to determine what ranking # a game is by player count within the Steamy bot, a 3rd party API is used here https://github.com/JDGiardino/Steamy/blob/main/src/steam_api.py#L126. Than for each given game in the response of that call, the Steam API for player count of a given game is called here https://github.com/JDGiardino/Steamy/blob/main/src/steam_api.py#L130. This causes 100 api calls to Steam per need for top X games/ ranking number of a game.
This solution is not ideal and is a compromise because directly getting the top games by player count is not available from the Steam API (even though oddly enough that exact data is available from Steam here https://store.steampowered.com/stats/). Therefore this Issue will be a placeholder identifying this implementation in hopes Steam eventually makes this data available through their API.