Acces TwitchData

Hi,
I have started building my own stream in streamlabs obs.
I want to create my one follower goals, but i have no idea how to acces my own data, like follower in javascript.
I havent found any source explain it.
Thank you for any help and sorry for my bad english.

Documentation is here

Follows is covered as

an API endpoint

or as a webhook

The former can work in front end code, the latter requires a web accessable endpoint on your own systems, server/cloud

Hey,
Thank you for your fast reply.

i have tried to enter the following command in the Console, i have senn the command here https://dev.twitch.tv/docs/api#step-2-sample-code, but i get an error (i changed the example ID)

curl -H ‘Client-ID: p0gch4mp101fy451do9uod1s1x9i4a’
-X GET ‘https://api.twitch.tv/helix/streams?game_id=33214

Helix requires an oAuth token and some of the documentation has not been updated yet

Hi its me again with stupid question vol.3,

I read in twitch docs and online about the OAuth and i get that it is some sort of acces permission, that I need, like a password, of every user I want to get infomation about, but how do I get the this ‘Authorization: Bearer cfabdegwdoklmawdzdo98xt2fo512y’ (in your last advice) of my own account.
And do i have to influence it into my code or on my device (in my case my local host computer) or both.

Thank you for your help so far. Your advices help me alot.

User oAuth is documented there.

Step 1) Redirect to twitch
Step 2) Accept applications access to your account
Step 3) user is sent back to your website
Step 4) Exchange the code for a token

You could use implicit auth, but such tokens are not refreshable automatically