Work in progress
This documentation page is currently work in progress.
Not all existing DecAPI endpoints are documented here yet - mostly Twitch and YouTube endpoints. The rest of the endpoints should have accurate documentation :)
For the currently active documentation, please visit docs.decapi.me.
Cached endpoint
This endpoint is cached and won't always be fully up-to-date. See the Cached endpoints page for more information.
Game - Current game the channel is set to
Retrieves the current game a Twitch channel has set.
Endpoint URL
https://decapi.me/twitch/game/CHANNEL_USERNAME_HERE
Required URL parameters
channel- Required - Twitch channel to check the current game for.
Examples
- Current game for the channel Decicus: https://decapi.me/twitch/game/decicus
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.
-
Get the current game of a Twitch channel
$(urlfetch https://decapi.me/twitch/game/$(channel))
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.
-
Get the current game of a Twitch channel
$(customapi https://decapi.me/twitch/game/$(channel))
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.
-
Get the current game of a Twitch channel
${customapi.https://decapi.me/twitch/game/${channel}}
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.
-
Get the current game of a Twitch channel
$readapi(https://decapi.me/twitch/game/$mychannel)
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.
-
Get the current game of a Twitch channel
{readapi.https://decapi.me/twitch/game/{channel.name}}
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.
-
Get the current game of a Twitch channel
@customapi@[https://decapi.me/twitch/game/@stream@]
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.
-
Get the current game of a Twitch channel
(customapi https://decapi.me/twitch/game/(channelname))