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.
Subpoints - Subscriber points for a Twitch channel
Retrieves the amount of subscriber points for the specified Twitch channel.
Requires channel owner to have authorized DecAPI for subscriber access
The channel owner must authorize DecAPI to access their subscriber data in order for this endpoint to return subscriber information.
If the channel owner already uses other DecAPI Twitch endpoints with subscriber data access, such as random subscriber or subcount, then no further action is needed.
If you are the channel owner, you can authorize DecAPI via this link: Authorize DecAPI for Twitch Subscriber Access
Endpoint URL
https://decapi.me/twitch/subpoints/CHANNEL_USERNAME_HERE
Required URL parameters
channel- Required - Twitch channel to retrieve the subscriber points for.
Notes
- As of October 2nd, 2021 the subscriber points value is now accurately retrieved from the Twitch API. The legacy
subtractadjustment no longer applies and will be ignored.
Examples
- Decicus' subscriber points: https://decapi.me/twitch/subpoints/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 subscriber points for a channel
$(urlfetch https://decapi.me/twitch/subpoints/$(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 subscriber points for a channel
$(customapi https://decapi.me/twitch/subpoints/$(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 subscriber points for a channel
${customapi.https://decapi.me/twitch/subpoints/${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 subscriber points for a channel
$readapi(https://decapi.me/twitch/subpoints/$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 subscriber points for a channel
{readapi.https://decapi.me/twitch/subpoints/{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 subscriber points for a channel
@customapi@[https://decapi.me/twitch/subpoints/@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 subscriber points for a channel
(customapi https://decapi.me/twitch/subpoints/(channelname))