Work in progress
This documentation page is currently work in progress.
Not all existing DecAPI endpoints are documented here yet. For the currently active documentation, please visit docs.decapi.me.
Get the global player count for a Steam game
Returns the current global player count for a specified Steam game.
The "app ID" of a Steam game can be found in the URL of the game's store page.
For example:
- Counter-Strike 2 has the app ID
730
: https://store.steampowered.com/app/730/CounterStrike_2/ - DayZ has the app ID
221100
: https://store.steampowered.com/app/221100/DayZ/ - Half-Life 2 has the app ID
220
: https://store.steampowered.com/app/220/HalfLife_2/
Endpoint URL
https://decapi.me/steam/global-players?appid=PUT_APPID_FOR_GAME_HERE
See example below for usage with an actual Steam game.
Query parameters
appId
- Required - The Steam AppID of the game to get the player count for.
Example
- Total player count for DayZ on Steam: https://decapi.me/steam/global-players?appid=221100
Examples for bots
Nightbot
Note: Nightbot will automatically convert variables, such as$(channel)
or $(touser)
to the correct channel name / username, when the command is used.
You do not have to change those variables.
-
Total player count for DayZ on Steam:
$(urlfetch https://decapi.me/steam/global-players?appid=221100)
Fossabot
Note: Fossabot will automatically convert variables, such as$(channel)
or $(user.login)
to the correct channel name / username, when the command is used.
You do not have to change those variables.
-
Total player count for DayZ on Steam:
$(customapi https://decapi.me/steam/global-players?appid=221100)
StreamElements
Note: StreamElements will automatically convert variables, such as${channel}
or ${touser}
to the correct channel name / username, when the command is used.
You do not have to change those variables.
-
Total player count for DayZ on Steam:
${customapi.https://decapi.me/steam/global-players?appid=221100}
Streamlabs Chat Bot
Note: Streamlabs Chat Bot will automatically convert variables, such as$mychannel
or $touserid
to the correct channel name / username, when the command is used.
You do not have to change those variables.
-
Total player count for DayZ on Steam:
$readapi(https://decapi.me/steam/global-players?appid=221100)
Streamlabs Cloudbot
Note: Streamlabs Cloudbot will automatically convert variables, such as{channel.name}
or {touser.name}
to the correct channel name / username, when the command is used.
You do not have to change those variables.
-
Total player count for DayZ on Steam:
{readapi.https://decapi.me/steam/global-players?appid=221100}
Deepbot
Note: Deepbot will automatically convert variables, such as@stream@
or @user@
to the correct channel name / username, when the command is used.
You do not have to change those variables.
-
Total player count for DayZ on Steam:
@customapi@[https://decapi.me/steam/global-players?appid=221100]
PhantomBot
Note: PhantomBot will automatically convert variables, such as(channelname)
or (touser)
to the correct channel name / username, when the command is used.
You do not have to change those variables.
-
Total player count for DayZ on Steam:
(customapi https://decapi.me/steam/global-players?appid=221100)