Fetching videos list from a Youtube playlist through RSS doesn't return more than 15 results

强颜欢笑 提交于 2019-12-03 16:13:31

First, the YouTube Data API v2 call is already deprecated and encourage you to use the YouTube Data API (v3).

I found in this thread that https://www.youtube.com/feeds/videos.xml?playlist_id=xxxxx is only limited to 15 videos or results.

The old API use max-results and start-index to get more results but it is not working anymore when I try.

If you want more results than 15, I suggest you to use the PlaylistItems: list of the YouTube Data API (v3). It has a parameter maxResults that you can set to maximum of 50. To get the another or next 50 results, you can use the parameter pageToken for it.

Hope this information helps you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!