Uncaught SyntaxError: Unexpected token p in JSON at position 4?

  1. Client-ID needs to be a header
  2. You are missing an oAuth token - Requiring OAuth for Helix Twitch API Endpoints
  3. Your URL is constructed wrong

Should be


  1. these days it’s easier for your front end to call your backend and the backend makes the call to Twitch with an App Access Token - Getting OAuth Access Tokens | Twitch Developers