Skip to content

Instructions and import code for tracking your maximum/high subscriber number on your YouTube channel

Notifications You must be signed in to change notification settings

Haunter56/YouTube-Max-Subscribers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

YouTube-Max-Subscribers

Instructions and import code for tracking your maximum/high subscriber number on your YouTube channel

Special Notes

This uses YOUR OWN free YouTube API quota

YouTube requires an API key to do this. Setting up this API key is free, but you can't make unlimited requests to the API. This quota is your own and separate from Streamer.bot.

Make sure to keep your API key safe!

Streamer.bot will hide the API key after you add it to the global variables and in the action history by default, but try to keep it safe so others don't use it.

If for any reason your API key gets shared, you can always delete the old one and create a new key on your same account.

Instructions

Get your YouTube API key

  • Log into the Google Developers Console (You can use your YouTube account email OR you can also use a different account email if needed/desired)

  • Choose your country and agree to terms of service

    image

  • Under Enabled APIs & Services select Create Project

    image

  • Choose a project name (I called mine “MyApp”) and click Create

    image

  • Click + Enable APIs and Services and scroll down to YouTube

    image

  • Click on YouTube Data API v3 then click ENABLE

    image

    image

  • Click on Credentials and the + Create Credentials

    image

  • Then choose API key

    image

  • Then copy the API key and open Streamer.bot

    image

  • In Streamer.bot click on Variables to open your global variables window

    image

  • Make sure you are on the "Persisted Globals" tab, right-click in the window and select Add Variable

    image

  • Type in youtubeApiKey and then paste the API key in the "Value" field and click "OK" and close the variable window

    image

Import Code

Import Code

Import Streamer.bot Actions

In Streamer.bot select the Import button from the top left menu.

image

Drag and drop the file or copy the text from the file and paste all the text into the Import String field.

There should be 3 actions and 1 Timed Action.

image

Test it out

(If you have your bot account or a friend who is subbed to your channel, you may want to unsubscribe on that account before moving forward)

After importing you can go to the YouTube API Subscriber Count - Get Subscriber Count action and right-click the "Test" trigger and test it

image

You should hear a "Ta-da" sound on the first time you run it (as long as you are using windows)

If you go to Action Queues > Action History and double-click the action you should also see your %youtubeSubRecord% number with "0" for the %youtubePrevSubRecord%

image

Then if you would like to test, you can start the timer in Settings > Timed Actions and enable the High Subscriber Number Timer

image

After it is enabled, it will check your subscriber number every 10 seconds. If you have access to another account that was not subscribed when you first tested, you can subscribe using that account and check that the audio plays again with an updated %youtubeSubRecord% number in the variables in the action history.

Then you can disable the timer so it doesn't use any more of your quota for now:

image

About

Instructions and import code for tracking your maximum/high subscriber number on your YouTube channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published