EventSub
EventSub subscriptions let your application listen for events that happen on Twitch. When an event occurs for one of your subscriptions, Twitch sends you a notification. For example, you can receive a notification when:
- A stream goes online
- A broadcaster gets a new follower
- A broadcaster gets a new subscriber
- A user cheered in a channel
- A user redeemed Channel Points
But before subscribing to events, you need to create a callback that listens for events. For details, see Handling Events.
After writing your event handler, you’re ready to subscribe to events. For details, see Manage Subscriptions.
NOTE: EventSub subscriptions are transport agnostic. For the most part, all subscriptions are available to all transports that Twitch supports. If a transport can’t support a subscription type, the documenation will identify the restriction. When new subscription types are added to EventSub, Twitch supports them on all transports simultaneously, when possible.