asp.netvb.netyoutubeyoutube-apiyoutube.net-api

Youtube API - How can i retrieve multiple videos in one request using VB.Net?


This question has been killing me, what i want to do is retrieve more than one video from YouTube in one request. now these videos do not belong to a playlist i just want to specify random video ids and request the feed from YouTube using the video ids specified.

I have heard and looked into batch processing with YouTube but i can not find any resource that gives any explanation on how to create batch processing in VB.Net for retrieving videos.

I have seen some flash and PHP code that can answer this question but i need the functionality for VB.Net application.

Can anyone help please?

Thank you


Solution

  • Send an api request that looks like this:

    <feed>
    <batch:operation type="query"/>
    <entry>
      <id>http://gdata.youtube.com/feeds/api/videos/123</id>
    </entry>
    <entry>
      <id>http://gdata.youtube.com/feeds/api/videos/456</id>
    </entry>
    </feed>
    

    If you include multiple entries in the request, you'll get back multiple video info.