38

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

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

What should I use instead?

Limon Monte
  • 52,539
  • 45
  • 182
  • 213
  • This API is still working but needs appropriate X-GData-Device Authorization Header. –  Dec 24 '16 at 15:50

2 Answers2

57

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.

Limon Monte
  • 52,539
  • 45
  • 182
  • 213
cssko
  • 3,027
  • 1
  • 18
  • 21
  • somehow it is working and for some of the video it is not, because i have tried my own video with video caption, `https://www.googleapis.com/youtube/v3/captions?part=snippet&videoId=h2pWeot3MJY&key=AIzaS******************` – manish1706 Jan 03 '18 at 05:35
0

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

Norm Yap
  • 37
  • 1