Hey, i got some “null” on “overwatch” data when i use this code on someone still streaming on Overwatch.
What i need ? Get the hero is actualy playing by the caster.
But if “overwatch is null” i can’t.
Any solution ?
Thx !
var XML = new XMLHttpRequest();
var response = null;
XML.open("GET", "https://api.twitch.tv/helix/streams/metadata?user_login=beliertv1");
XML.setRequestHeader('Client-ID', 'blblblblblblblbl');
XML.send();
XML.onload = function () {
response = JSON.parse(XML.response);
console.log(response.data[0]);
}