youtube-apiyoutube-data-apiyoutube-livestreaming-api

Efficient way to get timestamp of scheduled stream from multiple Youtube channels via youtube api?


I'm making a list that organizes the start time of scheduled streams on multiple channels. To do this, use search to collect a list of videos that are type=='upcoming' from each channel and extract the timestamp from the collected video list. This process consumes quota of 100 (Search) + 1 (Video). I can do less than 100 searches, but is there any way I can do more searches?

I also tried to use "youtube-livestreaming-api", but I found that my API key was not valid. Can't I use this API because I am not YouTube Partner?


Solution

  • You may be interesting in using my open-source YouTube operational API.

    Indeed by requesting https://yt.lemnoslife.com/search?part=id&channelId=CHANNEL_ID&eventType=upcoming you will get for 0 quota the ids of upcoming streams of a given YouTube channel.

    You can then use the returned video ids to pass them to the YouTube Data API v3 to get their timestamp of scheduled stream. In that way in the end for default 10,000 quota you don't make 99 searches but 500,000.

    You can retrieve such a channel from this playlist.