Get info about a YouTube video

折月煮酒 提交于 2019-12-31 06:42:05

问题


I'm looking to get the title and duration of a YouTube video and display it within my app. I want to do this dynamically since there will be several videos and they will change. I've looked for a URL that provides this information, but I've had no luck. Does anyone know a way to do this?


回答1:


You need to use the Youtube API, details on how to do this for a single video are here:

https://developers.google.com/youtube/2.0/developers_guide_protocol_video_entries

Here's the URL to get the API data for Friday:

https://gdata.youtube.com/feeds/api/videos/kfVsfOSbJY0?v=2



来源:https://stackoverflow.com/questions/11722875/get-info-about-a-youtube-video

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