Youtube Data API: Retrieving multiple Video entries by IDs in a single request

后端 未结 5 1232
清歌不尽
清歌不尽 2021-02-02 16:09

I am wondering if there is a way to query YouTube for multiple random videos (video id\'s are known) in a single query? I am storing video id\'s in the local db and need to show

5条回答
  •  庸人自扰
    2021-02-02 16:41

    I too had exactly the same problem, I needed a list of video objects related to an arbitrary list of video id's, i.e. not conforming to any of the feeds.

    The batch processing option is very tempting, but the implementation seems quite heavy for what should be pretty simple functionality.

    At the end of the day, doing a basic video search for the id's separated by pipe "|" achieves the required result:

    http://gdata.youtube.com/feeds/api/videos?q=h5jKcDH9s64|elzqvWXG1Y

    Hope this helps

提交回复
热议问题