How to get video list? http://usher.twitch.tv/select/ doesn't work any more

BUT NOW IT usher.twitch.tv/select/ doesn’t work any more

How to get this list now? Code of Responce from usher.twitch.tv is allways 404

Previously I get list by this

“GET” http://api.twitch.tv/api/channels/(CHANNEL_NAME)/access_token

Responce:

{“token”:“{"user_id":null,"channel":"arteezy","expires":1418381562,"chansub":{"view_until":1924905600,"restricted_bitrates":},"private":{"allowed_to_view":true},"privileged":false,"source_restricted":false}”,“sig”:“607726aea5af33a9d2669e2f3f66b33d48d232e6”,“mobile_restricted”:false}

Then

“GET” http://usher.twitch.tv/select/.json?nauthsig=;nauth=;allow_source=true

Responce was :

#EXTM3U#EXT-X-TWITCH-INFO:NODE="video8.ams01",CLUSTER="ams01",MANIFEST-CLUSTER="ams01",USER-IP="144.85.219.74",MANIFEST-NODE="video8.ams01"#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="source",NAME="Source",AUTOSELECT=YES,DEFAULT=YES#EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=2398898,RESOLUTION=1280x720,VIDEO="source"http://video8.ams01.hls.twitch.tv/hls49/sirhcez_8161536112_52772821/source/index.m3u8?token=id=150606641873574234,bid=8161536112,exp=1389375037,node=video8-1.ams01.hls.justin.tv,nname=video8.ams01,fmt=source&sig=0729944f91b24cf1270aaf7645cf9a4b0303df3b&#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="high",NAME="High",AUTOSELECT=YES,DEFAULT=YES#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1760000,VIDEO="high"http://video8.ams01.hls.twitch.tv/hls49/sirhcez_8161536112_52772821/high/index.m3u8?token=id=150606641873574234,bid=8161536112,exp=1389375037,node=video8-1.ams01.hls.justin.tv,nname=video8.ams01,fmt=high&sig=c1c24898f0e266a0ccd76979da055349e607874a&#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="medium",NAME="Medium",AUTOSELECT=YES,DEFAULT=YES#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=928000,VIDEO="medium"http://video8.ams01.hls.twitch.tv/hls49/sirhcez_8161536112_52772821/medium/index.m3u8?token=id=150606641873574234,bid=8161536112,exp=1389375037,node=video8-1.ams01.hls.justin.tv,nname=video8.ams01,fmt=medium&sig=65d5a189d65a4677118bcab71f31e59a7072da48&#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="low",NAME="Low",AUTOSELECT=YES,DEFAULT=YES#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=596000,VIDEO="low"http://video8.ams01.hls.twitch.tv/hls49/sirhcez_8161536112_52772821/low/index.m3u8?token=id=150606641873574234,bid=8161536112,exp=1389375037,node=video8-1.ams01.hls.justin.tv,nname=video8.ams01,fmt=low&sig=9bbc7083c2c340c356e6e8859e005b81530a9008&#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="mobile",NAME="Mobile",AUTOSELECT=YES,DEFAULT=YES#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=164000,VIDEO="mobile"http://video8.ams01.hls.twitch.tv/hls49/sirhcez_8161536112_52772821/mobile/index.m3u8?token=id=150606641873574234,bid=8161536112,exp=1389375037,node=video8-1.ams01.hls.justin.tv,nname=video8.ams01,fmt=mobile&sig=5d19cc0dee06a06ec3b828323641ac0363d72af2&

But now it doesnt work…

Unfortunately accessing Twitch streams outside of the supported players (and circumventing Twitch’s ability to generate revenue aka ads) is not operation so you are not likely to find an answer here and is also a violation of Twitch’s ToS.

I understand that you do not understand this … yesterday I found the solution, Twitch just changed the site for access

I would also want to know the new api call bcs thi is my old code and it dosent work anymore.

$link = "http://api.twitch.tv/api/channels/".$username."/access_token";
    $cont = json_decode(file_get_contents($link));
    $hold = $cont;

    $sig = $hold->{"sig"};
    $token = $hold->{"token"};

    $url = 'https://api.twitch.tv/select/'.$username.'.json?nauthsig='.$sig.';nauth='.$token.'&allow_source=true';
    $stream_url = json_decode(file_get_contents($url));


    echo '<pre>';
    var_dump($stream_url);
    echo '</pre>';

I defer you to what the Twitch Admin has said on the subject…

Well there is one other way you could do this that i just found out but i will not post it here!

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