Accessing an item beyond start_index=1000 in a YouTube user upload feed

会有一股神秘感。 提交于 2019-12-03 12:55:01

Getting all the videos for a given account is supported, but you need to make sure that your request for the uploads feed is going against the backend database and not the search index. Because you're including orderby=published in your request URL, you're going against the search index. Search index feeds are limited to 1000 entries.

Get rid of the orderby=published and you'll get the data you're looking for. The default ordering of the uploads feed is reverse-chronological anyway.

This is a particularly easy mistake to make, and we have a blog post up explaining it in more detail:

http://apiblog.youtube.com/2012/03/keeping-things-fresh.html

The nice thing is that this is something that will no longer be a problem in version 3 of the API.

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