Page 1 of 1

Youtube deprecated v2 API

Posted: 26 Apr 2015, 03:17
by Pentium100
Hi, as you might know, Youtube deprecated v2 of its data API and plans to shut it down soon. If, like me, you use Tiny Tiny RSS to get updates to interesting Youtube channels you will have a problem soon.

I have written a PHP script that talks to Youtube in the v3 API and returns RSS-compatible output. To use it, you need to register as a developer with Google and get an API key (this is free). I can post the script here but would like a confirmation that I am not breaking any rules. Also, if someone wants me to run that script on a publicly accessible server I could do that too.

Re: Youtube deprecated v2 API

Posted: 26 Apr 2015, 07:50
by virgo
New API also has RSS feeds. They just changed links. And feed content is different (it shows up in TTRSS as empty article with title linking to video.

Re: Youtube deprecated v2 API

Posted: 26 Apr 2015, 08:20
by Pentium100
That I missed. I found a FAQ entry here that specifically states that there is no alternative to v2 RSS feeds. Oh well, since I already wrote it, might as well use it and keep the format.

Re: Youtube deprecated v2 API

Posted: 26 Apr 2015, 08:49
by virgo
Well, when they but those announcements into RSS feeds, then it showed how you can export your subscriptions as OPML with new RSS feeds. https://support.google.com/youtube/answer/6098135?p=yt_devicesupport&hl=en&rd=1 under RSS reader. I don't remember seeing that "To subscribe to a single channel’s uploads, paste the channel URL into your feed reader." sentence then though.

Re: Youtube deprecated v2 API

Posted: 26 Apr 2015, 08:52
by virgo
Also, I don't understand, how normal users should get that "channel URL". I mean - I cannot see, how simply pasting channel's main page into feed reader should give RSS feed instead of normal web page.

Re: Youtube deprecated v2 API

Posted: 26 Apr 2015, 09:00
by virgo
Strange thing is, when I checked main page of one channel, it does have link rel="alternate" type="application/rss+xml" title="RSS" href="... in it. But for some reason Firefox does not seem to recognize it. But anyway, it seems, that when pasting webpage link TTRSS actually scans page for RSS link, so it works just fine.

Re: Youtube deprecated v2 API

Posted: 26 Apr 2015, 10:14
by Pentium100
Yea, the channel page has a link to the RSS feed. I didn't check this, read the faq and assumed that RSS was no longer available.

Re: Youtube deprecated v2 API

Posted: 20 Sep 2015, 23:47
by zoider
For those interested in having youtube, vimeo as RSS :

Replace USERNAME, CHANNELID and PLAYLISTID

YouTube RSS Feed URLs:

Code: Select all

    https://www.youtube.com/feeds/videos.xml?user=USERNAME
    https://www.youtube.com/feeds/videos.xml?channel_id=CHANNELID
    https://www.youtube.com/feeds/videos.xml?playlist_id=PLAYLISTID


For Vimeo :

Code: Select all

https://vimeo.com/channels/CHANNELID/videos/rss
http://vimeo.com/USERNAME/likes/rss
http://vimeo.com/USERNAME/videos/rss


Use this plugin to have vimeo embed :

https://github.com/tribut/ttrss-videoframes