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

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?

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

Instead of using twitch API use the JSON file given here

FCC provides a proxy that works without an API key.