404 error - translating user names to user ids

Hey everyone, I’m receiving a 404 error while trying to retrieve user ids. The streamUrl link is working but logoUrl isn’t. Any help is greatly appreciated. Here is my code:

$streamUrl = "https://api.twitch.tv/kraken/streams?client_id=" + $client_id + "&channel=";
$logoUrl = "https://api.twitch.tv/kraken/users?client_id=" + $client_id + "&login=";

var channels = ["ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas"];

for (var i = 0; i < channels.length; i++) {
$streamUrl += channels[i] + ",";
$logoUrl += channels [i] + ",";

Thanks in advance :smiley:

Are you sending the correct version header for /kraken/users?

Accept: application/vnd.twitchtv.v5+json


Got it - thank you!

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