NodeJS - Get json with node-fetch

the headers should be

headers: {
    'Client-ID': theClientId,
    'Authorization': 'Bearer ' + theToken
}

Since you have used twitchapps token generator, you’ll need their clientID and theToken should have oauth: removed from the start.

You also need to update the URL to include the username or ID or the channel you wish to lookup, otherwise right now you’ll just get the first/top 20 streams on the platform.

You cannot use, your clientID and a token generated from someone elses tool.

Ideally you should generate and use your own token.

An app access token would suffice