Internal first party API
For us as third parties:
If you want to get how many viewers are watching a stream.
And you can’t sensibly get a token from a user of your website.
Then you generate a token to call the API with for your backend.
This is nothing to do with how the Twitch website itself works, as we are only talking about the third party API.