Search code examples
google-apiyoutubeyoutube-apigoogle-trends

Get Webhook/Alert from YT api when my video is trending


I'm looking for a way to be aware when one video in my YouTube channel is trending, even from last year. I saw YouTube has 3 types of webhooks for when a video is uploaded, the title is updated and the description is the updated.

From the doc there is the /trending api, which returns the top trending video for a specific country (regionCode) and video category. Couldn't find anything interesting neither in Channel section.

Do you know any method that I'm missing? Any idea would be appreciated!


Solution

  • I don't think that's possible.

    However, you can:

    • Research about how YouTube says when a video is trending.
    • Using the YouTube Data API, check the "trending now" playlist everyday and loop the videos on that said playlist, then, check if one of the trending videos are from your channel.

    Sample call to the playlistitems:list endpoint for obtain the items on the "trending now" playlist.