Twitch API returning.... nothing?

Are you sure you’re not getting an error? curl_exec returns false if there is an error. You can then check for errors with curl_error($ch). Is it outputting false when you do echo $data?