The simplest way to integrate your stats on your stream!
Report Bug
·
Request Feature
From my research (I admit it wasn't that much research), I didn't really find an adequate way to get my youtube statistics and simply to put then in a text file which can be read by any program including OBS for streaming. So as the developer that I am I did just this, the simplest way (from what I found) to put your youtube statistics in your stream like popular twitch streamers do.
Normally, you would need access to the YouTube API in order to get these statistics but that is a long and lengthy process to do this. So I found a website online and I reverse engineered its code (apologies counts.live).
Currently, it fetches data every minute to prevent being rate-limited from this website. Once I find a more better way to fetch the data as close to instantly as possible, I will update this. So make sure to watch the repository for new commits!
Even though this project is advertised as simple, you still need to run some commands in order to get it running.
To start off you need NodeJS installed.
This is an example of how to list things you need to use the software and how to install them.
- Install the dependencies
npm i
-
Find your YouTube Channel ID. If you don't know how, click here
-
Install NPM packages:
npm install
-
Enter your Channel ID in
.env
- See example below:CHANNEL_ID=UCwfF_jZHkxF1Vxx5b8PlIGA
Once you get everything installed, you can run the application with this command:
npm run app
This will keep the application running in the background and the text files will be inserted into seperate files in data/
Now, we're done with the hard stuff. To insert it into OBS please see the GIF below.