Alternative for https://gdata.youtube.com/feeds/api/videos/<video_id>?v=2

前端 未结 2 1295
一个人的身影
一个人的身影 2020-12-08 19:16

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/videos/dLEk9yiXVQs?v=2

相关标签:
2条回答
  • 2020-12-08 19:43

    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 shutdown the old API effective April 20th, 2015.

    Take a look at the newest v3 API getting started.

    0 讨论(0)
  • 2020-12-08 19:47

    You can use this link with your Youtube channel id after the = and it should work.

    https://www.youtube.com/feeds/videos.xml?channel_id= your youtube channel id number

    0 讨论(0)
提交回复
热议问题