Get XML with ID of all uploaded YouTube videos

I have over 100 videos uploaded to the YouTube channel. I get the XML feed as: https://gdata.youtube.com/feeds/api/users/UserId/uploads , it only returns xml with id for only 25 videos. How can I get xml of all uploaded videos on a specific channel

+4
source share
2 answers

By default, APi returns 25, you need to add the maximum result parameter to get more, but then, unfortunately, this allows you to 50.

https://gdata.youtube.com/feeds/api/users/UserId/uploads?&max-results=50

What you need to do is save the request for more use of the offset to say that you want to start with a specific value, in which case you would do something like:

https://gdata.youtube.com/feeds/api/users/UserId/uploads?&max-results=50&start-index=51

look at https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds for more information.

+4
source

I know this is an old question, but since this is the best result when searching googling Youtube channel xml feed , I still like to answer.

The example from the accepted answer is no longer supported, as Youtube changed to API v3 and deprecated v2 in February 2014. Since the API is v3, you need to use the following:

Channel

https://www.youtube.com/feeds/videos.xml?channel_id=YOURCHANNELID

Username

https://www.youtube.com/feeds/videos.xml?user=USERNAME

The above examples (if you replace the words with capital letters) output the XML file.

Source citing a new new API

+3
source

Source: https://habr.com/ru/post/1444667/


All Articles