Youtube javascript most popular videos API

纵然是瞬间 提交于 2019-12-11 21:31:55

问题


I am trying to implement Youtube's most popular videos api in my application.

When I fetch data using ajax call, it is missing the "rel": "next" tag which is very important in identifying whether there are more videos or not. "openSearch$totalResults" also does not give any reliable information.

I have read the documentation and they have not mentioned anything related to how many total results will this API return.

My ajax call URL format is as under :

http://gdata.youtube.com/feeds/api/standardfeeds/most_popular?start-index='+StartIndex+'&max-results='+EndIndex+'&time=all_time&safeSearch=none&orderby=published&v=2&alt=json&callback=?

Can somebody please help me and tell me whether I am making some mistake or their is some other problem.


回答1:


YouTube's most popular videos feed is changed.

Right now the best way is to use Data API v3.



来源:https://stackoverflow.com/questions/19094060/youtube-javascript-most-popular-videos-api

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