0

I'm trying receiving playlistId using videoId and channelId with youtube data API. The problem is that videoId and channelId are the only values sent via Google PubSubHubbub Hub regarding video updates and I need to store only information related to predefined playlistIds.

playlistId is missing in video list API response, as well as I was not able to find a way to retrieve playlistId using search API.

Is there any option to retrieve playlistId using videoId and channelId?

Help! Thanks!

Ashhm
  • 15
  • 3

1 Answers1

1

You could try:

  • Get all playlists of the given channel_id - see the documentation.
  • Loop every retrieved playlist and check if the video_id is on the said playlist - see this answer.
Mauricio Arias Olave
  • 2,259
  • 4
  • 25
  • 70
  • That is actually a good option, not the perfect one but will definitely decrease the amount of quota usage, moreover, `playlistIds` are predefined, so that means I can search against them initially. Thanks! – Ashhm May 09 '23 at 06:20