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

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

    You can send multiple requests to youtube data api wrapped in a single request. YouTube allows you to send at most 50 multiple requests in a single request. This kind of request is known as a batch processing request. I have developed a working piece of code specifically for this problem. I had to do same kind of thing for a website I was working on. Anyways you can see how to do it from here (sample code is also present for download): http://www.ovaistariq.net/2010/06/youtube-batch-processing-requests-made-less-costly/

提交回复
热议问题