YouTube的API - 获取全部视频从用户的限制?全部、用户、视频、YouTube

2023-09-05 01:28:11 作者:有求必硬

我试图通过YouTube的数据API来获取从一个用户的所有视频。不过,我碰到一个障碍:它似乎并没有从用户返回的所有视频。有没有一种方法,以提高所显示的最高金额? 我使用的是用于测试的网址是 http://gdata.youtube.com/供稿/ API /用户/ GoogleDevelopers /上传

I'm trying to get all the videos from one user via YouTube's data API. However, I've run into a roadblock: it doesn't seem to be returning all the videos from a user. Is there a way to raise the maximum amount that is shown? The URL I'm using for testing is http://gdata.youtube.com/feeds/api/users/GoogleDevelopers/uploads

推荐答案

不过,您可以添加 MAX-结果 url参数指定多少视频请求返回, 50是最大的,所以你必须做出一个以上的请求,如果用户有超过50的视频。

You can add max-results url parameter to specify how many videos are returned by the request, however 50 is maximum, so you have to make more than one request if a user has more than 50 videos.

http://$c$c.google.com/intl/en/apis/youtube/2.0/developers_guide_protocol.html#Standard_parameters