Failed to load resource: the server responded with a status of 400 ()

Failed to load resource: the server responded with a status of 400 ()
0

#1

I am trying to obtain data from twitch api. when the code below is run:
$.getJSON("https://api.twitch.tv/kraken/streams/freecodecamp?callback=?", function(data) {
console.log(data);
});
i get this error Failed to load resource: the server responded with a status of 400 ()
how do i get around this?


#2

It will require API Key. Please refer to this thread below.

Instead of using twitch API use the JSON file given here


#3

FCC provides a proxy that works without an API key.