Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (22 sloc) 1.68 KB


A wrapper for the YouTube API for Arduino (works on ESP8266)

Currently the only implemented method is getting the channel statistics but it can be easily extended. Please raise an issue if there is a method you are looking for.


Getting a Google Apps API key (Required!)


The downloaded code can be included as a new library into the IDE selecting the menu:

 Sketch / include Library / Add .Zip library

You also have to install the ArduinoJson library written by Benoît Blanchon. Search for it on the Arduino Library manager or get it from here.

Include YoutubeApi in your project:

#include <YoutubeApi.h>

and pass it a Bot token and a SSL Client (See the examples for more details)

// WiFiSSLClient client; //For 101 boards
WiFiClientSecure client; //For ESP8266 boards
YoutubeApi bot(API_KEY, client);

NOTE: This library has not been tested with the 101 boards as I do not have a compatible board. If you can help please let me know!