Put username in an UI and send stream title, game, viewer count and name of the streamer to my overlay

Hello,
I want to make an ending for raids. So I type the /raid command and my overlay displays the name, stream title, stream game, followers and viewer count. I saw no tutorial about this so I wanted to ask if anyone has a template/knows how to do this.

LG
Scraft08YT

I already answered this in the Discord

Get Streams: https://dev.twitch.tv/docs/api/reference#get-streams
or
Get Channel Info: https://dev.twitch.tv/docs/api/reference#get-channel-information

Will let you lookup a channel to get title/category, and if live the view count

You may need Get Users: https://dev.twitch.tv/docs/api/reference#get-users to do a name to ID lookup

Followers count will need the total field from https://dev.twitch.tv/docs/api/reference#get-users-follows

And for getting the name from the outgoing raid either

  • Create a UI that you put the name into and your bot or some code running under your auth initiates the raid
  • Listen to a moderator starting a raid via the mod actions PubSub topic https://dev.twitch.tv/docs/pubsub

Everything apart from bot/pubsub can use any kind of token, but bot/pubsub will need a user access token scoped as needed