youtube utils
Some utility functions for dealing with Youtube
method | desc |
---|---|
YT(apiKey) | Constructor. apiKey is optional. If set, will perform the queries with youtube V3 api |
isYoutubeVideoUrl(url) | Verifies if a given URL is from youtube and is a valid one (a youtube shortlink or not) |
getVideoId(url) | from a valid youtube video URL gets the ID of that video |
getVideoInfo(vId, cb) | queries the Data API for getting info about a particular videoId. |