【发布时间】:2013-04-20 02:27:42
【问题描述】:
有没有什么方法可以使用 YouTube API 检索超过 100 个结果?
我可以使用这个查询字符串检索多达 100 个结果: https://gdata.youtube.com/feeds/api/videos?q=football&orderby=relevance&start-index=1&max-results=10&v=2
我得到: http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/"C0YFQHg9fyp7I2A9WhBVGUk."'>tag:youtube.com ,2008:videos2013-04-26T01:51:51.667Zhttp://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/>视频匹配:footballhttp://www.youtube.com/img/pic_youtubelogo_123x63.gifhttps://www. youtube.com'/>http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://gdata.youtube.com/feeds/api/videos?v=2'/>http://schemas.google.com/ g/2005#batch' type='application/atom+xml' href='https://gdata.youtube.com/feeds/api/videos/batch?v=2'/>https://gdata.youtube.com/feeds/api/videos?q=football&start-index=101&max-results= 10&orderby=relevance&v=2'/>https://gdata.youtube.com/feeds/api/videos?alt=atom-service&v=2'/>https://gdata.youtube.com/feeds/api/videos? q=football&start-index=91&max-results=10&orderby=relevance&v=2'/>YouTubehttp://www.youtube.com/http://gdata.youtube.com'>YouTube 数据 API10010110
据我了解,您可以使用 YouTube 搜索 API 获得 999 个结果。为什么这里限制为100?是否有解决方法让我获得超过 100 个结果?
谢谢!
【问题讨论】:
-
对于我正在做的任何搜索,我得到的 openSearch:totalResults 为 100。这没有意义,因为对于 youtube 中的相同搜索,有数千个视频。知道发生了什么吗?
-
对不起,我错误地将其视为其返回的 100 个视频。不是这样的。深入阅读 youtube api 的文档。 developers.google.com/youtube/2.0/…
-
这是一个错误,正在code.google.com/p/gdata-issues/issues/detail?id=4460进行跟踪
标签: youtube youtube-api youtube.net-api