404 at Streams request every time

Hey there, im trying to request e.g. Streams but allways got 404, no mather what i do.

node_fetch('https://api.twitch.tv/helix/streams?game_id=33214', {
    method: 'post',
    headers: {
        'Client-ID': Client-ID,
        'Accept': 'application/vnd.twitchtv.v5+json'
    },
})
    .then(res => res.json())
    .then(json => console.log(json));
  1. You don’t need the Accept header with helix
  2. you are POSTing when you should be GETing
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.