pipedream icon indicating copy to clipboard operation
pipedream copied to clipboard

[TRIGGERS] YouTube

Open dannyroosevelt opened this issue 3 years ago • 2 comments

App

YouTube (Data API) https://developers.google.com/youtube/v3

Triggers

Ideally we can use webhooks instead of polling

  • New YouTube Video (Instant); with channelId as a prop
  • YouTube Video Updates (Instant); with youtubeVideoId as a prop

These might be helpful: https://developers.google.com/youtube/v3/guides/implementation/subscriptions?hl=en https://developers.google.com/youtube/v3/guides/push_notifications?hl=en

dannyroosevelt avatar Jul 20 '22 18:07 dannyroosevelt

Hey @dannyroosevelt, I was trying to figure it out how we can instantly receive notifications for the youtube triggers, reading one of the links that you shared on the issue, I found out that the youtube give us three xml feed urls (example) so I think we can either: keep pooling but using the rss feed (without API restrictions exactly as we do in the rss feeds source, as matter of fact, our rss feed source works already) or we can subscribe to a service to notify us, (the google provide this service, pubsubhubbub, it should notify us like a webhook but doesn’t seem to work anymore) By my investigation the currently better way of doing this, is keep it pooling, but, instead of use the API we can fetch the data from the rss feed Possible results using rss feed to fetch data Feed by channel id Feed by username Feed by playlist id References: https://developers.google.com/youtube/v3/guides/push_notifications?hl=en

alysonturing avatar Jul 25 '22 15:07 alysonturing

Alyson caught me up on this and I think we should punt given the lack of a clear PubSubhubbub API for subscribing to these notifications. Marking as blocked for now.

dylburger avatar Jul 26 '22 00:07 dylburger