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.
Follow count - Get the total number of followers of a Twitch channel
Gives you the total number of followers of a specified Twitch channel.
Endpoint URL
https://decapi.me/twitch/followcount/TWITCH_CHANNEL_USERNAME_HERE
See examples below for usage with an actual Twitch channel.
Required URL parameters
:channel- The username of the Twitch channel you want to get the follower count for.
Example usage
- Get the total number of followers of the Twitch channel Decicus: https://decapi.me/twitch/followcount/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 total number of followers of a Twitch channel
$(urlfetch https://decapi.me/twitch/followcount/$(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 total number of followers of a Twitch channel
$(customapi https://decapi.me/twitch/followcount/$(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 total number of followers of a Twitch channel
${customapi.https://decapi.me/twitch/followcount/${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 total number of followers of a Twitch channel
$readapi(https://decapi.me/twitch/followcount/$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 total number of followers of a Twitch channel
{readapi.https://decapi.me/twitch/followcount/{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 total number of followers of a Twitch channel
@customapi@[https://decapi.me/twitch/followcount/@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 total number of followers of a Twitch channel
(customapi https://decapi.me/twitch/followcount/(channelname))