Get the members of a team

How get the members of a team?

i made a code for it long time ago.

public function listastreamers($team) {
$streamers[] = ‘’;
$url = “http://www.twitch.tv/team/$team/live_member_list?page=”;
for($i = 1;$i < 10;$i++){
$html = file_get_contents($url.$i);
$a = preg_match_all("",$html,$matches);
//echo ‘

’; print_r($matches[1]); echo ‘
’;
foreach($matches[1] as $oi) {
echo $oi . ‘,’;
$streamers .= $oi;
}

      }
      $this->streamers = $streamers;
  }
2 Likes

There is an undocumented API that has this information

All team members - api.twitch.tv/api/team/:teamname/all_channels.json
Only live team members - api.twitch.tv/api/team/:teamname/live_channels.json

2 Likes

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