Best answer

How do I set up a Zap to trigger when a YouTube stream goes live?

  • 20 November 2019
  • 5 replies
  • 711 views

Userlevel 1

I was looking at the zaps for Youtube and there appears to be only 4 options.

  1. New vid in channel
  2. New vid by username
  3. New vid by Search
  4. New vid by playlist

All these descriptions refer to uploaded videos only


I'm looking to trigger something when a stream goes live. Anyone have experience with the YT integration?


icon

Best answer by AndrewJDavison_Luhhu 20 November 2019, 09:42

View original

5 replies

Userlevel 7
Badge +10

Hi @moxy

The only way to do this would be for you to build your own custom Youtube integration using Zapier's Developer Platform: https://zapier.com/platform

Having a quick look, Youtube does have a Live Streaming API: https://developers.google.com/youtube/v3/live/getting-started

You'll need to see if there is a specific endpoint you can poll for a when a stream starts.

@ikbelkirasan who's pretty active on this forum may be able to help with this.


Has somebody implemented it?

You could build a web function to either check the stream or use the YT API, then send to Zapier we hook to do an action. 
 

set up your function on a CRON job. 

You could build a web function to either check the stream or use the YT API, then send to Zapier we hook to do an action. 
 

set up your function on a CRON job. 

Here is some code that I used for Cloudflare stream checking. Am now doing this with YT. Adapt the code to send data to your web hook. https://chat.openai.com/share/dcf75c96-871e-4df9-b343-106ae9372233

Exploring YouTube integrations indeed reveals a limited range of options, mostly centered around uploaded videos. However, triggering an action when a stream goes live seems like a valuable feature that's missing. It's surprising that such a common use case isn't covered in the current Zap options. Perhaps there's a workaround or a different approach to achieve this functionality. It might be worth delving deeper into YouTube's API documentation or exploring alternative automation platforms that could offer the desired functionality. Additionally, reaching out to others who have tackled similar challenges with YouTube integration could provide valuable insights and solutions.

Reply