How can I embed a live stream using the user or stream ID?

Hi, I’m wondering if it’s possible to embed a live stream using a user or stream ID. The documentation (https://dev.twitch.tv/docs/embed#embedding-video-and-clips) says a channel, video, or collection is required. However, when I use the API to get streams (https://dev.twitch.tv/docs/api/reference#get-streams), I only get back user and stream IDs in the response.

The only solution I can think of is to get the streams, and then make a separate API call for looking up the corresponding channel names for all the user IDs.

Yes, if you go to the individual’s channel there should be a share button that provides the iframe for video & chat. As for how the url is constructed, you can provide either the channel name or id.

Example:
video embed https://player.twitch.tv/?channel=<name|id>
chat embed https://www.twitch.tv/<name|id>/chat?popout=

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.