Webhooks require a web accessabile server that you control. If you can’t go web accessable, you can use PubSub instead which has Subscribers from your list
-
You build a web page/program that can receive HTTP GET and HTTP POST requests.
-
You make a outbound API request to Twitch, stating which Webhook you want to subscribe to, and the webpage (aka Callback URL).
-
Twitch will call that webpage with some information and a challenge get GET request.
If you are expecting this request, you then reply with the challenge, which completes the validation and creation of the webhook -
When data occurs Twitch then sends a JSON encoded blob in the body of a POST request to your webpage, you process that data and do whatever you want with the response/pass it off to internal systems to relay to your Bot/etc
Webhooks only provide followers and subscribers, from your list
See topics available here: https://dev.twitch.tv/docs/api/webhooks-reference
Hosts you have to get from Twitch Chat
Depends what language you are working in