Skip to content

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.

Account age for a Twitch user

Gives you the "account age" of a Twitch user. In other words the amount of time passed since their account was created.
This works similar to twitch/creation.

Endpoint URL

https://decapi.me/twitch/accountage/TWITCH_USERNAME_HERE

See examples below for usage with an actual Twitch username.

Required URL parameters

  • user - Required - Twitch username to get the account age for.

Query parameters

  • precision - Optional - Maximum precision in the time returned. Defaults to 2, maximum is 7.
    • If the account is old enough, specifying 7 will give you: years, months, weeks, days, hours, minutes, and seconds.
    • With the default precision of 2, you would only get years and months.

Examples

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.

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.

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.

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.

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.

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.

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.