Twitch Viewer used to work, did something change?

Twitch Viewer used to work, did something change?


I had my project working fine (, until I happened to check it today and all users are shown as not existing now. Checking some of the older projects on CodePen, it looks like a lot of people are having the same problem.

I don’t see any error in console except Uncaught ReferenceError: $ is not defined - contentscript.js:21 which seems to be on CodePen’s side.

Does anyone know if something changed with the Twitch API?

Twitch Tv api - can't retrieve any data from the link i request



Your error probably comes from

It shouldn’t take long to fix :slight_smile:


There is also already a issue on FreeCodeCamp’s github:


Thanks for the info!


So, now we have to setup a Twitch account, too?


Hmm… I sense this project is on its way out. No big loss, I’m sure Quincy and co. will come up with something even better.


I believe so. You now need a client ID that is registered to your application, which I think is only given to registered users, unless someone knows otherwise.


Can’t say I was a fan of that API anyway.


It seems anyone can register, but you need a URI for the app, which I don’t think can work with Codepen. If that’s true, it pretty much sinks this project for FCC.


You can put localhost:3000 (or basically anything) in that field.


I use my localhost address but it still works as usual on codepen.


According to this:, you sense right :wink:

Note: Simon, Tic Tac Toe, Twitch, Wikipedia Viewer, Local Weather, Roguelike Dungeon Crawler, Markdown Previewer and Camper Leaderboard will become just some of many bonus practice projects.


Can’t believe they’re getting rid of tic tac toe! Just finished that project and its got the most challenging algorithms out of any of the front end projects. Definitely a good one to do as a bonus project.


Are you saying that your app works now after you followed the suggested steps and setting your URI to localhost?
It didn’t work for me.


@alphaoliveira Yes it did work worked after i added the client Id…As instructed they said to put the client Id in your ajax request as a header option but that didn’t work after I tried it… so I put the client id in the urls I used to make the requests like shown below and it worked…if I removed the header option in the request, it will still work but I left it just incase.

$streamApiUrl = "" + streamers[i] + "?client_id=YourId&callback=?"

      type: "GET",
      dataType: "jsonp",
      url: $streamApiUrl,
      headers: {
       'Client-ID': 'yourId'

Designed a new portfolio -- again! Would love critiques :)

I’m really glad the dungeon crawler is not going to be required anymore. It’s the only thing standing in the way of me getting the data-viz cert, and frankly it’s never been an appealing project to me.


It works now, thank you very much.


No problem…glad to hear it did :smiley:


Hi Azdrian,

I have read the problems that people had with twitchTV and before I dig into it I am visiting examples on codepen and it seems like if nobody was ever connected., take as an example…

Is this normal? I would hate to waste time on a deprecated Api.