Live stream oembed

if the stream is live you can get a stream object from Reference | Twitch Developers if it’s not live your’ll get a blank/empty response

https://api.twitch.tv/helix/streams?user_login=riotgames

returns:

{
“data”: ,
“pagination”: {}
}

Currently for example so no stream to embed.

You might want to look at Embedding Twitch | Twitch Developers instead of embedding which’ll work a little better rather than relying on oembed?

2 Likes