Youtube deprecated v2 API

Pentium100
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 19 Mar 2013, 09:04

Youtube deprecated v2 API

Postby Pentium100 » 26 Apr 2015, 03:17

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.

virgo
Bear Rating Trainee
Bear Rating Trainee
Posts: 37
Joined: 12 Jun 2013, 22:14

Re: Youtube deprecated v2 API

Postby virgo » 26 Apr 2015, 07:50

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.

Pentium100
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 19 Mar 2013, 09:04

Re: Youtube deprecated v2 API

Postby Pentium100 » 26 Apr 2015, 08:20

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.

virgo
Bear Rating Trainee
Bear Rating Trainee
Posts: 37
Joined: 12 Jun 2013, 22:14

Re: Youtube deprecated v2 API

Postby virgo » 26 Apr 2015, 08:49

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.

virgo
Bear Rating Trainee
Bear Rating Trainee
Posts: 37
Joined: 12 Jun 2013, 22:14

Re: Youtube deprecated v2 API

Postby virgo » 26 Apr 2015, 08:52

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.

virgo
Bear Rating Trainee
Bear Rating Trainee
Posts: 37
Joined: 12 Jun 2013, 22:14

Re: Youtube deprecated v2 API

Postby virgo » 26 Apr 2015, 09:00

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.

Pentium100
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 19 Mar 2013, 09:04

Re: Youtube deprecated v2 API

Postby Pentium100 » 26 Apr 2015, 10:14

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.

User avatar
zoider
Bear Rating Trainee
Bear Rating Trainee
Posts: 28
Joined: 16 Sep 2015, 05:00

Re: Youtube deprecated v2 API

Postby zoider » 20 Sep 2015, 23:47

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


Return to “Everything else”

Who is online

Users browsing this forum: No registered users and 1 guest