EventSub#
EventSub lets you listen for events that happen on Twitch.
All available EventSub clients runs in their own thread, calling the given callback function whenever an event happens.
Look at Available Topics and Callback Payloads to find the topics you are interested in.
Available Transports#
EventSub is available with different types of transports, used for different applications.
Transport Method |
Use Case |
Auth Type |
---|---|---|
Server / Multi User |
App Authentication |
|
Client / Single User |
User Authentication |
Available Topics and Callback Payloads#
List of available EventSub Topics.
The Callback Payload is the type of the parameter passed to the callback function you specified in listen_
.
Topic |
Subscription Function & Callback Payload |
Description |
---|---|---|
Channel Update v1 |
Function: |
A broadcaster updates their channel properties e.g., category, title, mature flag, broadcast, or language. |
Channel Update v2 |
Function: |
A broadcaster updates their channel properties e.g., category, title, content classification labels, broadcast, or language. |
Channel Follow v2 |
Function: |
A specified channel receives a follow. |
Channel Subscribe |
Function: |
A notification when a specified channel receives a subscriber. This does not include resubscribes. |
Channel Subscription End |
Function: |
A notification when a subscription to the specified channel ends. |
Channel Subscription Gift |
Function: |
A notification when a viewer gives a gift subscription to one or more users in the specified channel. |
Channel Subscription Message |
Function: |
A notification when a user sends a resubscription chat message in a specific channel. |
Channel Cheer |
Function: |
A user cheers on the specified channel. |
Channel Raid |
Function: |
A broadcaster raids another broadcaster’s channel. |
Channel Ban |
Function: |
A viewer is banned from the specified channel. |
Channel Unban |
Function: |
A viewer is unbanned from the specified channel. |
Channel Moderator Add |
Function: |
Moderator privileges were added to a user on a specified channel. |
Channel Moderator Remove |
Function: |
Moderator privileges were removed from a user on a specified channel. |
Channel Points Custom Reward Add |
Function: |
A custom channel points reward has been created for the specified channel. |
Channel Points Custom Reward Update |
Function: |
A custom channel points reward has been updated for the specified channel. |
Channel Points Custom Reward Remove |
Function: |
A custom channel points reward has been removed from the specified channel. |
Channel Points Custom Reward Redemption Add |
Function: |
A viewer has redeemed a custom channel points reward on the specified channel. |
Channel Points Custom Reward Redemption Update |
Function: |
A redemption of a channel points custom reward has been updated for the specified channel. |
Channel Poll Begin |
Function: |
A poll started on a specified channel. |
Channel Poll Progress |
Function: |
Users respond to a poll on a specified channel. |
Channel Poll End |
Function: |
A poll ended on a specified channel. |
Channel Prediction Begin |
Function: |
A Prediction started on a specified channel. |
Channel Prediction Progress |
Function: |
Users participated in a Prediction on a specified channel. |
Channel Prediction Lock |
Function: |
A Prediction was locked on a specified channel. |
Channel Prediction End |
Function: |
A Prediction ended on a specified channel. |
Drop Entitlement Grant |
Function: |
An entitlement for a Drop is granted to a user. |
Extension Bits Transaction Create |
Function: |
A Bits transaction occurred for a specified Twitch Extension. |
Goal Begin |
Function: |
A goal begins on the specified channel. |
Goal Progress |
Function: |
A goal makes progress on the specified channel. |
Goal End |
Function: |
A goal ends on the specified channel. |
Hype Train Begin |
Function: |
A Hype Train begins on the specified channel. |
Hype Train Progress |
Function: |
A Hype Train makes progress on the specified channel. |
Hype Train End |
Function: |
A Hype Train ends on the specified channel. |
Stream Online |
Function: |
The specified broadcaster starts a stream. |
Stream Offline |
Function: |
The specified broadcaster stops a stream. |
User Authorization Grant |
Function: |
A user’s authorization has been granted to your client id. |
User Authorization Revoke |
Function: |
A user’s authorization has been revoked for your client id. |
User Update |
Function: |
A user has updated their account. |
Channel Shield Mode Begin |
Function: |
Sends a notification when the broadcaster activates Shield Mode. |
Channel Shield Mode End |
Function: |
Sends a notification when the broadcaster deactivates Shield Mode. |
Channel Charity Campaign Start |
Function: |
Sends a notification when the broadcaster starts a charity campaign. |
Channel Charity Campaign Progress |
Function: |
Sends notifications when progress is made towards the campaign’s goal or when the broadcaster changes the fundraising goal. |
Channel Charity Campaign Stop |
Function: |
Sends a notification when the broadcaster stops a charity campaign. |
Channel Charity Campaign Donate |
Function: |
Sends a notification when a user donates to the broadcaster’s charity campaign. |
Channel Shoutout Create |
Function: |
Sends a notification when the specified broadcaster sends a Shoutout. |
Channel Shoutout Receive |
Function: |
Sends a notification when the specified broadcaster receives a Shoutout. |
Channel Chat Clear |
Function: |
A moderator or bot has cleared all messages from the chat room. |
Channel Chat Clear User Messages |
Function: |
A moderator or bot has cleared all messages from a specific user. |
Channel Chat Message Delete |
Function: |
A moderator has removed a specific message. |
Channel Chat Notification |
Function: |
A notification for when an event that appears in chat has occurred. |
Channel Chat Message |
Function: |
Any user sends a message to a specific chat room. |
Channel Ad Break Begin |
Function: |
A midroll commercial break has started running. |