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

后端 未结 5 1223
清歌不尽
清歌不尽 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:38

    RobD's answer works well. You can add something like this to the end of the URL to only retrieve the data you actually need, saving some bandwidth:

    &fields=entry(id,title)

    eg:

    http://gdata.youtube.com/feeds/api/videos?q=h5jKcDH9s64|elzqvWXG1Y&fields=entry(id,title)

提交回复
热议问题