How to get broadcaster_id or iCal-schedule of an arbitrary channel based on channel URL

To get the User ID of a channel

You can use the API Reference | Twitch Developers

Alternatively a tool such as Channel Information | Twitch API Example

This example tool
Lets you auth in as you then you can lookup someone else

There is also my calendar example here: Calendar Stuff | Twitch API Example which lets you auth in lookup someone and get a nice QR code to scane instead.

The API whilst containing public information still uses “access control” to prevent abuse

Which is why you need to generate a token to use in order to call the API

A server based solution would use an app access token to make calls for public data.
Or with a “simple thing” like github pages, you need to get a token from the user to use to make calls.

This helps Twitch understand API usage and spot/prevent an abuse being performed by bad actors.

Plumbing this into my Calendar tool, which will do the needed calls for you.

You can use your own User Token to get the information you have specified. Since it’s “public data”

Basically for public data, (no scopes) such as the a user/channel userID/channelID any token works.
And the iCal API takes no token or clientID at all.

1 Like