How to check if specific streamer is online in node.js

broadcaster ID/userID/Login is a query string parameter, not a header

You should be calling as the URL

http://api.twitch.tv/helix/streams?user_login=imTheSupremeOne

or doing something like

	const streamOptions = {
		url: GET_STREAM,
		method: "GET",
		headers: {
			'Client-ID': CLIENT_ID,
    		'Authorization': `Bearer ${accessT}`
        },
        qs: {
			'user_login': `imTheSupremeOne`
		}
	}

Also worth noting request is deprecated/will not be updated.

See