Twitch API - Why am I not getting a successful callback?

Hi All,

I have been trying to get a successful callback to the Twitch API for the stream information of freecodecamp, but I keep hitting a brickwall.

I am using my endpoint as https://wind-bow.gomix.me/twitch-api/streams/freecodecamp, but no luck.

What am I doing wrong?

My codepen link: https://codepen.io/yjaved/pen/BdXXxN?editors=1111

Cheers,
Yosef

Thanks for catching that, but it still didn’t seem to fix anything.

Wait! I changed it to jsonp and now everything is good!

It was most likely an issue with HTTP/HTTPS compatibility. Codepen is HTTPS and that causes problems with some APIs.