Find out if stream is live

The second way is correct. Unfortunately, Twitch currently makes that endpoint 404 until your extension is released. For now, you should use a placeholder function (that just returns your testing channel ID), then switch to the real function once your extension is live. You can also go and comment in the other threads on this and tell the Twitch team it’s causing you problems!