With jQuery:
$.ajax('https://api.twitch.tv/helix/streams?user_id=' + 32218175, // put your channel/user ID here
{
headers: {
"Client-ID": 'myclientIDgoeshere0123456789' // put your Client-ID here
}
})
.then(console.log)
For just HTML:
fetch('https://api.twitch.tv/helix/streams?user_id=' + 32218175,
{
headers: {
"Client-ID": 'myclientIDgoeshere0123456789'
}
})
.then(result => result.json())
.then(console.log)