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.
Twitch user's avatar URL
Returns the avatar URL of a Twitch user.
Note: This endpoint is cached for up to 30 minutes. Avatar updates may not be immediately reflected.
Endpoint URL
https://decapi.me/twitch/avatar/TWITCH_USERNAME_HERE
See examples below for usage with an actual Twitch username.
Required URL parameters
user- Required - Twitch username to get the avatar for.
Examples
- Decicus' current avatar on Twitch: https://decapi.me/twitch/avatar/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 avatar URL of the current avatar for Twitch user specified after the command
$(urlfetch https://decapi.me/twitch/avatar/$(touser))
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 avatar URL of the current avatar for Twitch user specified after the command
$(customapi https://decapi.me/twitch/avatar/$(user.login))
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 avatar URL of the current avatar for Twitch user specified after the command
${customapi.https://decapi.me/twitch/avatar/${touser}}
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 avatar URL of the current avatar for Twitch user specified after the command
$readapi(https://decapi.me/twitch/avatar/$touserid)
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 avatar URL of the current avatar for Twitch user specified after the command
{readapi.https://decapi.me/twitch/avatar/{touser.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 avatar URL of the current avatar for Twitch user specified after the command
@customapi@[https://decapi.me/twitch/avatar/@user@]
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 avatar URL of the current avatar for Twitch user specified after the command
(customapi https://decapi.me/twitch/avatar/(touser))