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.
Get latest DayZ blog post
Gives you the latest blog post from the DayZ website.
Endpoint URL
https://decapi.me/dayz/news
Query parameters
search
- Optional - If specified it will only give you the latest blog post where the post title contains the specified text. This parameter is case-insensitive.
Example
- Get latest blog post (without any filtering): https://decapi.me/dayz/news
- The latest blog post that contains the word "update" (case-insensitive) in the post title: https://decapi.me/dayz/news?search=update
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 latest blog post without any filtering
$(urlfetch https://decapi.me/dayz/news)
-
The latest blog post that contains the word 'update' in the post title
$(urlfetch https://decapi.me/dayz/news?search=update)
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 latest blog post without any filtering
$(customapi https://decapi.me/dayz/news)
-
The latest blog post that contains the word 'update' in the post title
$(customapi https://decapi.me/dayz/news?search=update)
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 latest blog post without any filtering
${customapi.https://decapi.me/dayz/news}
-
The latest blog post that contains the word 'update' in the post title
${customapi.https://decapi.me/dayz/news?search=update}
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 latest blog post without any filtering
$readapi(https://decapi.me/dayz/news)
-
The latest blog post that contains the word 'update' in the post title
$readapi(https://decapi.me/dayz/news?search=update)
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 latest blog post without any filtering
{readapi.https://decapi.me/dayz/news}
-
The latest blog post that contains the word 'update' in the post title
{readapi.https://decapi.me/dayz/news?search=update}
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 latest blog post without any filtering
@customapi@[https://decapi.me/dayz/news]
-
The latest blog post that contains the word 'update' in the post title
@customapi@[https://decapi.me/dayz/news?search=update]
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 latest blog post without any filtering
(customapi https://decapi.me/dayz/news)
-
The latest blog post that contains the word 'update' in the post title
(customapi https://decapi.me/dayz/news?search=update)