https://gdata.youtube.com/feeds/api/videos/<video_id>?v=2的替代方法 [英] Alternative for https://gdata.youtube.com/feeds/api/videos/<video_id>?v=2

查看:108
本文介绍了https://gdata.youtube.com/feeds/api/videos/<video_id>?v=2的替代方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些天,我注意到我在项目中使用的Youtube API不再可用,例如

These days I noticed that Youtube API which I'm using on my project is no longer available, e.g.

https://gdata.youtube.com/feeds/api/视频/dLEk9yiXVQs?v = 2

返回HTTP 410响应代码,这意味着所请求的资源不再可用,并且将不再可用.

returns HTTP 410 response code which means that requested resource is no longer available and will not be available again.

我应该用什么代替?

推荐答案

如果我正确理解了您的问题,那么您应该从现在开始使用https://www.googleapis.com/youtube/v3/videos?id=<video_id>&key=<YOUR_API_KEY>&part=snippet.

If I'm understanding your question correctly then you should be using https://www.googleapis.com/youtube/v3/videos?id=<video_id>&key=<YOUR_API_KEY>&part=snippet from now on.

Google从2015年4月20日起关闭旧API.

看看最新的v3 API 入门.

Take a look at the newest v3 API getting started.

这篇关于https://gdata.youtube.com/feeds/api/videos/&lt;video_id&gt;?v=2的替代方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆