English
Español
yt_link
insta_link
fb_link
twitter_link
ADVERTISERS
PCBWay Ad




AFFILATE









Gearbest JGAURORA A3S Fully Metal LCD Display Control DIY 3D Printer
JGAURORA A3S Fully Metal LCD Display Control DIY 3D Printer only $299.99
Gearbest Geeetech E180 Mini 3D Printer with WiFi Module
Geeetech E180 Mini 3D Printer with WiFi Module only $245.99


Gearbest JGAURORA A5X 3D Printer Kit Printing
JGAURORA A5X 3D Printer Kit Printing only $379.99


Gearbest Min DS202 Oscilloscope 113€
Min DS202 Oscilloscope 113€


Gearbest UTD2052CL DIGITAL 2-ch Oscilloscope 275€
UTD2052CL DIGITAL 2-ch Oscilloscope 275€


Gearbest UT139C True RMS Digital Multimeter 29€
UT139C True RMS Digital Multimeter 29€


Gearbest SBK8586 Soldering station Hot Air + Iron 63€
SBK8586 Soldering station Hot Air + Iron 63€


Gearbest BAYANGTOYS X21 Brushless RC Quadcopter
BAYANGTOYS X21 Brushless RC Quadcopter 153€


WiFi YouTube subscribers counter





3.3.0 Youtube API

Ok, now let’s see how to get our YouTube data. We have to go to GitHub once again or use the download link below. We should thank witness me now for this code. Just download the zip file as before. Now open the Arduino IDE, and go to sketch, include library, add zip library and select the downloaded zip file. And we are done. Now we should have the examples for the YouTube subscriber count. This example is compatible with the ESP8266, it will connect to WIFI and get the subscriber count.

Downlaod the Youtube API library here:

Now open the Arduino IDE, and go to sketch, include library, add zip library and select the downloaded zip file. And we are done. Now we should have the examples for the YouTube subscriber count. This example is compatible with the ESP8266, it will connect to WIFI and get the subscriber count.


youtube API example

Now go to examples, YouTube APi, ESP8266 and select channel statistics. You should add your exact and full WIFI name as below. Then the exact password. Then here you should add you YouTube channel ID. For that go to YouTube. Select creator editor and select the channel icon in the corner and go to YouTube settings. There click advance and now you should copy just copy the channel ID and paste it here in the code. Now for the API key, if you don’t have one you should create it now.


youtube API key



3.3.1 API KEY

Go to google and type Get Youtube API key or use this link for that. There you select the API console and sing in with your Youtube account data. There on the library select all of the Youtube API and enable them. Accept the terms. Now go to credentials and create new credential. Once created copy the API key and paste it in the code.
Now compile and upload the code. Open the serial monitor. Ok, first we connect to the WIFI. Now you will probably wait a few minutes till the first Youtube subscriber data will show. There you go, this is my subscriber value below. The code works.


youtube subscriber counter Arduino

Now all we have to do is to marge this 3 examples into just one. Use the ESP8266 chip, get subscribers value and print it on the 7 segment display. Let's see how to do that in the next part.