Get current active team name and link from a spesific channel

Please be aware that the teams object is an array of JSON objects. So, you have an array (teams) within an array ($data). I would try something like this to see if you’re getting data back properly:

$teams = $data['teams'];
echo $teams[0];