Twitch helix stream status getJSON migration

Doesn’t work for me too :frowning:

  $.getJSON('', function(data) {	
      if ( {
      } else {

I don’t know why, i have no response, no console log

You tried to call Kraken
Your call to kraken defaulted to v3 which is long dead

You need to upgrade to

And you won’t be able to do this via a Ajax/getJSON call.
You’ll need to relay it via a server using an app access token

I still don’t understand how calling a simple “Online/Offline” function works with this new API

You either get





{"data":[{"id":"23735582","login":"sacriel","display_name":"Sacriel","type":"","broadcaster_type":"partner","description":"Since 2012, I've focused on interactive educational content, especially in combat strategy and analysis. Our mature and welcoming community is one of the most respected on Twitch, self-named The 42nd. If you like what you see then hit follow and become part of the community! Warning: British humour!","profile_image_url":"","offline_image_url":"","view_count":176824413,"created_at":"2011-07-29T19:17:32Z"}]}

I understand what I’m getting, but I don’t understand what to call it

You may want to refer to Twitch API | Twitch Developers in that case for the getting started guide

Thanks ! But it is for a wordpress website, i think i can’t install ```

twitch-cli is for helping demonstrate the flows, as it’s for local development/testing, not production

For a wordpress site you’ll need to add PHP code to handle token generation and fetching/storing stream status for use by the wordpress site

see Twitch API | Twitch Developers

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.