https://gdata.youtube.com/feeds/api/videos/<video_id>?v=2的替代方法 [英] Alternative for 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.
看看最新的v3 API 入门.
Take a look at the newest v3 API getting started.
这篇关于https://gdata.youtube.com/feeds/api/videos/<video_id>?v=2的替代方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!