The API aren't works properly from yesterday

Hi, from yesterday the API “https://api.twitch.tv/helix/streams?user_login=” show only one user from 100 users, if he is offline the API aren’t show anyone.
What’s happened?

Whats the actual request you are making?

If the user is offline then they will not be shown in the output

The Streams API only returns a Stream for users that are online. Offline users gets nothing in the response

So what you are seeing is correct. Offline users are not returned in the group of 100 when you specify 100.

So if you request 100 user_logins and only 50 of those are live, then you’ll only get 50 streams

I have called the API with three users_logins and I got the expected response

In this 100 another users are online, but can show only one specific user, if he is offline doesn’t show anyone although others are online, why?

This doesn’t grammatical make sense. I don’t understand the issue you are reporting

  • What is the actual request you are making?
  • What is the response you are getting?
  • What is the response you are expecting to get?
  • So why the API select only one online user from a list with 100 users if online users are five or six?
    Why if i have online, for example, users number 32, number 46, number 73, number 88, number 92 it
    shows only user number 73?

  • Print_r shows me in fact only one result from array list and not five or six results.

  • What happened when it worked until Friday?

What is the ACTUAL request you are making?

The ACTUAL URL/API Call you are calling?

My callAPI with curl method:

$callAPI = implode(“&user_login=”,$channels1);
$url=“https://api.twitch.tv/helix/streams?user_login=” . $callAPI;
$ch = curl_init();
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
‘Accept: application/vnd.twitchtv.v5+json’,
‘Client-ID: CLIENT-ID
));
$result = curl_exec($ch);
curl_close($ch);

This for print of complete array:

$str = json_decode($result, true);
print_r($str);

This is my array for 100 users list:

$channels1 = array(
USERNAME 01
USERNAME 02
USERNAME 03
USERNAME 04
USERNAME 05

USERNAME 99
USERNAME 100
);

Username 01 is not a valid Username

None of the users in your $channels1 array are valid usernames

Again, what is the actual request you are making to Twitch.

In this case the actual $url you generate and call?

You don’t need this with Helix. Helix doesn’t need an accept header. But does not matter if it’s included.

USERNAME 01 etc is only an example, for privacy

Then I cannot help you

I need the full complete ACTUAL request you are making to debug your issue.

An example realistic must be:

$channels1 = array(
forluv
Makefire
Usernotfail
allover
magiks
Antonfox
Redvelvet
);

But you are reporting an issue with 100 users thats only 7

can i write original list on private?

Additionally all 7 show as offline when called separately

And all 7 show offline correctly calling together

https://api.twitch.tv/helix/streams?user_login=forluv&user_login=makefire&user_login=usernotfail&user_login=allover&user_login=magiks&user_login=antonfox&user_login=redvelvet

So I can’t find an issue

Usernames are not private information.

Throwing it in Private, sure but here preferred to save time

$channels1 = array(
‘talentscoutingproject_tsp’,
‘famgamers_official’,
‘giannydurally’,
‘willy_0330’,
‘ragehelitv’,
‘lavitasecondopizzi’,
‘cartonidx’,
‘Thecrow1993x’,
‘asurahs’,
‘wideita’,
‘lorenzotafuro’,
‘k0sm3y’,
‘guardedsundew’,
‘kypa7tv’,
‘xofan95’,
‘girlb0ngtheory’,
‘thereau77erny’,
‘lobilan’,
‘burtgummer1’,
‘samp1ecaesar85’,
‘OfficialNiky01’,
‘mariosasizza’,
‘dantiuseu’,
‘goodwind83’,
‘almonddragonlive’,
‘filotikilla’,
‘el_Ganador_ch’,
‘Vincenzoilpugliese’,
‘bentiandre’,
‘Samplays09’,
‘theflyermik_tv’,
‘LoScozzese_’,
‘traxporter_93’,
‘11ultimo11’,
‘ghost_playerita’,
‘bigformal’,
‘inho99’,
‘ilboston’,
‘twitch_aleal7723’,
‘twin_snake97’,
‘vito_giordy’,
‘AFKappaGaming’,
‘pietrinci’,
‘daniele_23’,
‘VxVALECIC’,
‘8tos7’,
‘cheffone_channel’,
‘mars3xp’,
‘Blackn3ss_’,
‘Mariospadino99’,
‘zodiacxiv’,
‘naitro001’,
‘eemacarenaa’,
‘reelfico’,
‘sasy_’,
‘xkekko_97x’,
‘meo17’,
‘shyraclodefumettista’,
‘mrnuckythompson’,
‘tano9416’,
‘aracnozs23_ttv’,
‘PowerzTesla’,
‘bigsac_’,
‘mascalzino’,
‘oOHARLOCKOo’,
‘blackskulls92’,
‘3t3rnal’,
‘justfranks’,
// ‘videogiocare_in_compagnia’,
‘succoace10’,
‘lolench_casta’,
‘pattos1112’,
‘odnalro’,
‘syncarrots’,
‘indrastreamer’,
‘folgore17’,
‘itz_veon’,
‘nitzallen’,
‘Piof_96’,
‘MrPeppociop’,
‘Oledan85’,
‘drakulaj’,
‘killback’,
‘Shadow_of_Tano’,
‘rattledom’,
‘dexter_id95’,
‘liveluca_tw’,
‘PanniR’,
‘bloodeyes85’,
‘filckmg’,
‘tulk4s’,
‘sevenheavenclan’,
‘competitivimanontroppo’,
‘avbudi’,
‘italianfilippo’,
‘dave87ra’,
‘Ipadodoble’,
‘luigirevenge1’,
‘valentinotanque’,
‘giorgiom0610’,
) ;

Change:

$url=“https://api.twitch.tv/helix/streams?user_login=” . $callAPI;

To

$url=“https://api.twitch.tv/helix/streams?user_login=” . $callAPI;
echo $url;

And give me the URL. Otherwise I have to write code and my generated code may mismatch your code.

I dumped it out real quick anyway. I don’t see an issue initially only one user from the array is live.

Which ones are you expecting to see that you are not seeing?

And of the 99 only 95 of them are valid usernames. 5 are no longer called that or the account doesn’t exist

https://api.twitch.tv/helix/streams?user_login=talentscoutingproject_tsp&user_login=famgamers_official&user_login=giannydurally&user_login=willy_0330&user_login=ragehelitv&user_login=lavitasecondopizzi&user_login=cartonidx&user_login=Thecrow1993x&user_login=asurahs&user_login=wideita&user_login=lorenzotafuro&user_login=k0sm3y&user_login=guardedsundew&user_login=kypa7tv&user_login=xofan95&user_login=girlb0ngtheory&user_login=thereau77erny&user_login=lobilan&user_login=burtgummer1&user_login=samp1ecaesar85&user_login=OfficialNiky01&user_login=mariosasizza&user_login=dantiuseu&user_login=goodwind83&user_login=almonddragonlive&user_login=filotikilla&user_login=el_Ganador_ch&user_login=Vincenzoilpugliese&user_login=bentiandre&user_login=Samplays09&user_login=theflyermik_tv&user_login=LoScozzese_&user_login=traxporter_93&user_login=11ultimo11&user_login=ghost_playerita&user_login=bigformal&user_login=inho99&user_login=ilboston&user_login=twitch_aleal7723&user_login=twin_snake97&user_login=vito_giordy&user_login=AFKappaGaming&user_login=pietrinci&user_login=daniele_23&user_login=VxVALECIC&user_login=8tos7&user_login=cheffone_channel&user_login=mars3xp&user_login=Blackn3ss_&user_login=Mariospadino99&user_login=zodiacxiv&user_login=naitro001&user_login=eemacarenaa&user_login=reelfico&user_login=sasy_&user_login=xkekko_97x&user_login=meo17&user_login=shyraclodefumettista&user_login=mrnuckythompson&user_login=tano9416&user_login=aracnozs23_ttv&user_login=PowerzTesla&user_login=bigsac_&user_login=mascalzino&user_login=oOHARLOCKOo&user_login=blackskulls92&user_login=3t3rnal&user_login=justfranks&user_login=succoace10&user_login=lolench_casta&user_login=pattos1112&user_login=odnalro&user_login=syncarrots&user_login=indrastreamer&user_login=folgore17&user_login=itz_veon&user_login=nitzallen&user_login=Piof_96&user_login=MrPeppociop&user_login=Oledan85&user_login=drakulaj&user_login=killback&user_login=Shadow_of_Tano&user_login=rattledom&user_login=dexter_id95&user_login=liveluca_tw&user_login=PanniR&user_login=bloodeyes85&user_login=filckmg&user_login=tulk4s&user_login=sevenheavenclan&user_login=competitivimanontroppo&user_login=avbudi&user_login=italianfilippo&user_login=dave87ra&user_login=Ipadodoble&user_login=luigirevenge1&user_login=valentinotanque&user_login=giorgiom0610

it shows now no one online but “ilboston” and “naitro001” are online

ilboston doesn’t have a game/category set
naitro001 also doesn’t have a game/category set.

So they are set as “not playing” in the dashboard.

This appears to mean they will not show in the Helix API. Might be a bug might not be.

Will have to wait for a Twitch Reply (probably tomorrow)

Oh god, so the error is the game not setted :sweat:

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