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, but no luck.

What am I doing wrong?

My codepen link:


You have a typo. datatype should be dataType

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.