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
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
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
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.