I think I did indeed do everything according to your replies and the doc but still only receive data=[]
var XML = new XMLHttpRequest();
var response = null;
XML.open("GET", "https://api.twitch.tv/helix/streams/?user_login=sugarincubes");
XML.setRequestHeader('Client-ID', '<clientID>');
XML.send();
XML.onload = function () {
response = JSON.parse(XML.response);
console.log(response);
}