Use this app to connect to the Twitch API using your own Twitch developer app. This is required when using any Twitch API that requires App Access Tokens.
Go to siteThe Twitch Developer App API lets you tap into the rich features of Twitch, enabling integration with the streaming platform's data. Using Pipedream, you can automate interactions with Twitch, such as managing streams, users, games, and more. With the ability to react to events in real-time, you can create automated workflows that enhance the streaming experience for broadcasters and viewers alike, such as notifying followers when a stream goes live, tracking metrics, or even moderating chat.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
twitch_developer_app: {
type: "app",
app: "twitch_developer_app",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://id.twitch.tv/oauth2/validate`,
headers: {
Authorization: `Bearer ${this.twitch_developer_app.$auth.oauth_access_token}`,
},
})
},
})
Stream Alerts to Discord: Trigger a Pipedream workflow when a Twitch channel goes live. Use the Discord app to send a custom notification to a designated Discord server, alerting followers instantly that their favorite streamer is broadcasting.
Automated Stream Analysis: After a stream ends, kick off a workflow that aggregates streaming stats like viewership peaks, average watch time, and chat engagement. Connect to Google Sheets to log this data for performance tracking and long-term analysis.
Dynamic Chat Moderation: Monitor chat messages on Twitch in real-time. Use sentiment analysis from an app like Google Cloud Natural Language API to assess chat tone. Automatically timeout or ban users who violate chat policies by sending commands back to Twitch using the API.
Emit new event when a specific broadcaster is raided by another broadcaster.
Emit new event when a specific broadcaster raids another broadcaster.
Emit new event when a live stream starts from the streamers you specify.
Twitch Developer App uses OAuth authentication. When you connect your Twitch Developer App account, Pipedream will open a popup window where you can sign into Twitch Developer App and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Twitch Developer App API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://id.twitch.tv/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=client_credentials
&
code={{oauth.code}}
POST
https://id.twitch.tv/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials