There’s a disconnect between where you define the headers and where you use them. Your request.get uses the function’s parameter header and you haven’t pasted where you call it.
Your twitch_api_header being a single string with the 2 headers separated by a comma is… unusual though. request wants headers as an object (e.g.{ 'key': 'value', 'another_key': 'another_value' }). The raw HTTP ends up looking like
Yeah your header format is incorrect, I’m not a javascript expert but it can’t be a string like that you need to form your headers as an object like this:
This makes the entries members of an object not just an object with a string in.
The reason the first call you made works is that it does not require any headers, if you click the link you’ll get a response without using a version or Client-Id