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.
Creation date & time for a Twitch user
Gives you the creation date and time of a Twitch user. If you're only interested in how old a Twitch account is, check out twitch/accountage.
Endpoint URL
https://decapi.me/twitch/creation/TWITCH_USERNAME_HERE
See examples below for usage with an actual Twitch username.
Required URL parameters
user- Required - Twitch username to get the creation date & time for.
Query parameters
format- Optional - Format of the date and time. Default isM j. Y - h:i:s A (e)- See the available formatting options on PHP.net's documentation.
tz- Optional - Timezone to use for the date and time. Default isUTC.- The timezone list is the same as the ones available in misc/time.
Examples
- What date & time Decicus' account was created: https://decapi.me/twitch/creation/decicus
- What date & time Decicus' account was created, using the timezone in Oslo (Norway) and the format:
2011-10-22 15:38:29 CEST: https://decapi.me/twitch/creation/decicus?tz=Europe/Oslo&format=Y-m-d H:i:s T - What date & time Decicus' account was created, using the timezone in Los Angeles (US Pacific Time) and the format:
2011-10-22 06:38:29 AM PDT: https://decapi.me/twitch/creation/decicus?tz=America/Los_Angeles&format=Y-m-d h:i:s A T
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 creation date and time for a Twitch user specified after the command
$(urlfetch https://decapi.me/twitch/creation/$(touser)) -
Get creation date and time for a Twitch user specified after the command, using the timezone in Oslo (Norway) and the format
2024-06-01 18:15:34 CEST
$(urlfetch https://decapi.me/twitch/creation/$(touser)?tz=Europe/Oslo&format=Y-m-d H:i:s T) -
Get creation date and time for a Twitch user specified after the command, using the timezone in Los Angeles (US Pacific Time) and the format
2024-06-01 06:15:34 PM PDT
$(urlfetch https://decapi.me/twitch/creation/$(touser)?tz=America/Los_Angeles&format=Y-m-d h:i:s A T)
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 creation date and time for a Twitch user specified after the command
$(customapi https://decapi.me/twitch/creation/$(user.login)) -
Get creation date and time for a Twitch user specified after the command, using the timezone in Oslo (Norway) and the format
2024-06-01 18:15:34 CEST
$(customapi https://decapi.me/twitch/creation/$(user.login)?tz=Europe/Oslo&format=Y-m-d H:i:s T) -
Get creation date and time for a Twitch user specified after the command, using the timezone in Los Angeles (US Pacific Time) and the format
2024-06-01 06:15:34 PM PDT
$(customapi https://decapi.me/twitch/creation/$(user.login)?tz=America/Los_Angeles&format=Y-m-d h:i:s A T)
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 creation date and time for a Twitch user specified after the command
${customapi.https://decapi.me/twitch/creation/${touser}} -
Get creation date and time for a Twitch user specified after the command, using the timezone in Oslo (Norway) and the format
2024-06-01 18:15:34 CEST
${customapi.https://decapi.me/twitch/creation/${touser}?tz=Europe/Oslo&format=Y-m-d H:i:s T} -
Get creation date and time for a Twitch user specified after the command, using the timezone in Los Angeles (US Pacific Time) and the format
2024-06-01 06:15:34 PM PDT
${customapi.https://decapi.me/twitch/creation/${touser}?tz=America/Los_Angeles&format=Y-m-d h:i:s A T}
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 creation date and time for a Twitch user specified after the command
$readapi(https://decapi.me/twitch/creation/$touserid) -
Get creation date and time for a Twitch user specified after the command, using the timezone in Oslo (Norway) and the format
2024-06-01 18:15:34 CEST
$readapi(https://decapi.me/twitch/creation/$touserid?tz=Europe/Oslo&format=Y-m-d H:i:s T) -
Get creation date and time for a Twitch user specified after the command, using the timezone in Los Angeles (US Pacific Time) and the format
2024-06-01 06:15:34 PM PDT
$readapi(https://decapi.me/twitch/creation/$touserid?tz=America/Los_Angeles&format=Y-m-d h:i:s A T)
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 creation date and time for a Twitch user specified after the command
{readapi.https://decapi.me/twitch/creation/{touser.name}} -
Get creation date and time for a Twitch user specified after the command, using the timezone in Oslo (Norway) and the format
2024-06-01 18:15:34 CEST
{readapi.https://decapi.me/twitch/creation/{touser.name}?tz=Europe/Oslo&format=Y-m-d H:i:s T} -
Get creation date and time for a Twitch user specified after the command, using the timezone in Los Angeles (US Pacific Time) and the format
2024-06-01 06:15:34 PM PDT
{readapi.https://decapi.me/twitch/creation/{touser.name}?tz=America/Los_Angeles&format=Y-m-d h:i:s A T}
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 creation date and time for a Twitch user specified after the command
@customapi@[https://decapi.me/twitch/creation/@user@] -
Get creation date and time for a Twitch user specified after the command, using the timezone in Oslo (Norway) and the format
2024-06-01 18:15:34 CEST
@customapi@[https://decapi.me/twitch/creation/@user@?tz=Europe/Oslo&format=Y-m-d H:i:s T] -
Get creation date and time for a Twitch user specified after the command, using the timezone in Los Angeles (US Pacific Time) and the format
2024-06-01 06:15:34 PM PDT
@customapi@[https://decapi.me/twitch/creation/@user@?tz=America/Los_Angeles&format=Y-m-d h:i:s A T]
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 creation date and time for a Twitch user specified after the command
(customapi https://decapi.me/twitch/creation/(touser)) -
Get creation date and time for a Twitch user specified after the command, using the timezone in Oslo (Norway) and the format
2024-06-01 18:15:34 CEST
(customapi https://decapi.me/twitch/creation/(touser)?tz=Europe/Oslo&format=Y-m-d H:i:s T) -
Get creation date and time for a Twitch user specified after the command, using the timezone in Los Angeles (US Pacific Time) and the format
2024-06-01 06:15:34 PM PDT
(customapi https://decapi.me/twitch/creation/(touser)?tz=America/Los_Angeles&format=Y-m-d h:i:s A T)