Api request form link is wrong

I have not so many streamers but I make 3 CURL requests for each channel:

  1. $json[‘data’][0][‘viewer_count’]
  2. $json[‘data’][0][‘id’]; // to get user id from his name
  3. $json[‘total’]; // getting followers

This is for a widget showing stream viewers and foll counters

Am I cursed now?