How can I search inside a youtube playlist?

前端 未结 3 1404
余生分开走
余生分开走 2021-02-04 15:45

I need to know if youtube API V3 supports searching inside a specific youtube playlist? And is there any other way to do that?

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-04 16:22

    Unfortunately youtube data API 3 does not support searching inside a playlist, but as a work around we can add a string to user's search so that the results will be near to what is needed, in my case for example I have prefixed all the video titles in a specific playlist with the name of that playlist and then I had to prefix users search query with the specified playlist name, the only drawback is that I had to rename all of the videos to include the prefix.

    playlist name: exotic cars

    search query: exotic cars + user input

    And don't forget to search channel videos only.

提交回复
热议问题